derivative
Curve derivative function.
Syntax
derivative(indep_vec, dep_vec)
Argument
- indep_vec
- The vector expression used as the basis for differentiation.
- dep_vec
- The vector expression to be differentiated.
Example
Templex Expression | Result |
---|---|
{derivative( {0, 1, 2, 3},{0, 0.5, 3.5,10.5}
)} |
0.5, 1.75, 5, 7 |
Curve Math Vectors | Result |
---|---|
x = c1.x
|
Given c1, a curve is created that is the derivative of c1. |
Comments
The resultant vector is the derivative of the curve formed by indep_vec and dep_vec, and has the same number of elements as the arguments. indep_vec and dep_vec must have the same number of points. The differentiation is performed using second-order central-difference approximation.