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

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" /* ------------------------------------ */ /* ------------------------------------ */ void fun(int r,int c) { double **A = rE_mR(i_mR(r,c), 99999, 1E-2); clrscrn(); printf(" A : Scientific notation"); pE_mR(A, S10,P2,C10); f_mR(A); } /* ------------------------------------ */ int main(void) { time_t t; srand(time(&t)); int i; do { i = rp_I(R3)+R1; fun(i,i+C1); } while(stop_w()); return 0; } /* ------------------------------------ */ /* ------------------------------------ */ Cn: Allows you to control the number of columns to display per row. Screen output example: A : Scientific notation +5.01e+02 +2.71e+01 -3.65e+02 -9.65e+02 -1.10e+02 -9.68e+02 +7.04e+02 -9.02e+02 -5.39e+02 +6.95e+02 +4.01e+02 +9.84e+02 -8.27e+02 -3.67e+02 -2.46e+02 -7.21e+02 +1.18e+02 +4.25e+02 +8.99e+02 +2.87e+02 Press return to continue Press X return to stop