@arki/math/differentiate
For @arki/[email protected] · source docs/modules/differentiate.md
Back to the README.
@arki/math/differentiate
derivative (Ridders) and limit (Richardson) are numerical estimates with an error estimate, not proofs. A method that misses its tolerance throws an ExtrapolationConvergenceError holding its best estimate (.best).
import { derivative, limit } from '@arki/math/differentiate';
derivative(Math.sin, 0).value; // 1
limit(x => Math.sin(x) / x, 0).value; // 1