Mathc complexes/Fichiers c : test02b
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
/* ------------------------------------ */
void fun(int rc)
{
double **A = eye_mZ(i_mZ(rc,rc));
double **B = i_mZ(rc,rc);
clrscrn();
printf(" A : \t\t eye_mZ();");
p_mZ(A,S5,P0,S3,P0,C10);
printf(" B : ");
eye_mZ(B);
p_mZ(B,S5,P0,S3,P0,C10);
// p_mZ(eye_mZ(B),S5,P0,S3,P0,C10);
f_mZ(A);
f_mZ(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_mZ();
+1 +0i +0 +0i +0 +0i
+0 +0i +1 +0i +0 +0i
+0 +0i +0 +0i +1 +0i
B :
+1 +0i +0 +0i +0 +0i
+0 +0i +1 +0i +0 +0i
+0 +0i +0 +0i +1 +0i
Press return to continue
Press X to stop