Mathc matrices/c11b5

Un livre de Wikilivres.


Application


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


c00f.c
/* ------------------------------------ */
/*  Save as :   c00f.c                  */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
void fun(int r)
{
double **A   = r_mR(i_mR(r,r),9999.);

  clrscrn();

  printf(" Copy/Past into the octave window.\n\n");
  p_Octave_mR(A,"A",P0);
  printf("format short e\n" 
         "inv(A)\n");

  f_mR(A);
}
/* ------------------------------------ */
int main(void)
{
time_t t;

  srand(time(&t));
do
{
  fun(rp_I(RC5)+C1);

} while(stop_w());


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


Vous pouvez trouvez toutes les commandes Octave utilisés dans ce cours ici :  Listes des commandes 



Exemple de sortie écran :
/* ------------------------------------ */
 Copy/Past into the octave window.

 A=[
-2222,+6933,+8646,-1613,+5074;
+217,+3407,-4565,-5882,-3689;
-9513,-4256,-9535,+5589,+2607;
-9741,+3326,-1379,-1256,-2509;
+9699,+1376,+2650,+7941,+455]

format short e
inv(A)

 Press return to continue
 Press X      to stop