Mathc complexes/03w
Apparence
Installer et compiler ce fichier dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
int main(void)
{
double **A = i_mZ(R3,C3);
clrscrn();
printf(" Math : A[%d][%d]",rsize_Z(A),csize_Z(A));
p_mZ(A, S10,P2, S8,P2, C4);
printf(" C language : A[%d][%d]\n",rsize_Z(A),csize_Z(A));
pall_mZ(A, S10,P2, S8,P2);
stop();
f_mZ(A);
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Dans cet exemple, on peut voir la structure interne de la matrice, grâce à la fonction pall_mZ();
Exemple de sortie écran :
Math : A[3][3]
+0.00 +0.00i +0.00 +0.00i +0.00 +0.00i
+0.00 +0.00i +0.00 +0.00i +0.00 +0.00i
+0.00 +0.00i +0.00 +0.00i +0.00 +0.00i
C language : A[3][3]
+4 +1.00 0.00 +2.00 0.00 +3.00 0.00
+7 +0.00 +0.00i +0.00 +0.00i +0.00 +0.00i
+0 +0.00 +0.00i +0.00 +0.00i +0.00 +0.00i
+0 +0.00 +0.00i +0.00 +0.00i +0.00 +0.00i
Press return to continue.