Mathc matrices/02p
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c000.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
int fun(int r)
{
int n = r;
double **A = rnilpotent_lower_mR( i_mR(r,r),9.);
double **An = i_mR(r,r);
clrscrn();
printf(" A : \n");
p_mR(A,S5,P0,C6);
printf(" A**%d : \n",n-1);
p_mR(pow_mR(n-1,A,An),S5,P0,C6);
printf(" A**%d : \n",n);
p_mR(pow_mR(n,A,An),S5,P0,C6);
f_mR(A);
f_mR(An);
return 0;
}
/* ------------------------------------ */
int main(void)
{
time_t t;
srand(time(&t));
do
{
fun( rp_I(RC4)+ RC1);
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Exemple de sortie écran :
A :
+0 +0 +0 +0
+2 +0 +0 +0
-5 +8 +0 +0
+5 -6 -2 +0
A**3 :
+0 +0 +0 +0
+0 +0 +0 +0
+0 +0 +0 +0
-32 +0 +0 +0
A**4 :
+0 +0 +0 +0
+0 +0 +0 +0
+0 +0 +0 +0
+0 +0 +0 +0
Press return to continue
Press X return to stop