Mathc complexes/097
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00c.c |
|---|
/* ------------------------------------ */
/* Save as : c00c.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
#define RCA RC3
/* ------------------------------------ */
/* ------------------------------------ */
int main(void)
{
double a[RCA*RCA] ={
+2.363636363638, -1.909090909092, -0.272727272727,
+1.818181818184, -1.545454545456, -0.363636363636,
-0.909090909092, +1.272727272728, +1.181818181818
};
double NVN[RCA*RCA] ={
+0.784464540553, -0.408248290464, -0.557086014531,
+0.588348405415, -0.408248290464, -0.742781352708,
-0.196116135138, +0.816496580928, +0.371390676354
};
double **A = ca_A_mRZ(a, i_mZ(RCA,RCA));
double **Nvn = ca_A_mRZ(NVN,i_mZ(RCA,RCA));
double **invNvn = invgj_mZ(Nvn, i_mZ(RCA,RCA));
double **EValue = i_mZ(RCA,RCA);
double **T = i_mZ(RCA,RCA);
clrscrn();
printf(" A :");
p_mRZ(A, S9,P8, C4);
printf(" Nvn :");
p_mRZ(Nvn, S9,P8, C4);
printf(" Verify if:\n\n"
" EValue = invNvn A Nvn\n\n"
" EValue 1 EValue 2 EValue 3");
mul_mZ(invNvn,A,T);
mul_mZ(T,Nvn,EValue);
p_mRZ(EValue, S9,P8, C4);
stop();
clrscrn();
printf(" A :");
p_mRZ(A, S9,P8, C4);
printf(" Verify if:\n\n"
" A = Nvn EValue invNvn");
mul_mZ(Nvn,EValue,T);
mul_mZ(T,invNvn,A);
p_mRZ(A, S8,P8, C4);
stop();
clrscrn();
printf(" det(Nvn) = ");p_Z(det_Z(Nvn), S4,P5, S5,P5);printf("\n");
printf(" det(Nvn) != 0 V1 and V2 and V3 are linearly independent\n\n");
printf(" The matrix A projects the space in the direction\n"
" of the eigenvector V3 on a plan determined by\n"
" the eigenvector V1 and V2 if :\n\n"
" The eigenvector V1 has its eigenvalue equal to one and \n"
" The eigenvector V2 has its eigenvalue equal to one and \n"
" The eigenvector V3 has its eigenvalue equal to zero and \n\n"
" If The vectors V1 and V2 and V3 are linearly independent\n\n");
stop();
f_mZ(A);
f_mZ(Nvn);
f_mZ(invNvn);
f_mZ(EValue);
f_mZ(T);
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Vous vérifiez les propriétés de la matrice A. * Les valeurs propres : EValue = invNlv A Nlv * La matrice : A = Nvn EValue invNvn Si les vecteurs colonnes de A sont linéairement indépendants
Exemple de sortie écran :
A :
+2.36363636 -1.90909091 -0.27272727
+1.81818182 -1.54545455 -0.36363636
-0.90909091 +1.27272727 +1.18181818
Nvn :
+0.78446454 -0.40824829 -0.55708601
+0.58834841 -0.40824829 -0.74278135
-0.19611614 +0.81649658 +0.37139068
Verify if:
EValue = invNvn A Nvn
EValue 1 EValue 2 EValue 3
+1.00000000 +0.00000000 +0.00000000
-0.00000000 +1.00000000 +0.00000000
-0.00000000 +0.00000000 -0.00000000
Press return to continue.
A :
+2.36363636 -1.90909091 -0.27272727
+1.81818182 -1.54545455 -0.36363636
-0.90909091 +1.27272727 +1.18181818
Verify if:
A = Nvn EValue invNvn
+2.36363636 -1.90909091 -0.27272727
+1.81818182 -1.54545455 -0.36363636
-0.90909091 +1.27272727 +1.18181818
Press return to continue.
det(Nvn) = +0.16354+0.00000i
det(Nvn) != 0 V1 and V2 and V3 are linearly independent
The matrix A projects the space in the direction
of the eigenvector V3 on a plan determined by
the eigenvector V1 and V2 if :
The eigenvector V1 has its eigenvalue equal to one and
The eigenvector V2 has its eigenvalue equal to one and
The eigenvector V3 has its eigenvalue equal to zero and
If The vectors V1 and V2 and V3 are linearly independent
Press return to continue.