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

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" /* ------------------------------------ */ int main(void) { double **A = i_mR(R3,C3); clrscrn(); printf("A = ID"); eye_mR(A); p_mR(A, S1,P0,C6); printf("A = 0"); m0_mR(A); p_mR(A, S1,P0,C6); stop(); f_mR(A); return 0; } /* ------------------------------------ */ /* ------------------------------------ */ The basic method for printing a matrix. The explanation of the arguments can be found in the following examples. 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.