Application


Installer et compiler ces fichiers dans votre répertoire de travail.

c00b.c
/* ------------------------------------ */
/*  Save as :   c00b.c                  */
/* ------------------------------------ */
#include      "v_a.h"
/* ------------------------------------ */
void fun(void)
{
double  a[R4*C4]={ 1, 1,1,1,
                   0, 1,9,9,
                   0,-3,9,9,
                   0,-4,9,9 };	

double id[R4*C4]={ 1, 0,0,0,
                   0, 1,0,0,
                   0, 3,1,0,
                   0, 4,0,1 };                
              
double **A  = ca_A_mR(a, i_mR(R4,C4));
double **ID = ca_A_mR(id,i_mR(R4,C4));

double **IDA = mul_mR(ID,A,i_mR(R4,C4));

  clrscrn();
  printf(" Zero under the pivot \n\n");
  printf(" ID :");
  p_mR(ID,S3,P0,C6);
  printf(" A :");
  p_mR(A,S3,P0,C6);
  printf(" ID A : Add a constant c times one row to another.");
  p_mR(IDA,S5,P1,C6);
   
  f_mR(A);
  f_mR(ID);
  f_mR(IDA);
}
/* ------------------------------------ */
int main(void)
{

  fun();
  
  stop();

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


Mettre des zéros sous le pivot  :


Exemple de sortie écran :

 Zero under the pivot 

 ID :
 +1  +0  +0  +0 
 +0  +1  +0  +0 
 +0  +3  +1  +0 
 +0  +4  +0  +1 

 A :
 +1  +1  +1  +1 
 +0  +1  +9  +9 
 +0  -3  +9  +9 
 +0  -4  +9  +9 

 ID A : Add a constant c times one row to another.
 +1.0  +1.0  +1.0  +1.0 
 +0.0  +1.0  +9.0  +9.0 
 +0.0  +0.0 +36.0 +36.0 
 +0.0  +0.0 +45.0 +45.0 

 Press return to continue.