810
Appendix A: System Routines — Math
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_nth_derivative
Declaration:
void
push_nth_derivative
(EStackIndex
i
, EStackIndex
j
, EStackIndex
n
)
Category(ies):
Math
Description:
If
n
is zero, pushes expression
i
. Pushes the (perhaps iterated)
antiderivative of
i
with respect to
j
if
n
is negative. Otherwise pushes the
n
th
derivative of expression
i
with respect to expression
j
. If invoked via
push_internal_simplify
,
j
and
i
are simplified to deepest variable.
However, if the deepest variable value of
j
has a such-that or
§
value,
that value is substituted for the deepest variable value after computing the
symbolic derivative.
For example,
d
(x^2, x,
L
1) | x = 3 -> 9/2.
Inputs:
i
— Indexes the top tag of an internally-simplified algebraic expression,
algebraic comparison, or aggregate thereof.
j
— Indexes the top tag of a variable.
n
— Indexes the top tag of a whole number or an expression that can
have only whole number values, such as @n7.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_1st_derivative
Example:
push_quantum_as_nonnegative_int (3u);
exponent = top_estack;
push_quantum (8u); /* Push variable x */
replace_top2_with_pow (exponent);
i = top_estack; /* i -> x^3 */
push_quantum_as_nonnegative_int (2u);
n = top_estack;
push_quantum (8u); /* Push variable x */
push_nth_derivative (i, top_estack, n); /* Pushes 3 * x^2 */