Mathc matrices/h10i
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
/* ------------------------------------ */
void fun(int rc)
{
double **A = eye_mR(i_mR(rc,rc));
double **B = i_mR(rc,rc);
clrscrn();
printf(" A : \t\t eye_mR();");
p_mR(A,S5,P0,C10);
printf(" B : ");
eye_mR(B);
p_mR(B,S5,P0,C10);
// p_mR(eye_mR(B),S5,P0,C10);
f_mR(A);
f_mR(B);
}
/* ------------------------------------ */
int main(void)
{
time_t t;
srand(time(&t));
do
{
fun(rp_I(R3));
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
La matrice identité.
Exemple de sortie écran :
------------------------------
A : eye_mR();
+1 +0 +0
+0 +1 +0
+0 +0 +1
B :
+1 +0 +0
+0 +1 +0
+0 +0 +1
Press return to continue
Press X to stop