Mathc matrices/a188
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
#define RA R3
#define CA C3
/* ------------------------------------ */
int main(void)
{
double a[RA*CA] ={ 4,2,3,
5,3,1,
8,2,2};
double **A = ca_A_mR(a,i_mR(RA,CA));
double **Minor = i_mR(RA-C1,CA-C1);
int minor_r = R1;
int minor_c = C1;
clrscrn();
printf(" A :");
p_mR(A,S4,P0,C6);
printf(" Minor(R%d,C%d) :\n",minor_r, minor_c);
p_mR(minor_mR(A,Minor,minor_r,minor_c),S4,P0,C6);
stop();
f_mR(A);
f_mR(Minor);
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
'''Exemple de sortie écran :'''
A :
+4 +2 +3
+5 +3 +1
+8 +2 +2
Minor(R1,C1) :
+3 +1
+2 +2
Press return to continue.