This is an old revision of the document!
+
Synopsis
Return the sum of the arguments
Stack Diagram
| Input Stack | Output Stack | ||
|---|---|---|---|
| O | O | → | O |
| Level 2 / Argument 1 | Level 1 / Argument 2 | → | Level 1 |
Description
DescriptionCompatibility
This command is only partially compatible with userRPL.
Usage
The following program:
« 123 456 789 DROP »
leaves 123 and 456 on the stack.
Related Commands
| 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 | |