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/a0eo

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 : 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; } /* ------------------------------------ */ /* ------------------------------------ */ You can call a function and display the matrix with a single command. 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.