An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# find-extrema [![Build Status](https://travis-ci.com/dbkaplun/find-extrema.svg?branch=master)](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())
}));
```