Download Maple Advanced Programming Guide

Transcript
210
•
Chapter 3: Input and Output
> interface(indentamount=1);
4
> print(expand((x+y)^6));
6
x
5
+ 6 x
4
y + 15 x
2
+ 15 x
2
y
4
y
3
+ 20 x
5
+ 6 x y
3
y
6
+ y
> interface(prettyprint=0);
1
> 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
Writing Maple Strings to a File
The writeline command writes one or more Maple strings to a file. Each
string appears on a separate line. Call the writeline command as follows.
writeline( fileIdentifier, stringSequence )
The fileIdentifier is the name or description of the file to which Maple is
to write, and stringSequence is the sequence of strings that writeline
should write. If you omit the stringSequence, then writeline writes a
blank line to the file.