Mathc matrices/c101h

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   = rE_mR(i_mR(r,r), 99999, 1E-2);

  clrscrn();

  printf(" Copy/Past into the octave window.\n\n");
  pE_Octave_mR(A,"A",P4);
  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=[
-7.6636e+02,-5.2565e+02,-7.2553e+02;
-4.8130e+02,-3.8233e+02,-1.8540e+01;
+8.5020e+01,+2.8262e+02,+3.8345e+02]

format short e
inv(A)

 Press   return to continue
 Press X return to stop