text
stringlengths 0
211k
|
---|
+0.0000 +0.0000 -0.0000 +0.0000 +1.0000 |
A*inv(A) |
+1.0000 -0.0000 -0.0000 -0.0000 +0.0000 |
+0.0000 +1.0000 -0.0000 +0.0000 -0.0000 |
+0.0000 +0.0000 +1.0000 +0.0000 +0.0000 |
-0.0000 -0.0000 +0.0000 +1.0000 +0.0000 |
+0.0000 +0.0000 -0.0000 +0.0000 +1.0000 |
Press return to continue |
Press X to stop |
Mathc matrices/a255 |
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); |
// A : A matrix with ones everywhere. |
double **A = rp_mR(i_mR(R3, C3), 1); |
// u and v -> A |
c_r_mR(U_T, R1, A, R2); |
c_r_mR(V_T, R1, A, R3); |
// cofactor(A) -> (u x v) |
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); |
clrscrn(); |
printf(" u_T :"); |
p_mR(U_T, S4, P0, C6); |
printf(" v_T :"); |
p_mR(V_T, S4, P0, C6); |
printf("\n\n" |
" u x v :"); |
p_mR(UxV_T, S5, P0, C6); |
f_mR(U_T); |
f_mR(V_T); |
f_mR(UxV_T); |
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 : |
+7 +3 -1 |
v_T : |
+9 -7 -4 |
u x v : |
-19 +19 -76 |
Press return to continue |
Press X return to stop |
Mathc matrices/a256 |
Application |
Installer et compiler ces fichiers dans votre répertoire de travail. |
/* Save as : c00a.c */ |
void fun(void) |
double u_T[R1*C3] = { 4, 2, 5}; |
double v_T[R1*C3] = { 3, 4, 1}; |
double **U_T = ca_A_mR(u_T , i_mR(R1, C3)); |
double **V_T = ca_A_mR(v_T , i_mR(R1, C3)); |
double **UxV_T = i_mR(R1, C3); |
// A : A matrix with ones everywhere. |
double **A = rp_mR(i_mR(R3, C3), 1); |
// u and v -> A |
c_r_mR(U_T, R1, A, R2); |
c_r_mR(V_T, R1, A, R3); |
// cofactor(A) -> (u x v) |
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); |
clrscrn(); |
printf(" u_T :"); |
p_mR(U_T, S4, P0, C6); |
printf(" v_T :"); |
p_mR(V_T, S4, P0, C6); |
printf("\n\n" |
" u x v :"); |
p_mR(UxV_T, S5, P0, C6); |
stop(); |
f_mR(U_T); |
f_mR(V_T); |
f_mR(UxV_T); |
f_mR(A); |
/* ------------------------------------ */ |
int main(void) |