Aller au contenu

Mathc complexes/a183

Un livre de Wikilivres.


Application

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,C5);

  clrscrn();

   printf(" The pall_mZ(); function shows the \n"
          " internal structure of the matrix.\n\n");   	
   printf(" C language : A[R%d][C%d]:\n",rsize_Z(A),csize_Z(A));
     pall_mZ(A, S4,P0, S2,P0);
   
   printf(" The columns have an index.\n\n"
          " On the left you have the size of the matrix.\n\n"
          " 4 rows with the row zero\n"
          " 4 = R3 + R0\n\n"
          " 11 columns  with the column zero.\n"         
          " 11 = 2*C5 + C0 \n\n"); 
  stop();
  
  f_mZ(A);
  
  return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */

Exemple de sortie écran :

 The pall_mZ(); function shows the 
 internal structure of the matrix.

 C language : A[R3][C5]:

   +4   +1 0    +2 0    +3 0    +4 0    +5 0  

  +11   +0+0i   +0+0i   +0+0i   +0+0i   +0+0i 
   +0   +0+0i   +0+0i   +0+0i   +0+0i   +0+0i 
   +0   +0+0i   +0+0i   +0+0i   +0+0i   +0+0i 

 The columns have an index.

 On the left you have the size of the matrix.

 4 rows with the row zero
 4 = R3 + R0

 11 columns  with the column zero.
 11 = 2*C5 + C0 

 Press return to continue.