Mathc matrices/00r
Apparence
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 = rToeplitz_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 Toeplitz.
Exemple de sortie écran :
Copy/Past into the octave window.
A=[
+2,+6,+9,+3,-6,-1;
-3,+2,+6,+9,+3,-6;
+9,-3,+2,+6,+9,+3;
+9,+9,-3,+2,+6,+9;
-2,+9,+9,-3,+2,+6;
+5,-2,+9,+9,-3,+2]
trace(A)
trace_R(A) = +12
Press return to continue
Press X return to stop