1.0.2 • Published 1 year ago

gauss-numeric-integration v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago