This is an old revision of the document!
j
Synopsis
Push the symbolic constant 'j' on the stack
Stack Diagram
Input Stack | Output Stack | |
---|---|---|
→ | j | |
Level 1 | → | Level 1 |
Type | Analytic Function | |
Parallel list processing | Group 1 | |
Affected by flags | None |
Description
The j
function pushes on the stack a symbolic representation of the imaginary unit $j=\sqrt{-1}$.
j
is provided as convenient alias of i
for those applications where the latter might be confused with the i
variable (usually Electronics).
Application of the →NUM
operator returns the complex number (0, 1)
in rectangular format.
Compatibility
This command is new in newRPL and does not exist in userRPL.
Usage
The following program
« 6 SETPREC j DUP →NUM »
will result in
2: j 1: (0,1) ……………………………………………………………………………………