Mathc matrices/a106
Apparence
Installer et compiler ce fichier dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
/* ------------------------------------ */
#define TAB C2
/* ------------------------------------ */
#define RU R2
#define CU C1
/* ------------------------------------ */
/* ------------------------------------ */
void fun(void)
{
double u[TAB][RU]={{+2,+2},
{+1,+5}};
double **U[TAB];
double **B = i_mR(RU,RU);
double v[RU] = {+1,+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(" Two U vectors in the Standard Basis \n\n"
" U[0] U[1] :");
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 :
------------------------
Two U vectors in the Standard Basis
U[0] U[1] :
+2 +1
+2 +5
The V vector in the base U :
+1
+0
Find the coordinate of V into the standard basis
+2
+2
Press return to continue.