11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.6 Output Commands • 179the approximate width, in characters, of the expression when printedwith print and prettyprint = 1.screenwidth This indicates the width of the screen in characters. Whenprettyprint is 0 or 1, Maple uses this width to decide when to wraplong expressions. When prettyprint is 2, the user interface uses pixelsinstead of characters, and determines the width automatically.verboseproc Use this parameter when printing Maple procedures.• If you set verboseproc to 1, Maple prints only user defined procedures;Maple shows system defined procedures in a simplified formgiving only the arguments, and possibly a brief description of theprocedure.• If you set verboseproc to 2, Maple prints all procedures in full.• If you set verboseproc to 3, Maple prints all procedures in full, andprints the contents of a procedure’s remember table in the form ofMaple comments after the procedure.When you use Maple interactively, it automatically displays each computedresult. The format of this display is the same as if you used theprint command. Therefore, all the interface parameters that affect theprint command also affect the display of results.Example The following command-line example illustrates print output,and how prettyprint, indentamount, and screenwidth affect it.> print(expand((x+y)^6));x 6 + 6 x 5 y + 15 x 4 y 2 + 20 x 3 y 3 + 15 x 2 y 4 + 6 x y 5 + y 6> interface(prettyprint=1);> print(expand((x+y)^6));6 5 4 2 3 3 2 4 5x + 6 x y + 15 x y + 20 x y + 15 x y + 6 x y6+ y

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!