Derivative as a function (derivative)
The derivative operator: derivative(n) is of order n, derivative(0, 1) is the partial in the second argument.
How to write it
derivative(n, ...)
The derivative f' of a function f is construct(derivative(1), f).
- n
- The order, or the order in each argument. Takes a whole number.
Examples
construct(derivative(1), sin)In the solver,
Open in the solverconstruct(derivative(1), sin)givesfunction(cos(slot(1))).
Functions its examples use
- construct
Apply a head that is itself computed to arguments, as in f'(0) or (x => body)(a).
Related functions
- diff
Derivative of an expression with respect to one or more variables.
- curl
Curl of a vector field in three variables.
- div
Divergence of a vector field.
- certified_value
An enclosure of a definite integral or a closed constant, with radius at most 10^-digits.
- grad
Gradient of an expression: the list of its partial derivatives.
- total_diff
Total derivative of an expression with respect to a variable.