manual:chapter6:constants:cmd_iconst

This is an old revision of the document!



Synopsis


Push the symbolic constant 'i' on the stack

Stack Diagram


Input Stack Output Stack
i
Level 1 Level 1

Legend

Type Analytic Function
Parallel list processing Group 1
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


This command is fully compatible with userRPL.

Usage


The following program

« 6 SETPREC
  i DUP
  →NUM
»

will result in

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

Related Commands


Constants 4

Command Short Description
π
і
е
ј
  • manual/chapter6/constants/cmd_iconst.1571574171.txt.gz
  • Last modified: 2019/10/20 05:22
  • by jojo1973