manual:chapter6:constants:cmd_iconst

Synopsis


Push the symbolic constant 'i' on the stack

Stack Diagram


Input Stack Output Stack
Ci
Level 1 / Argument 1 Level 1

Legend

Keyword type Analytic Function
Parallel list processing capabilities Group 1 Commands that cannot parallel process
Affected by flags None

Description


The i function pushes on the stack a symbolic representation of the imaginary unit $i=\sqrt{-1}$.

Application of the →NUM operator returns the complex number (0,1) in rectangular format.

Compatibility


i is fully equivalent to its userRPL counterpart.

Usage


Input

« 6 SETPREC
  i DUP
  →NUM
»


Output

4:                                      
3:                                      
2:                                     i
1:                                 (0,1)
…………………………………………………………………………………………………………
                                        

Related Commands


Constants 4

Command Short Description
π
і
е
ј
  • manual/chapter6/constants/cmd_iconst.txt
  • Last modified: 2021/09/19 15:08
  • by jojo1973