% , True , False , EndOfFile , Infinity , Pi , Constants

Constants


%

% evaluates to the previous result on the command line. % is a global variable that is bound to the previous result from the command line. To actually evaluate the previous result, call Eval(%). This will generally not be needed, so using % in places where the result is needed will suffice.

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


True and False

True and False are typically the result of boolean expressions like 2 < 3 and True And False.


EndOfFile

EndOfFile : 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.


Infinity

Infinity represents infinity. It can be the result of certain calculations.

Note that for most analytic functions Yacas understands Infinity. Thus Infinity*2 will return Infinity, and a < Infinity will evaluate to True.


Pi

Pi represents the value of pi. When the N(..) function is used, Pi is set to the correct value. It is probably better to use Pi than Pi(), for simplification purposes.