>
|
|
3*x^2, x, Int(sin(x+y)/(x-y),x)
| |
Arguments are evaluated before printing.
>
|
|
Si(x-y)*cos(2*y)+Ci(x-y)*sin(2*y)
| |
Note: In command-line Maple, the output of lprint can be cut and pasted into a Maple session while pretty-printed output cannot be.
The interface setting of prettyprint determines whether line printing or pretty-printing is used to display the results of normal evaluation.
>
|
|
lprint[2] line breaks and indents procedures, but prints other expressions in one-dimensional form.
>
|
lprint(proc(x) if x < 0 then x else sqrt(x) end if end proc);
|
proc (x) if x < 0 then x; else sqrt(x); end if; end proc
| |
>
|
lprint[2](proc(x) if x < 0 then x else sqrt(x) end if end proc);
|
proc( x )
if x < 0 then
x;
else
sqrt(x);
end if;
end proc
| |