This is an old revision of the document!
π
Synopsis
Push the symbolic constant 'π' on the stack
Stack Diagram
Input Stack | Output Stack | |
---|---|---|
→ | 'π' | |
Level 1 | → | Level 1 |
Type | Analytic Function | |
Parallel list processing | Group 1 | |
Affected by flags | None |
Compatibility
This command is only partially compatible with userRPL.
In particular:
- userRPL returns the closest approximation of $π$ to 12-digits accuracy.
Usage
The following program
« 6 SETPREC π →NUM DUP 1 * »
will result in
2: 3.14159265359. 1: 3.14159. ……………………………………………………………………………………
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 |