Mathc complexes/a251
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c04b.c |
---|
/* ------------------------------------ */
/* Save as : c04b.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
#define RA R2
#define CA C4
/* ------------------------------------ */
int main(void)
{
double a_Tb[RA*((CA+C1)*C2)]={
-2,+3, +1,+0, +0,-1, 3,-5, +0,+0,
-4,+2, -3,+5, -6,+4,-1,+0, +0,+0
};
double **A_Tb = ca_A_mZ(a_Tb,i_Abr_Ac_bc_mZ(RA,CA,C1));
double **A_T = c_Ab_A_mZ(A_Tb,i_mZ(RA,CA));
double **b = c_Ab_b_mZ(A_Tb,i_mZ(RA,C1));
clrscrn();
printf(" Verify if A is Basis for a Row Space by Row Reduction :\n\n");
printf(" A_T :");
p_mZ(A_T,S6,P1,S6,P1,C10);
printf(" b :");
p_mZ(b,S6,P1,S6,P1,C10);
printf(" A_Tb :");
p_mZ(A_Tb,S6,P1,S6,P1,C10);
stop();
clrscrn();
printf(" The nonzero row vectors of A_Tb form a basis\n"
" for the row space of A_Tb, and hence form a \n"
" basis for the row space of A \n\n"
" A_Tb :");
p_mZ(A_Tb,S7,P3,S7,P3,C10);
printf(" A_Tb : gj_PP_mZ(A_Tb) :");
gj_PP_mZ(A_Tb);
p_mZ(A_Tb,S7,P3,S7,P3,C10);
stop();
f_mZ(A_Tb);
f_mZ(b);
f_mZ(A_T);
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Trouver une projection sur un sous-espace vectoriel par une application linéaire :
- Dans cet exemple nous vérifions si les vecteurs lignes de A sont linéairement indépendant. Il ne doit pas y avoir des lignes de zéro.
Exemple de sortie écran :
------------------------------------
Verify if A is Basis for a Row Space by Row Reduction :
A_T :
-2.0 +3.0i +1.0 +0.0i +0.0 -1.0i +3.0 -5.0i
-4.0 +2.0i -3.0 +5.0i -6.0 +4.0i -1.0 +0.0i
b :
+0.0 +0.0i
+0.0 +0.0i
A_Tb :
-2.0 +3.0i +1.0 +0.0i +0.0 -1.0i +3.0 -5.0i +0.0 +0.0i
-4.0 +2.0i -3.0 +5.0i -6.0 +4.0i -1.0 +0.0i +0.0 +0.0i
Press return to continue.
------------------------------------
The nonzero row vectors of A_Tb form a basis
for the row space of A_Tb, and hence form a
basis for the row space of A
A_Tb :
-2.000 +3.000i +1.000 +0.000i +0.000 -1.000i +3.000 -5.000i +0.000 +0.000i
-4.000 +2.000i -3.000 +5.000i -6.000 +4.000i -1.000 +0.000i +0.000 +0.000i
A_Tb : gj_PP_mZ(A_Tb) :
+1.000 +0.000i +1.100 -0.700i +1.600 -0.200i +0.200 +0.100i +0.000 -0.000i
+0.000 +0.000i +1.000 -0.000i +1.373 +0.232i +1.264 +0.491i +0.000 +0.000i
Press return to continue.