Texas Instruments TINSPIRE Reference Guide - Page 141

EOS™ (Equation Operating System) hierarchy, Order of evaluation, Parentheses, brackets, and braces

Page 141 highlights

EOS™ (Equation Operating System) hierarchy This section describes the Equation Operating System (EOS™) that is used by the TI-Nspire™ math and science learning technology. Numbers, variables, and functions are entered in a simple, straightforward sequence. EOS™ software evaluates expressions and equations using parenthetical grouping and according to the priorities described below. Order of evaluation Level 1 2 3 4 Operator Parentheses ( ), brackets [ ], braces { } Indirection (#) Function calls Post operators: degrees-minutes-seconds (¡,',"), factorial (!), percentage (%), radian Q( RS), subscript ([ ]), transpose (T) 5 Exponentiation, power operator (^) 6 L Negation ( ) 7 String concatenation (&) 8 Multiplication (†), division (/) 9 Addition (+), subtraction (-) 10 Equality relations: equal (=), not equal (ƒ or /=), less than (=) 11 Logical not 12 Logical and 13 Logical or, exclusive logical xor 14 Constraint "with" operator (|) 15 Store (&) Parentheses, brackets, and braces All calculations inside a pair of parentheses, brackets, or braces are evaluated first. For example, in the expression 4(1+2), EOS™ software first evaluates the portion of the expression inside the parentheses, 1+2, and then multiplies the result, 3, by 4. The number of opening and closing parentheses, brackets, and braces must be the same within an expression or equation. If not, an error message is displayed that indicates the missing element. For example, (1+2)/(3+4 will display the error message "Missing )." Note: Because the TI-Nspire™ software allows you to define your own functions, a variable name followed by an expression in parentheses is considered a "function call" instead of implied multiplication. For example a(b+c) is the function a evaluated by b+c. To multiply the expression b+c by the variable a, use explicit multiplication: a∗(b+c). TI-Nspire™ Reference Guide 135

  • 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

TI-Nspire™ Reference Guide
135
EOS™ (Equation Operating System) hierarchy
This section describes the Equation Operating System (EOS™) that is used by the TI-Nspire™
math and science learning technology. Numbers, variables, and functions are entered in a
simple, straightforward sequence. EOS™ software evaluates expressions and equations using
parenthetical grouping and according to the priorities described below.
Order of evaluation
Parentheses, brackets, and braces
All calculations inside a pair of parentheses, brackets, or braces are evaluated first. For example,
in the expression 4(1+2), EOS™ software first evaluates the portion of the expression inside the
parentheses, 1+2, and then multiplies the result, 3, by 4.
The number of opening and closing parentheses, brackets, and braces must be the same within
an expression or equation. If not, an error message is displayed that indicates the missing
element. For example, (1+2)/(3+4 will display the error message “Missing ).”
Note:
Because the TI-Nspire™ software allows you to define your own functions, a variable
name followed by an expression in parentheses is considered a “function call” instead of
implied multiplication. For example
a
(b+c) is the function
a
evaluated by b+c. To multiply the
expression b+c by the variable
a
, use explicit multiplication:
a
(b+c).
Level
Operator
1
Parentheses ( ), brackets [ ], braces { }
2
Indirection (#)
3
Function calls
4
Post operators: degrees-minutes-seconds (
¡
,',"), factorial (!), percentage (%), radian
(
R
), subscript ([ ]), transpose (
T
)
5
Exponentiation, power operator (^)
6
Negation (
L
)
7
String concatenation (&)
8
Multiplication (
), division (/)
9
Addition (+), subtraction (-)
10
Equality relations: equal (=), not equal (
ƒ
or /=),
less than (<), less than or equal (
{
or <=), greater than (>), greater than or equal
(
|
or >=)
11
Logical
not
12
Logical
and
13
Logical
or
, exclusive logical
xor
14
Constraint “with” operator (|)
15
Store (
&
)