Mathc complexes/c082d
Installer et compiler ces fichiers dans votre répertoire de travail.
cofm_z.c |
---|
/* ------------------------------------ */
/* Save as : cofm_z.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
void fun(int r)
{
double **A = r_mZ(i_mZ(r,r),9.);
double ** Cofactor = i_mZ(r,r);
clrscrn();
printf(" A :\n");
p_mZ(A, S5,P0, S4,P0, C6);
printf(" Cofactor :\n");
p_mZ(cofactor_mZ(A,Cofactor), S7,P0, S7,P0, C6);
f_mZ(A);
f_mZ(Cofactor);
}
/* ------------------------------------ */
int main(void)
{
time_t t;
srand(time(&t));
do
{
fun(rp_I(RC4)+RC2);
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
On construit la matrice des cofacteurs.
Exemple de sortie écran :
A :
-5 -1i +2 -9i -3 -3i
-5 +6i -7 -7i +8 +6i
+4 -1i +2 +4i -3 +8i
Cofactor :
+85 -79i +71 +74i +1 +13i
-60 -61i +38 -28i +5 -16i
+70 -102i +67 +35i -16 -15i
Press return to continue
Press X to stop