|
We're glad you came by, but you might find what you're looking for elsewhere. TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it. Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope. |
The imag() command returns the imaginary component of a complex number, opposed to real(), which returns the real component.
Returns the imaginary component of a complex number.
imag(value)
Menu Location
The command catalog.
This command works on all calculators.
1 byte
This command takes a single complex number as an input, and returns the second (imaginary) component.
(Please note that in this example, 𝑖 denotes the imaginary unit, not the letter i.)
:(1.2,3.4𝑖)→z
:imag(z)
3.4
:𝜋𝑖→c
:imag(c)
𝜋Advanced Uses
Storing two numbers as one variable
:2→a
:7→b
:(a+b𝑖)→z
:real(z)
2
:imag(z)
7