Application


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


c00a.c
/* ------------------------------------ */
/*  Save as :   c00a.c                  */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
#define   RCA RC3
#define   CX  C1
/* ------------------------------------ */
/* ------------------------------------ */
int main(void)
{
double a[RCA*(RCA*C2)]={
    +3,1, -4,1, -2,1, 
    +5,2, -3,2, -0,2,      
    +6,3, -0,3, -3,3  
};

double x_S[RCA*(CX*C2)]={
     +5.00,  +41.00, 
    -10.00,  +30.00, 
     +2.00,  +46.00  
};
 
double **A    = ca_A_mZ(a,   i_mZ(RCA,RCA));
double **X_S  = ca_A_mZ(x_S, i_mZ(RCA,CX));
double **AX_S =              i_mZ(RCA,CX) ;

  clrscrn();
  printf(" In the Standard basis\n\n"
         " Find the linear application T(x_S) = A*x_S \n\n"
         " A :  ");
  p_mZ(A, S10,P2, S8,P2, C4);
  printf(" x_S ");
  p_mZ(X_S, S10,P2, S8,P2, C4);
  printf(" T(x_S) = A*x_S");
  p_mZ(mul_mZ(A,X_S,AX_S), S10,P2, S8,P2, C4);
  stop();


  f_mZ(A);
  f_mZ(X_S);
  f_mZ(AX_S);
  
  return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
 Calculons T([x]) = A*[x] en base standard.
Exemple de sortie écran :
 In the Standard basis

 Find the linear application T(x_S) = A*x_S 

 A :  
     +3.00   +1.00i      -4.00   +1.00i      -2.00   +1.00i 
     +5.00   +2.00i      -3.00   +2.00i      +0.00   +2.00i 
     +6.00   +3.00i      +0.00   +3.00i      -3.00   +3.00i 

 x_S 
     +5.00  +41.00i 
    -10.00  +30.00i 
     +2.00  +46.00i 

 T(x_S) = A*x_S
    -66.00  -92.00i 
   -179.00 +109.00i 
   -327.00  +99.00i 

 Press return to continue.