Texas Instruments TINSPIRE Reference Guide - Page 142

Indirection, Post operators, Exponentiation, Negation, Constraint

Page 142 highlights

Indirection The indirection operator (#) converts a string to a variable or function name. For example, #("x"&"y"&"z") creates the variable name xyz. Indirection also allows the creation and modification of variables from inside a program. For example, if 10&r and "r"&s1, then #s1=10. Post operators Post operators are operators that come directly after an argument, such as 5!, 25%, or 60¡15' 45". Arguments followed by a post operator are evaluated at the fourth priority level. For example, in the expression 4^3!, 3! is evaluated first. The result, 6, then becomes the exponent of 4 to yield 4096. Exponentiation Exponentiation (^) and element-by-element exponentiation (.^) are evaluated from right to left. For example, the expression 2^3^2 is evaluated the same as 2^(3^2) to produce 512. This is different from (2^3)^2, which is 64. Negation To enter a negative number, press v followed by the number. Post operations and exponentiation are performed before negation. For example, the result of Lx2 is a negative number, and L92 = L81. Use parentheses to square a negative number such as (L9)2 to produce 81. Constraint (|) The argument following the "with" (|) operator provides a set of constraints that affect the evaluation of the argument preceding the "with" operator. 136 TI-Nspire™ Reference Guide

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164

136
TI-Nspire™ Reference Guide
Indirection
The indirection operator (#) converts a string to a variable or function name. For example,
#(“x”&”y”&”z”) creates the variable name xyz. Indirection also allows the creation and
modification of variables from inside a program. For example, if 10
&
r and “r”
&
s1, then #s1=10.
Post operators
Post operators are operators that come directly after an argument, such as 5!, 25%, or 60
¡
15'
45". Arguments followed by a post operator are evaluated at the fourth priority level. For
example, in the expression 4^3!, 3! is evaluated first. The result, 6, then becomes the exponent
of 4 to yield 4096.
Exponentiation
Exponentiation (^) and element-by-element exponentiation (.^) are evaluated from right to
left. For example, the expression 2^3^2 is evaluated the same as 2^(3^2) to produce 512. This
is different from (2^3)^2, which is 64.
Negation
To enter a negative number, press
v
followed by the number. Post operations and
exponentiation are performed before negation. For example, the result of
L
x
2
is a negative
number, and
L
9
2
=
L
81. Use parentheses to square a negative number such as (
L
9)
2
to produce
81.
Constraint (|)
The argument following the “with” (|) operator provides a set of constraints that affect the
evaluation of the argument preceding the “with” operator.