(directly go to documentation on : %, True, False, EndOfFile. )

25. Yacas-specific constants

% previous result
True boolean constant representing true
False boolean constant representing false
EndOfFile end-of-file marker


% -- previous result

Internal function
Calling format:
%

Description:
% evaluates to the previous result on the command line. % is a global variable that is bound to the previous result from the command line. Using % will evaluate the previous result. (This uses the functionality offered by the SetGlobalLazyVariable command).

Typical examples are Simplify(%) and PrettyForm(%) to simplify and show the result in a nice form respectively.

Examples:
In> Taylor(x,0,5)Sin(x)
Out> x-x^3/6+x^5/120;
In> PrettyForm(%)

     3    5
    x    x
x - -- + ---
    6    120


See also:
SetGlobalLazyVariable .


True -- boolean constant representing true


False -- boolean constant representing false

Internal function
Calling format:
True
False

Description:
True and False are typically a result of boolean expressions such as 2 < 3 or True And False.

See also:
And , Or , Not .


EndOfFile -- end-of-file marker

Internal function
Calling format:
EndOfFile

Description:
End of file marker when reading from file. If a file contains the expression EndOfFile; the operation will stop reading the file at that point.