Execute a program
The XEQ
command executes the object on the top level of the stack.
The effect of the execution and the resulting output depends on the type of object being executed, as summarized by the following list.
XEQ
enters each object in the program:XEQ
ted;XEQ
puts the object on the stack.This command is new in newRPL and does not exist in userRPL.
The command
1: « '16' √ » …………………………………………………………………………………… XEQ
will perform the following steps:
'16'
(a symbolic expression) is put on the stack;√
(a keyword) is XEQ
ted.Resulting in
1: '√16' ……………………………………………………………………………………
Operator | Short Description | |
---|---|---|
Evaluation operators: | ||
EVAL1 | Evaluate one level | NEW |
EVAL | Evaluate full depth | |
XEQ | Execute | NEW |
→NUM | Compute numeric result | |
Test operators: | ||
== | Equality test | |
≠ | Not equal test | |
< | Less than test | |
≤ | Less than or equal test | |
> | Greater than test | |
≥ | Greater than or equal test | |
CMP | Comparison test (<0 if A<B, 0 if A==B, >0 if A>B) | NEW |
SAME | Comparison test, true if objects are the same | |
ISTRUE | True test | NEW |
Logical operators: | ||
AND | Logical AND | |
OR | Logical OR | |
XOR | Logical XOR | |
NOT | Logical NOT | |
Mathematic operators: | ||
+ | Addition | |
- | Subtraction | |
* | Multiplication | |
/ | Division | |
^ | Power | |
XROOT | Root | |
INV | Inverse | |
NEG | Negate/change sign | |
ABS | Magnitude or absolute value |