Calculator User Manual

306
Chapter 20: A to Z Function and Instruction Reference
20ATOZ.DOC TI-86, Chap 20, US English Bob Fedorisko Revised: 02/13/01 2:42 PM Printed: 02/13/01 3:05 PM Page 306 of 118
:If condition
:Then
:commands-if-true
:Else
:commands-if-false
:End
:commands
If
condition
is true (nonzero), executes
commands-if-
true
from
Then
to
Else
and then continues with the next
command following
End
.
If
condition
is false (zero), executes
commands-if-false
from
Else
to
End
and then continues with the next
command following
End
.
Program segment:
©
:If x<0
:Then
: Disp "x is negative"
:Else
: Disp "x is positive or zero"
:End
©
imag
CPLX menu
imag (complexNumber)
Returns the imaginary (nonreal) part of
complexNumber
. The imaginary part of a real number is
always 0.
imag (real,imaginary)
returns
imaginary
.
imag (magnitude
±
angle)
returns
magnitude
sin
angle
.
imag (3,4)
b
4
imag (3
±
4)
b
L
2.27040748592
imag complexList
imag complexMatrix
imag complexVector
Returns a list, matrix, or vector in which each element
is the imaginary part of the original argument.
imag {
L
2,(3,4),(3
±
4)}
b
{0 4
L
2.27040748592}