Texas Instruments TINSPIRE Reference Guide - Page 73

nDerivative, Catalog &gt, newList, newMat, nfMax, Expr1, Var=Value, Order, value, numElements, numRows - nspire graphic calculator

Page 73 highlights

nDerivative( ) nDerivative(Expr1,Var=Value[,Order]) ⇒ value nDerivative(Expr1,Var[,Order]) | Var=Value ⇒ value Returns the numerical derivative calculated using auto differentiation methods. When Value is specified, it overrides any prior variable assignment or any current "with" substitution for the variable. If the variable Var does not contain a numeric value, you must provide Value. Order of the derivative must be 1 or 2. Note: The nDerivative() algorithm has a limitiation: it works recursively through the unsimplified expression, computing the numeric value of the first derivative (and second, if applicable) and the evaluation of each subexpression, which may lead to an unexpected result. Consider the example on the right. The first derivative of x·(x^2+x)^(1/3) at x=0 is equal to 0. However, because the first derivative of the subexpression (x^2+x)^(1/3) is undefined at x=0, and this value is used to calculate the derivative of the total expression, nDerivative() reports the result as undefined and displays a warning message. If you encounter this limitation, verify the solution graphically. You can also try using centralDiff(). newList( ) newList(numElements) ⇒ list Returns a list with a dimension of numElements. Each element is zero. newMat( ) newMat(numRows, numColumns) ⇒ matrix Returns a matrix of zeros with the dimension numRows by numColumns. nfMax( ) nfMax(Expr, Var) ⇒ value nfMax(Expr, Var, lowBound) ⇒ value nfMax(Expr, Var, lowBound, upBound) ⇒ value nfMax(Expr, Var) | lowBound Catalog > Catalog > TI-Nspire™ Reference Guide 67

  • 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
67
nDerivative()
Catalog >
nDerivative(
Expr1
,
Var=Value
[
,
Order
]
)
value
nDerivative(
Expr1
,
Var
[
,
Order
]
)
|
Var=Value
value
Returns the numerical derivative calculated using auto differentiation
methods.
When
Value
is specified, it overrides any prior variable assignment or
any current “with” substitution for the variable.
If the variable
Var
does not contain a numeric value, you must
provide
Value
.
Order
of the derivative must be
1
or
2
.
Note:
The
nDerivative()
algorithm has a limitiation: it works
recursively through the unsimplified expression, computing the
numeric value of the first derivative (and second, if applicable) and
the evaluation of each subexpression, which may lead to an
unexpected result.
Consider the example on the right. The first derivative of
x·(x^2+x)^(1/3) at x=0 is equal to 0. However, because the first
derivative of the subexpression (x^2+x)^(1/3) is undefined at x=0,
and this value is used to calculate the derivative of the total
expression,
nDerivative()
reports the result as undefined and
displays a warning message.
If you encounter this limitation, verify the solution graphically. You
can also try using
centralDiff()
.
newList()
Catalog >
newList(
numElements
)
list
Returns a list with a dimension of
numElements
. Each element is
zero.
newMat()
Catalog >
newMat(
numRows
,
numColumns
)
matrix
Returns a matrix of zeros with the dimension
numRows
by
numColumns
.
nfMax()
Catalog >
nfMax(
Expr
,
Var
)
value
nfMax(
Expr
,
Var
,
lowBound
)
value
nfMax(
Expr
,
Var
,
lowBound
,
upBound
)
value
nfMax(
Expr, Var
) |
lowBound
<
Var
<
upBound
value
Returns a candidate numerical value of variable
Var
where the local
maximum of
Expr
occurs.
If you supply
lowBound
and
upBound
, the function looks between
those values for the local maximum.