This is an old revision of the document!
j
Synopsis
Push the symbolic constant 'j' on the stack
Stack Diagram
| Input Stack | Output Stack | |
|---|---|---|
| → | Cj | |
| Level 1 | → | Level 1 |
| Keyword type | Analytic Function | |
| Parallel list processing capabilities | Group 1 | Commands that cannot parallel process |
| Affected by flags | None | |
Description
The j function pushes on the stack a symbolic representation of the imaginary unit $j=\sqrt{-1}$.
j provides a convenient alias of i for those applications where the latter might be confused with the i variable (usually electronic engineering).
Application of the →NUM operator returns the complex number (0,1) in rectangular format.
Compatibility
j is specific to newRPL and has no direct equivalent in userRPL.
Usage
Input
« 6 SETPREC j DUP →NUM »
Output
4:
3:
2: j
1: (0,1)
…………………………………………………………………………………………………………