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

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

__NOTOC__ Install this file in your working directory. /* ------------------------------------ */ /* Save as : z_d.h */ /* ------------------------------------ */ /* --------------------- A : Arrays */ #define A0 0 #define A1 1 #define A2 2 #define A3 3 #define A4 4 #define A5 5 #define A6 6 #define A7 7 #define A8 8 #define A9 9 #define A10 10 #define A11 11 #define A12 12 #define A13 13 #define A14 14 #define A15 15 /* --------------------- C : Columns */ #define C0 0 #define C1 1 #define C2 2 #define C3 3 #define C4 4 #define C5 5 #define C6 6 #define C7 7 #define C8 8 #define C9 9 #define C10 10 #define C11 11 #define C12 12 #define C13 13 #define C14 14 #define C15 15 /* ------------------------ R : Rows */ #define R0 0 #define R1 1 #define R2 2 #define R3 3 #define R4 4 #define R5 5 #define R6 6 #define R7 7 #define R8 8 #define R9 9 #define R10 10 #define R11 11 #define R12 12 #define R13 13 #define R14 14 #define R15 15 /* ------------------ RC : Columns Rows */ #define RC0 0 #define RC1 1 #define RC2 2 #define RC3 3 #define RC4 4 #define RC5 5 #define RC6 6 #define RC7 7 #define RC8 8 #define RC9 9 #define RC10 10 #define RC11 11 #define RC12 12 #define RC13 13 #define RC14 14 #define RC15 15 /* -------- P : Figures after the point */ #define P0 0 #define P1 1 #define P2 2 #define P3 3 #define P4 4 #define P5 5 #define P6 6 #define P7 7 #define P8 8 #define P9 9 #define P10 10 #define P11 11 #define P12 12 #define P13 13 /* --------- S : Space for a number */ #define S0 0 #define S1 1 #define S2 2 #define S3 3 #define S4 4 #define S5 5 #define S6 6 #define S7 7 #define S8 8 #define S9 9 #define S10 10 #define S11 11 #define S12 12 #define S13 13 #define S14 14 #define S15 15 /* ------------------------------------ */ #define R_SIZE R0 #define C_SIZE R1 #define C_SIZE_A R2 /* ------------------------------------ */ #define YES 1 #define NO 0 /* ------------------------------------ */ #define ERROR_E +1.E-010 /* ------------------------------------ */ #define LOOP_EIGSUV 100000 /* ------------------------------------ */ #define FILENAME 11 /* ------------------------------------ */ #ifndef PI #define PI 3.14159265359 #endif /* ------------------------------------ */ #define MAX(A,B) ((A)>(B) ? (A):(B) ) /* ------------------------------------ */ /* ------------------------------------ */ The A0, A1... will be used to declare the number of matrices in a array. The R0, R1... will be used to declare the number of rows in a matrix. The C0, C1... will be used to declare the number of columns in a matrix. RC0, RC1... will be used to declare the size of a square matrix. The S0, S1... will be used to indicate the space allocated for displaying a number in a matrix. P0, P1... will be used to declare the number of figures after the point.