Mathc matrices/04d
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
#define RCA R3
/* ------------------------------------ */
int main(void)
{
double a[RCA*RCA]={
+0.447406866326, -0.357925493061, -0.345142439737,
-0.357925493061, +0.286340394449, +0.276113951790,
-0.345142439737, +0.276113951790, +0.266252739226
};
double **A = ca_A_mR(a,i_mR(RCA,RCA));
clrscrn();
printf(" Copy/Past into the octave windows \n\n");
p_Octave_mR(A,"a",P12);
printf(" [V, E] = eigs (a,%d) \n\n",RCA);
stop();
f_mR(A);
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Vérifier avec octave
Exemple de sortie écran :
Copy/Past into the octave windows
a=[
+0.447406866326,-0.357925493061,-0.345142439737;
-0.357925493061,+0.286340394449,+0.276113951790;
-0.345142439737,+0.276113951790,+0.266252739226]
[V, E] = eigs (a,3)
Press return to continue.