gauss-numeric-integration

1.0.2 • Public • Published

Gauss-Numeric-Integration

This is a package that calculates the numeric integral of a regular funcion using Gauss Quadrature.

import GaussIntegration from "gauss-numeric-integration";

//Example code:

// GaussIntegration(f, n, a, b)
// f is the function to be integrated of single variable
// n is the number of Gauss points
// a is the lower limit of integration
// b is the upper limit of integration

function f(x) {
  return x;
}

console.log(GaussIntegration(f, 16, 0, 1)); // should return 0.4999999999999988

Package Sidebar

Install

npm i gauss-numeric-integration

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

583 kB

Total Files

6

Last publish

Collaborators

  • rasjr1305