Application


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

c00d.c
/* ------------------------------------ */
/*  Save as :   c00d.c                  */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
void fun(int r)
{
double **u  = m0_mZ(i_mZ(r,C1));

  clrscrn();
  printf(" u :");
  p_mZ(u,S3,P0,S3,P0,C6);
  
  printf("      <u,u> >= 0     [Positivity axiom] \n\n");
  printf("      <u,u>  = 0  if and only if u = 0  \n\n");
  
  printf("      <u,u> = u^t.u   \n");
  
  printf("      <u,u> =");
  p_Z(dot_Z(u,u), S3,P0, S3,P0);printf("\n");

  f_mZ(u);
}
/* ------------------------------------ */
int main(void)
{
time_t t;

  srand(time(&t));

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


} while(stop_w());

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


Exemple de sortie écran :
 u :
 +0 +0i 
 +0 +0i 
 +0 +0i 
 +0 +0i 

      <u,u> >= 0     [Positivity axiom] 

      <u,u>  = 0  if and only if u = 0  

      <u,u> = u^t.u   
      <u,u> = +0 +0i 

 Press   return to continue
 Press X return to stop