Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 771 Bytes

File metadata and controls

32 lines (20 loc) · 771 Bytes

@stdlib/math/base/special/simpson

Compute numerical integration using Simpson's rule.

Usage

simpson( f, a, b, n )

Example

simpson(x => x*x, 0, 1, 100) // ~0.3333