Mathc matrices/c072a
Installer et compiler ces fichiers dans votre répertoire de travail.
c02a.c |
---|
/* ------------------------------------ */
/* Save as : c02a.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
void fun(int r)
{
double **A = r_mR(i_mR(r,r),9.);
double **At = i_mR(r,r);
clrscrn();
printf(" A\n");
p_mR(A,S3,P0,C6);
printf(" At\n");
p_mR(transpose_mR(A,At),S3,P0,C6);
printf(" det_R(A) = %+.0f\n",det_R(A));
printf(" det_R(At) = %+.0f\n",det_R(At));
f_mR(A);
f_mR(At);
}
/* ------------------------------------ */
int main(void)
{
time_t t;
srand(time(&t));
do
{
fun(rp_I(RC5)+RC1);
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Exemple de sortie écran :
A
-5 +2 +8 +2 +2 +8
-5 +2 +6 -9 -1 -1
+6 -7 -1 -1 -3 -5
-7 -5 +6 -3 -9 +4
+8 +6 -9 -9 +8 -9
-9 -1 +2 +6 +2 -1
At
-5 -5 +6 -7 +8 -9
+2 +2 -7 -5 +6 -1
+8 +6 -1 +6 -9 +2
+2 -9 -1 -3 -9 +6
+2 -1 -3 -9 +8 +2
+8 -1 -5 +4 -9 -1
det_R(A) = -265000
det_R(At) = -265000
Press return to continue
Press X to stop