Application

Installer et compiler ce fichier dans votre répertoire de travail.

c00a.c
/* ------------------------------------ */
/*  Save as :   c00a.c                  */
/* ------------------------------------ */
#include "v_a.h" 
/* ------------------------------------ */
/* ------------------------------------ */
#define  TAB  C3
/* ------------------------------------ */
#define   RU  R3
#define   CU  C1
/* ------------------------------------ */
/* ------------------------------------ */
void fun(void)
{

double u[TAB][RU]={{+2,+2,+6},
	               {+1,+5,+3},
	               {+4,+3,+2}};
double **U[TAB];

double **B  = i_mR(RU,RU);

double v[RU] = {+1,+0,+0};
double **V   = ca_A_mR(v,i_mR(RU,C1));

double **BV  = i_mR(RU,C1);

int c;

  clrscrn();
  
  for(c=C0; c<TAB; c++)
     {
       U[c] = ca_A_mR( u[c],i_mR(RU,C1));
       c_c_mR(U[c],C1, B,c+C1);
      }
      
  printf(" Three U vectors in the Standard Basis \n\n"  
         "    U[0]   U[1]   U[2] :");	     
  p_mR(B,S6,P0,C10);
  
  
  printf(" The V vector in the base U : ");      
  p_mR(V,S6,P0,C10);  
  
  printf(" Find the coordinate of V into the standard basis");
  mul_mR(B,V,BV);
  p_mR(BV,S6,P0,C10);
  
  stop();
  
  for(c=C0; c<TAB; c++)
  
       f_mR(U[c]); 
       
  f_mR(B);   
  f_mR(V);
  f_mR(BV); 
}
/* ------------------------------------ */
int main(void)
{
  fun();

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


Introduction du vecteur V.


Exemple de sortie écran :

 ------------------------

 Three U vectors in the Standard Basis 

    U[0]   U[1]   U[2] :
    +2     +1     +4 
    +2     +5     +3 
    +6     +3     +2 

 The V vector in the base U : 
    +1 
    +0 
    +0 

 Find the coordinate of V into the standard basis
    +2 
    +2 
    +6 

 Press return to continue.