Application


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


c01a.c
/* ------------------------------------ */
/*  Save as : c01a.c                    */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
/* ------------------------------------ */
#define   RB R2
#define   CB C2

#define   RU R2
#define   CU C1
/* ------------------------------------ */
/* ------------------------------------ */
int main(void)
{
double b[RB*CB]={
    +2,  4,   
    +6,  2
};

double u_b[RU*(CU)]={
    +1,   
    +1
};

double **B   = ca_A_mR(  b,i_mR(RB,CB));
double **U_b = ca_A_mR(u_b,i_mR(RU,CU));
double **U_s =             i_mR(RU,CU) ;

  clrscrn();
  printf(" B is the change of basis matrix for \"B\" \n\n"
         " Find the coordinate of U in the standard basis.\n\n"
         " B :   ");
  p_mR(B,S4,P0,C7);
  printf(" U_b :   the coordinate of U in the \"B\" basis");
  p_mR(U_b,S4,P0,C7);

  printf("         B*U_b = U_s \n\n"
         " U_s :   the coordinate of U in the Standard basis");
  p_mR(mul_mR(B,U_b,U_s),S4,P0,C7);
  stop();

  f_mR(U_s);
  f_mR(U_b);
  f_mR(B);
  
  return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */


Matrice de passage inversible :

Soit B la matrice de changement de base de B
Trouver les coordonnées de U dans la base standard :

       B * U_b = U_s
                


Exemple de sortie écran :
 ------------------------------------ 
 B is the change of basis matrix for "B" 

 Find the coordinate of U in the standard basis.

 B :   
  +2   +4 
  +6   +2 

 U_b :   the coordinate of U in the "B" basis
  +1 
  +1 

         B*U_b = U_s 

 U_s :   the coordinate of U in the Standard basis
  +6 
  +8 

 Press return to continue.