Mathc complexes/098
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00d.c |
|---|
/* ------------------------------------ */
/* Save as : c00d.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
#define RCA RC3
/* ------------------------------------ */
/* ------------------------------------ */
int main(void)
{
double a[RCA*RCA] ={
+2.363636363638, -1.909090909092, -0.272727272727,
+1.818181818184, -1.545454545456, -0.363636363636,
-0.909090909092, +1.272727272728, +1.181818181818
};
/* You can choose the value of the point P */
double P[RCA*C1] ={
+2,
+5,
+6
};
double **A = ca_A_mRZ(a, i_mZ(RCA,RCA));
double **p = ca_A_mRZ(P, i_mZ(RCA,C1));
double **Pp = mul_mZ(A,p, i_mZ(RCA,C1));;
clrscrn();
printf(" A :");
p_mRZ(A, S9,P8, C4);
printf(" You can choose the value of the point p\n\n"
" p:");
p_mRZ(p, S9,P8, C4);
printf(" The projection of p on the plan defined by v1,"
" v2 and v3.\n\n"
" Pp: Copy this matrix into c00e.c");
P_mRZ(Pp, S15,P12, C4);
stop();
f_mZ(A);
f_mZ(p);
f_mZ(Pp);
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Vous pouvez calculer la projection d'un point P sur le plan.
Exemple de sortie écran :
A :
+2.36363636 -1.90909091 -0.27272727
+1.81818182 -1.54545455 -0.36363636
-0.90909091 +1.27272727 +1.18181818
You can choose the value of the point p
p:
+2.00000000
+5.00000000
+6.00000000
The projection of p on the plan defined by v1, v2 and v3.
Pp: Copy this matrix into c00e.c
-6.454545454546,
-6.272727272728,
+11.636363636364
Press return to continue.