Sponsored links: Algebra eBooks
 

Related

printf

printf(false,"~6d",50...

Calculate

printf

printf(true, "%g", 3....

Calculate

printf

printf(false,"~4f",51...

Calculate

printf

/* Definintion von zw...

b:[false,false,true,t...

eq2: /* Definition ei...

Calculate

printf

x:123.4567;

printf(false,"~1f",x);

printf(false,"~2f",x);

Calculate

printf

printf(false,"~g",50/...

Calculate

printf

x:123.4567;

printf(false,"~1f",x);

printf(false,"~2f",x);

Calculate

printf

printf(false,"~2f",50...

printf(false,"~,2h",5...

Calculate

printf

printf(false,"~5e",51...

Calculate

printf

printf(false,"~g",50/...

printf(false,"~,1h",5...

Calculate

printf

Run Example
(%i1)M: matrix( [2,1,5], [1,2,6]);
                                  [ 2  1  5 ]
(%o1)                             [         ]
                                  [ 1  2  6 ]
(%i2) A:submatrix(M,3);
                                   [ 2  1 ]
(%o2)                              [      ]
                                   [ 1  2 ]
(%i3) B:submatrix(submatrix(M,1),1);
                                     [ 5 ]
(%o3)                                [   ]
                                     [ 6 ]
(%i4) X:(invert(A).B);
                                     [ 4 ]
                                     [ - ]
                                     [ 3 ]
(%o4)                                [   ]
                                     [ 7 ]
                                     [ - ]
                                     [ 3 ]
(%i5) printf(true, "x = ~a % y = ~a", X[1,1],X[2,1]);
x = 4/3 % y = 7/3(%o5)                                false
(%i6) 
Run Example
x:123.4567;
(%o1)                              123.4567
(%i2) printf(false,"~1f",x);
(%o2)                                100.
(%i3) printf(false,"~2f",x);
(%o3)                                100.
(%i4) printf(false,"~3f",x);
(%o4)                                120.
(%i5) printf(false,"~4f",x);
(%o5)                                123.
(%i6) printf(false,"~5f",x);
(%o6)                                123.5
(%i7) printf(false,"~,2h",x);
(%o7)                               123.46
(%i8) printf(false,"~,2 @h",x);
(%o8)                               +123.46
(%i9) 
Run Example
printf(false,"~5g",50/100);
(%o1)                               .5    
(%i2) 

Related Help

Help for Printf