text
stringlengths
0
211k
c_s_mR(cofactor_R(A, R1, C3), UxV_T, R1, C3);
transpose_mR(UxV_T, UxV);
clrscrn();
printf(" u_t :");
p_mR(U_T, S4, P0, C6);
printf(" v_t :");
p_mR(V_T, S4, P0, C6);
printf(" uxv_t :");
p_mR(UxV_T, S4, P0, C6);
printf("\n u.(u x v) == %+.4f \n\n\n",
dot_uv_R(U, UxV) );
stop();
f_mR(U_T);
f_mR(V_T);
f_mR(UxV_T);
f_mR(U);
f_mR(UxV);
f_mR(A);
/* ------------------------------------ */
int main(void)
fun();
return 0;
/* ------------------------------------ */
Les vecteurs en mathématiques sont supposés être des vecteurs colonnes, c'est pour cela que j'utilise _T pour afficher des vecteurs lignes.
Exemple de sortie écran :
u_t :
+4 +2 +5
v_t :
+3 +4 +1
uxv_t :
-18 +11 +10
u.(u x v) == +0.0000
Press return to continue.
Mathc matrices/a238
Application
Installer et compiler ces fichiers dans votre répertoire de travail.
/* Save as : c00a.c */
void fun(void)
double **U_T = r_mR(i_mR(R1, C3), 9);
double **V_T = r_mR(i_mR(R1, C3), 9);
double **UxV_T = i_mR(R1, C3);
double **UxV = i_mR(R3, C1);
double **A = rp_mR(i_mR(R3, C3), 1);
double **U = transpose_mR(U_T, i_mR(R3 , C1));
c_r_mR(U_T, R1, A, R2);
c_r_mR(V_T, R1, A, R3);
c_s_mR(cofactor_R(A, R1, C1), UxV_T, R1, C1);
c_s_mR(cofactor_R(A, R1, C2), UxV_T, R1, C2);
c_s_mR(cofactor_R(A, R1, C3), UxV_T, R1, C3);
transpose_mR(UxV_T, UxV);
clrscrn();
printf(" u_t :");
p_mR(U_T, S4, P0, C6);
printf(" v_t :");
p_mR(V_T, S4, P0, C6);
printf(" uxv_t :");
p_mR(UxV_T, S4, P0, C6);
printf("\n u.(u x v) == %+.4f \n\n",
dot_uv_R(U, UxV) );
f_mR(U_T);
f_mR(V_T);
f_mR(UxV_T);
f_mR(U);
f_mR(UxV);
f_mR(A);
/* ------------------------------------ */
int main(void)
time_t t;
srand(time(&t));
do
fun();
} while(stop_w());
return 0;
/* ------------------------------------ */
Les vecteurs en mathématiques sont supposés être des vecteurs colonnes, c'est pour cela que j'utilise _T pour afficher des vecteurs lignes.
Exemple de sortie écran :
u_t :
+9 -6 +5
v_t :
-6 +2 -6
uxv_t :
+26 +24 -18
u.(u x v) == +0.0000
Press return to continue
Press X return to stop
Mathc matrices/a240
Application
Installer et compiler ces fichiers dans votre répertoire de travail.
/* Save as : c00a.c */