Mathc initiation/Fichiers h : c61a5
Installer ce fichier dans votre répertoire de travail.
![]() |
x_nxy.h |
---|
/* ---------------------------------- */
/* save as x_nxy.h */
/* ---------------------------------- */
/* (-f_xi-f_yj+k)
n = ------------
[(f_x)^2+(f_y)^2+1]^1/2
*/
/* ---------------------------------- */
v3d n_xy(
double (*P_f)(double x, double y),
p2d p,
double h
)
{
v3d n;
double d;
d = sqrt( pow(fxy_x((*P_f),h,p),2) +
pow(fxy_y((*P_f),h,p),2) +
1);
n.i = - fxy_x((*P_f),h,p) / d;
n.j = - fxy_y((*P_f),h,p) / d;
n.k = 1 / d;
return(n);
}
/* ---------------------------------- */
/* ---------------------------------- */
Déclaration des fichiers h.