https://github.com/dbkaplun/find-extrema
Numerically compute the extrema of a given (analytic) function: minima, maxima, and points of inflection
https://github.com/dbkaplun/find-extrema
analysis extrema extremum inflection maxima maximum minima minimum numerical points
Last synced: about 1 month ago
JSON representation
Numerically compute the extrema of a given (analytic) function: minima, maxima, and points of inflection
- Host: GitHub
- URL: https://github.com/dbkaplun/find-extrema
- Owner: dbkaplun
- License: mit
- Created: 2018-06-22T15:56:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T14:35:48.000Z (over 7 years ago)
- Last Synced: 2025-08-26T07:10:53.602Z (about 2 months ago)
- Topics: analysis, extrema, extremum, inflection, maxima, maximum, minima, minimum, numerical, points
- Language: TypeScript
- Homepage:
- Size: 72.3 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# find-extrema [](https://travis-ci.com/dbkaplun/find-extrema)
Numerically compute the extrema of a given (analytic) function: minima, maxima, and points of inflection```sh
npm install find-extrema
``````js
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())
}));
```