Application

Installer et compiler ce fichier dans votre répertoire de travail.

c00a.c
/* ------------------------------------ */
/*  Save as :   c00a.c                  */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
void fun(void)
{
double  a[R3*(C3*C2)]={ 1,0, 0,0, 0,0,
                        9,9, 1,0, 0,0,
                        2,3, 4,5, 1,0 };	
                        
double id[R3*(C3*C2)]={ 1,0,   0, 0, 0, 0,  
                        0,0,   1, 0, 0, 0,
                       -2,-3, -4,-5, 1, 0 };                 
              
double **A  = ca_A_mZ(a, i_mZ(R3,C3));
double **ID = ca_A_mZ(id,i_mZ(R3,C3));

double **AID = mul_mZ(A,ID,i_mZ(R3,C3));

  clrscrn();
  printf(" Zero on the left of the pivot \n\n");
  printf(" ID : Add a constant c times one column to another.");
  p_mZ(ID, S4,P0, S3,P0, C6);
  printf(" A :");
  p_mZ(A, S4,P0, S3,P0, C6);
  printf(" A ID : ");
  p_mZ(AID, S4,P0, S3,P0, C6);
   
  f_mZ(A);
  f_mZ(ID);
  f_mZ(AID);
}
/* ------------------------------------ */
int main(void)
{

  fun();
  
  stop();

  return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */


mettre zéro sur la gauche du pivot


Exemple de sortie écran :

 Zero on the left of the pivot 

 ID : Add a constant c times one column to another.
  +1 +0i   +0 +0i   +0 +0i 
  +0 +0i   +1 +0i   +0 +0i 
  -2 -3i   -4 -5i   +1 +0i 

 A :
  +1 +0i   +0 +0i   +0 +0i 
  +9 +9i   +1 +0i   +0 +0i 
  +2 +3i   +4 +5i   +1 +0i 

 A ID : 
  +1 +0i   +0 +0i   +0 +0i 
  +9 +9i   +1 +0i   +0 +0i 
  +0 +0i   +0 +0i   +1 +0i 

 Press return to continue.