Mathc complexes/a276

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"
/* ------------------------------------ */    
#define RCA           RC3  
/* ------------------------------------ */       
void fun(void)
{
double **A             = r_mRZ(i_mZ(RCA,RCA),99.);

  clrscrn();
  printf(" Copy/Past into the octave windows \n\n");
  p_Octave_mRZ(A,"A",P0);  
  printf("format short e\n");
  printf(" inv (A) \n\n");  
   
  f_mZ(A);
}
/* ------------------------------------ */
int main(void)
{
time_t t;

  srand(time(&t));

do
{
  fun();

} while(stop_w());

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


Attention on travaille ici sur des réels.


Exemple de sortie écran :

 --------------------------------     
 Copy/Past into the octave windows 

 A=[
+18,-91,-16;
-93,-65,-90;
+45,-93,+55]

format short e
 inv (A) 


 Press   return to continue
 Press X return to stop