Mathc complexes/Fichiers c : test02c
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00b.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
/* ------------------------------------ */
void fun(int r,int c)
{
double **A = m0_mZ(i_mZ(r,c));
double **B = m1_mZ(i_mZ(r,c));
clrscrn();
printf(" A : \t\t m0_mZ();");
p_mZ(A, S5, P0,S3, P0,C10);
printf(" B :\t\t m1_mZ();");
p_mZ( B, S5, P0,S3, P0,C10);
// m1_mZ(B);
// p_mZ( B, S5, P0,S3, P0,C10);
// p_mZ(m1_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),rp_I(C3));
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
La matrice nulle. La matrice un.
Exemple de sortie écran :
A : m0_mZ();
+0 +0i +0 +0i
+0 +0i +0 +0i
B : m1_mZ();
+1 +0i +1 +0i
+1 +0i +1 +0i
Press return to continue
Press X return to stop <