Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Linear Algebra and the C Language/a05h

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

__NOTOC__ Install and compile this file in your working directory. /* ------------------------------------ */ /* 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 **Cofactor = cofactor_mR(A, i_mR(RA,CA)); clrscrn(); printf(" A :"); p_mR(A, S5,P0,C6); printf(" Cofactor :"); p_mR(Cofactor, S8,P0,C6); stop(); f_mR(A); f_mR(Cofactor); return 0; } /* ------------------------------------ */ /* ------------------------------------ */ Screen output example: A : +4 +2 +3 +5 +3 +1 +8 +2 +2 Cofactor : +4 -2 -14 +2 -16 +8 -7 +11 +2 Press return to continue.