Mathc complexes/03k
Installer et compiler ce fichier dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.c */
/* ------------------------------------ */
#include "w_a.h"
/* ------------------------------------ */
#define RCA RC4
/* ------------------------------------ */
void fun(void)
{
double **A = rdefinite_negative_mZ( i_mZ(RCA,RCA),99);
clrscrn();
printf(" A :");
p_mZ(A, S10,P4, S8,P4, C4);
f_mZ(A);
}
/* ------------------------------------ */
int main(void)
{
time_t t;
srand(time(&t));
do
{
fun();
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Matrices hermitiennes définies négatives :
Exemple de sortie écran :
A :
-69.2884 +0.0000i -1.1799 -9.0527i +3.5620 +3.2188i -0.3568 -6.6634i
-1.1799 +9.0527i -62.6808 +0.0000i +4.7064 +0.3028i -2.4198 +1.5584i
+3.5620 -3.2188i +4.7064 -0.3028i -60.1220 +0.0000i +4.8733 +1.0315i
-0.3568 +6.6634i -2.4198 -1.5584i +4.8733 -1.0315i -59.9089 +0.0000i
Press return to continue
Press X return to stop