differentiate
Performs numerical differentiation at a point.
Syntax
-
differentiate(expr, var, x[, ε])-
expris an expression in one variablevar -
varis the variable inexpr -
xis the point at which the derivative is computed -
εis the radius aboutxused for numerical differentiation
-
Description
differentiate computes a symmetric difference quotient for a real function of a real variable at a particular point in its domain:
differentiate(f(t), t, x, ε) = [f(t + ε) − f(t − ε)] / (2⋅ε).
If omitted, ε is set to 10^−6.
Examples
differentiate(x^2, x, 1)
2
differentiate(e^x, x, 1)
2.71828182846
∫(differentiate(x^2, x, t), t, 0, 2)
4