Mathc matrices/cq060
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(r,C1),9.);
double **v = r_mR(i_mR(r,C1),9.);
clrscrn();
printf(" u :");
p_mR(u,S3,P0,C6);
printf(" v :");
p_mR(v,S3,P0,C6);
printf(" <u,v> = <v,u> [Symmetry axiom] \n\n");
printf(" <u,v> = v^t.u \n");
printf(" <u,v> = %.0f \n\n", dot_R(u,v));
printf(" <v,u> = u^t.v \n");
printf(" <v,u> = %.0f \n\n", dot_R(v,u));
f_mR(u);
f_mR(v);
}
/* ------------------------------------ */
int main(void)
{
time_t t;
srand(time(&t));
do
{
fun(rp_I(R3)+R2);
} while(stop_w());
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Exemple de sortie écran :
u :
+8
-1
-3
-7
-7
v :
+5
-9
+2
-5
-4
<u,v> = <v,u> [Symmetry axiom]
<u,v> = v^t.u
<u,v> = 106
<v,u> = u^t.v
<v,u> = 106
Press return to continue
Press X to stop