Linear Algebra and the C Language/a0eo
Install and compile this file in your working directory.
/* ------------------------------------ */
/* Save as : c00b.c */
/* ------------------------------------ */
#include "v_a.h"
/* ------------------------------------ */
int main(void)
{
double **A = i_mR(R3,C3);
clrscrn();
printf("A = ID");
p_mR(eye_mR(A), S1,P0,C6);
printf("A = 0");
p_mR(m0_mR(A), S1,P0,C6);
stop();
f_mR(A);
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Screen output example:
A = ID
+1 +0 +0
+0 +1 +0
+0 +0 +1
A = 0
+0 +0 +0
+0 +0 +0
+0 +0 +0
Press return to continue.