Skip to content

Numerically compute the extrema of a given (analytic) function: minima, maxima, and points of inflection

License

Notifications You must be signed in to change notification settings

dbkaplun/find-extrema

Repository files navigation

find-extrema Build Status

Numerically compute the extrema of a given (analytic) function: minima, maxima, and points of inflection

npm install find-extrema
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())
}));

About

Numerically compute the extrema of a given (analytic) function: minima, maxima, and points of inflection

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published