Iffn(); Imag - Texas Instruments TI-Nspire Reference Manual

Reference guide
Hide thumbs Also See for TI-Nspire:
Table of Contents

Advertisement

If
BooleanExpr1
If
Then
Block1
BooleanExpr2
ElseIf
Then
Block2
©
BooleanExprN
ElseIf
Then
BlockN
EndIf
Allows for branching. If BooleanExpr1 evaluates to true, executes
Block1. If BooleanExpr1 evaluates to false, evaluates
BooleanExpr2, and so on.

ifFn()

BooleanExpr
Value_If_true
ifFn(
,
Value_If_unknown
[,
]])
Evaluates the boolean expression BooleanExpr (or each element
from BooleanExpr ) and produces a result based on the following
rules:
BooleanExpr can test a single value, a list, or a matrix.
If an element of BooleanExpr evaluates to true, returns the
corresponding element from Value_If_true.
If an element of BooleanExpr evaluates to false, returns the
corresponding element from Value_If_false. If you omit
Value_If_false, returns undef.
If an element of BooleanExpr is neither true nor false, returns
the corresponding element Value_If_unknown. If you omit
Value_If_unknown, returns undef.
If the second, third, or fourth argument of the ifFn() function is a
single expression, the Boolean test is applied to every position in
BooleanExpr.
If the simplified BooleanExpr statement involves a list or
Note:
matrix, all other list or matrix arguments must have the same
dimension(s), and the result will have the same dimension(s).

imag()

Value1
value
imag(
)
Returns the imaginary part of the argument.
List1
list
imag(
)
Returns a list of the imaginary parts of the elements.
46
TI-Nspire™ Reference Guide
Value_If_false
[,
expression, list, or matrix
Test value of
is less than 2.5, so its corresponding
1
Value_If_True element of
5
Test value of
is less than 2.5, so its corresponding
2
Value_If_True element of
6
Test value of
is not less than 2.5, so its corresponding
3
Value_If_False element of
10
Value_If_true is a single value and corresponds to any selected
position.
Value_If_false is not specified. Undef is used.
One element selected from Value_If_true. One element
selected from Value_If_unknown.
Catalog >
Catalog >
is copied to the result list.
is copied to the result list.
is copied to the result list.
Catalog >

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents