text
stringlengths
0
211k
" We work with the first column \n\n\n");
printf(" A : det_R(A) = %+.0f", det_R(A));
p_mR(A,S3,P0,C6);
printf("\n"
" det_R(A) = a11 M11 - a21 M21 + a31 M31 = %+.0f\n\n",
+ a11 * minor_R(A, R1, C1)
- a21 * minor_R(A, R2, C1)
+ a31 * minor_R(A, R3, C1) );
printf("\n"
" det_R(A) = a11 C11 + a21 C21 + a31 C31 = %+.0f\n\n",
+ a11 * cofactor_R(A, R1, C1)
+ a21 * cofactor_R(A, R2, C1)
+ a31 * cofactor_R(A, R3, C1) );
stop();
f_mR(A);
/* ------------------------------------ */
int main(void)
fun();
return 0;
/* ------------------------------------ */
Exemple de sortie écran :
M = Minor; C = cofactor
We work with the first column
A : det_R(A) = +38
+5 +2 +3
+3 +4 +1
+4 +2 +5
det_R(A) = a11 M11 - a21 M21 + a31 M31 = +38
det_R(A) = a11 C11 + a21 C21 + a31 C31 = +38
Press return to continue.
Mathc matrices/a229
Application
Installer et compiler ces fichiers dans votre répertoire de travail.
/* Save as : c00a.c */
void fun(void)
double a11 = 5;
double a12 = 2;
double a13 = 3;
double a[R3*C3] = { a11, a12, a13,
3, 4, 1,
4, 2, 5};
double **A = ca_A_mR(a ,i_mR(R3,C3));
clrscrn();
printf(" M = Minor; C = cofactor \n\n"
" We work with the first row \n\n\n");
printf(" A : det_R(A) = %+.0f", det_R(A));
p_mR(A,S3,P0,C6);
printf("\n"
" det_R(A) = a11 M11 - a12 M12 + a13 M13 = %+.0f\n\n",
+ a11 * minor_R(A, R1, C1)
- a12 * minor_R(A, R1, C2)
+ a13 * minor_R(A, R1, C3) );
printf("\n"
" det_R(A) = a11 C11 + a12 C12 + a13 C13 = %+.0f\n\n",
+ a11 * cofactor_R(A, R1, C1)
+ a12 * cofactor_R(A, R1, C2)
+ a13 * cofactor_R(A, R1, C3) );
stop();
f_mR(A);
/* ------------------------------------ */
int main(void)
fun();
return 0;
/* ------------------------------------ */
Exemple de sortie écran :
M = Minor; C = cofactor
We work with the first row
A : det_R(A) = +38
+5 +2 +3
+3 +4 +1
+4 +2 +5
det_R(A) = a11 M11 - a12 M12 + a13 M13 = +38
det_R(A) = a11 C11 + a12 C12 + a13 C13 = +38
Press return to continue.
Mathc matrices/a231
Installer et compiler ces fichiers dans votre répertoire de travail.
/* Save as : c00a.c */
void fun(int r)
double **U = r_mR(i_mR(r,r),9.);
double **Orth = i_mR(r,r);
double **Orth_Normal_T = i_mR(r,r);
clrscrn();
printf(" U :");
p_mR(U, S8,P4, C6);
orth_uv_mR(U,Orth,NO);
printf(" Orth :");
p_mR(Orth, S8,P4, C6);
stop();
clrscrn();
printf(" Orth_Normal :");