Mathc matrices/Fichiers c : test02b


Application


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


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

  clrscrn();
  printf(" Copy/Past into the octave window.       \n\n");
  p_Octave_mR(A,"A", P0);
  printf(" det(A)\n\n\n");

  printf(" det_R(A)  = %+.0f\n\n\n",det_R(A));

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

  srand(time(&t));
do
{
  fun(rp_I(RC5)+RC1);
  
} while(stop_w());

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




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

 A=[
-72,-53,-1,-39,-61,-17;
+53,-29,-77,-24,+98,-31;
-28,+64,+10,+69,+24,+19;
-69,-16,-24,+92,+67,+61;
-90,+26,-13,+62,+36,-76;
-16,+23,-63,-61,+93,+56]

 det(A)


 det_R(A)  = -367057316210



 Press return to continue
 Press X      to stop