Mathc matrices/e12d4

Un livre de Wikilivres.


Application

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

c00b.c
/* ------------------------------------ */
/*  Save as :   c00b.c                  */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
void fun(int r)
{
double **q = r_q_mR(i_mR(r,r), 9);

  clrscrn();
    
  printf(" q :      An orthogonal matrix\n\n");
  p_mR(q,S3,P3,C6);
 
  
  f_mR(q);
}
/* ------------------------------------ */
int main(void)
{
time_t t;

  srand(time(&t));

do
{
  fun(rp_I(R3)+R2);

} while(stop_w());

  return 0;
}

/* ------------------------------------ */
/* ------------------------------------ */


 Matrices orthogonales :


Exemple de sortie écran :

 q :      An orthogonal matrix


-1.000 +2.769 +1.025 -4.638 
-5.000 +1.846 -4.528 -0.357 
+6.000 -5.615 -1.968 -1.903 
+9.000 +5.077 -1.090 +0.555 


 Press return to continue
 Press X      to stop