411 REFERENCE · Wikibooks
Linear Algebra and the C Language/a0eq
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
__NOTOC__
Print a matrix:
This is just for practice with the p_mR(); function;
p_mR(A, Sn,Pn,Cn);
p_mR(eye_mR(A), Sn,Pn,Cn);
double **A = p_mR(eye_mR(i_mR(Rn,Cn)), Sn,Pn,Cn);
Control the function p_m();
SPaCe: S = eSpace; P = Point; C = Colonnes
p_mR(A, Sn,Px,Cx); ....... Sn Allows you to control the space between numbers.
p_mR(A, Sx,Pn,Cx); ....... Pn Allows you to control the number of digits after the point.
p_mR(A, Sx,Px,Cn); ....... Cn Allows you to control the number of columns to display per row.
Utilities
Scientific notation:
pE_mR();
Standard notation with comma: Copy these values into a C file
P_mR();
Scientific notation with comma:
PE_mR();
Code study
Without formatting:
p1_mR(A);
Control the number of digits to display after the decimal point:
p2_mR(A, P3 );
Control the size of the columns:
p3_mR(A, S10);
Control the size of the columns and the number of digits to display after the decimal point:
p4_mR(A, S10,P2);
Control the number of columns displayed per row:
p5_mR(A, S4,P0,C3);