Mathc complexes/Fichiers c : test02c
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
void fun(int r,int c)
{
double **A =i_mZ(r,c);
clrscrn();
printf(" A : \t\t i_mZ();");
p_mZ(A, S5,P0, S3,P0, C5);
printf(" A : \t\t r_mZ();");
p_mZ(r_mZ( A ,9), S5,P0, S3,P0, C5);
printf(" A : \t\t m0_mZ(A);");
m0_mZ(A);
p_mZ(A, S5,P0, S3,P0, C5);
stop();
clrscrn();
printf(" A : \t\t r_mZ();");
p_mZ(r_mZ( A ,9), S5,P0, S3,P0, C5);
printf(" A : \t\t p_mZ(m0_mZ(A),S5,P0,C10);");
p_mZ(m0_mZ(A), S5,P0, S3,P0, C5);
f_mZ(A);
}
/* ------------------------------------ */
int main(void)
{
time_t t;
srand(time(&t));
do
{
fun(rp_I(R3)+R2,rp_I(C3)+C2);
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
La matrice nulle. La matrice un.
Exemple de sortie écran :
A : i_mZ();
+0 +0i +0 +0i +0 +0i +0 +0i
+0 +0i +0 +0i +0 +0i +0 +0i
+0 +0i +0 +0i +0 +0i +0 +0i
A : r_mZ();
+1 +7i +9 -2i +8 -9i +3 +3i
+1 -5i -5 +1i -4 -4i -5 +4i
-4 +8i -4 -1i +6 +4i +7 -1i
A : m0_mZ(A);
+0 +0i +0 +0i +0 +0i +0 +0i
+0 +0i +0 +0i +0 +0i +0 +0i
+0 +0i +0 +0i +0 +0i +0 +0i
Press return to continue.
A : r_mZ();
+6 -8i +5 +2i +8 -3i +2 +5i
-7 -6i +7 +1i -4 +8i +6 -3i
-2 -7i -8 -9i +9 -6i -7 +4i
A : p_mZ(m0_mZ(A),S5,P0,C10);
+0 +0i +0 +0i +0 +0i +0 +0i
+0 +0i +0 +0i +0 +0i +0 +0i
+0 +0i +0 +0i +0 +0i +0 +0i
Press return to continue
Press X return to stop