Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chipbell4/simpsons-rule
A helpful function in node for numerical integration with simpson's rule.
https://github.com/chipbell4/simpsons-rule
Last synced: 9 days ago
JSON representation
A helpful function in node for numerical integration with simpson's rule.
- Host: GitHub
- URL: https://github.com/chipbell4/simpsons-rule
- Owner: chipbell4
- Created: 2015-02-02T01:49:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-02T01:51:10.000Z (almost 10 years ago)
- Last Synced: 2024-04-14T18:27:16.305Z (7 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simpson's Rule
A handy function for numerically integrating a function via simpson's rule. Here's an example:
`
var simpsons = require('simpsons-rule');var F = function(x) {
return 2 * x;
};var result = simpsons(F, 0, 1); // integrate from 0 to 1. Should be close to 0.5
// Or provide a step count
result = simpsons(F, 0, 1, 1000);
`