Algosim documentation: differentiate

differentiate

Performs numerical differentiation at a point.

Syntax

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

See also