Mathc matrices/00p
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
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) );
clrscrn();
printf(" Copy/Past into the octave window. \n\n");
p_Octave_mR(A,"A", P0);
printf(" trace(A)\n\n\n");
printf(" trace_R(A) = %+.0f\n\n\n",trace_R(A));
f_mR(U);
f_mR(V);
f_mR(A);
}
/* ------------------------------------ */
int main(void)
{
time_t t;
srand(time(&t));
do
{
fun(rp_I(RC5)+RC1);
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Matrice de Hankel.
Exemple de sortie écran :
Copy/Past into the octave window.
A=[
+2,-5,+1,-9;
-5,+1,-9,-3;
+1,-9,-3,-7;
-9,-3,-7,-7]
trace(A)
trace_R(A) = -7
Press return to continue
Press X return to stop