Aller au contenu

Mathc complexes/a31

Un livre de Wikilivres.


Application


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


det_z_a.c
/* ------------------------------------ */
/*  Save as :   det_z_a.c                   */
/* ------------------------------------ */

/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
void fun(int r)
{                       
double **A = r_mZ(i_mZ(r,r),9);

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

  printf(" det(A) = ");
  p_Z(det_Z(A), S4,P0, S5,P0);
  printf("\n\n\n");

  f_mZ(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=[
+2-1*i,-6+2*i,-7-6*i;
-6+6*i,+7+8*i,+9-7*i;
+9-9*i,-2+6*i,+1-6*i]

 det(A)


 det(A) = +1175+2210i 


 Press return to continue.