find-extrema
1.0.0 • Public • Published find-extrema
Numerically compute the extrema of a given (analytic) function: minima, maxima, and points of inflection
import { findExtremum, rootsNewton } from 'find-extrema';
console.log('minimum of (x - 1)^2:', findExtremum(x => (x - 1) ** 2, 'minimum', {
findRoot: f => rootsNewton(f, Math.random())
}));
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.0
1
Version History
- VersionDownloads (Last 7 Days)
- 1.0.0
1
Package Sidebar
Install
Weekly Downloads