Sponsored links: Algebra eBooks
 

Related

printf

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

Calculate

printf

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

Calculate

printf

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

Calculate

printf

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

printf(false,"~,3,,,,...

Calculate

printf

x:123.4567;

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

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

Calculate

printf

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

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

Calculate

printf

x: 101 + 105 * (2**32...

printf(true,"~x",x);

Calculate

printf

f(a):= a[6] + a[5]*(2...

f2(a):= f(a[1]) + f(a...

b:[[1,3408,1,1507328,...

Calculate

printf

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

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

Calculate

printf

f(a):= a[6] + a[5]*(2...

f2(a):= f(a[1]) + f(a...

b:[[1,3408,1,1507328,...

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