Mathc matrices/011
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
#define FACTOR_E +1.E-0
/* ------------------------------------ */
void fun(int r)
{
double **U = r_mR( i_mR(R1, r),9);
double **V = r_mR( i_mR(r ,C1),9);
double **A = rHankel_mR(U,V,i_mR(r , r) );
double **Cofactor = i_mR(r,r);
clrscrn();
printf(" A :\n");
p_mR(A,S5,P0,C6);
printf(" Cofactor :\n");
p_mR(cofactor_mR(A,Cofactor),S8,P0,C6);
f_mR(U);
f_mR(V);
f_mR(A);
f_mR(Cofactor);
}
/* ------------------------------------ */
int main(void)
{
time_t t;
srand(time(&t));
do
{
fun(rp_I(R4)+R1);
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Matrice de Hankel.
Exemple de sortie écran :
A :
+4 -4 -6 -4
-4 -6 -4 -8
-6 -4 -8 -2
-4 -8 -2 -6
Cofactor :
+216 -96 -120 +24
-96 +424 -16 -496
-120 -16 -176 +160
+24 -496 +160 +280
Press return to continue
Press X return to stop