11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

178 • Chapter 4: Input and Outputand other typeset mathematical documents, or an approximation of standardmath notation using only text characters.The print command is called as follows.print( expressionSequence )The expressionSequence consists of one or more Maple expressions. Mapleprints each expression, in turn, with commas separating them.The output produced by print is always sent to the default outputstream. You can use the writeto and appendto commands, describedlater, to temporarily redirect the default output stream to a file.Several interface parameters affect the output of print. They areset using the syntaxinterface( parameter = value )They include:prettyprint This selects the type of output that print is to produce.• If you set prettyprint to 0, print produces the same output aslprint.• If you set prettyprint to 1, print produces a simulated mathnotation using only text characters.• If you set prettyprint to 2, and the version of Maple you arerunning is capable of it, print produces output using standardmath notation.• The default setting of prettyprint is 2.indentamount This specifies the number of spaces that Maple uses toindent the continuation of expressions that are too large to fit on asingle line. This parameter takes effect only when you set prettyprint(see previous definition) to 1, or when Maple is printing procedures.The default setting of indentamount is 4.labelling or labeling You can set this to true or false, indicatingwhether Maple should use labels to represent common subexpressionsin large expressions. Labels can make large expressions easier to readand comprehend. The default setting of labelling is true.labelwidth This indicates the size that a subexpression must have forMaple to consider it for labeling (if labelling is true). The size is

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

Saved successfully!

Ooh no, something went wrong!