Mathc matrices/014
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 = rToeplitz_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 Toeplitz.
Exemple de sortie écran :
A :
-8 -2 +5 -9
-9 -8 -2 +5
-3 -9 -8 -2
-6 -3 -9 -8
Cofactor :
+49 +495 -723 +591
+935 -239 +99 -723
-1111 +1619 -239 +495
+807 -1111 +935 +49
Press return to continue
Press X return to stop