Clenshaw–Curtis quadrature with n intervals (Chebyshev nodes)
Syntax
clenshawCurtis(f, a, b, n)
Typesfunction, number
dblquad
Double integral, scipy argument orderf(y, x); gy/hy are constants or functions of x; returns { value, error, converged }, where converged is the outer flag and every inner flag
Syntax
dblquad(f, ax, bx, gy, hy[, opts])
Typesfunction, number
gaussHermiteIntegrate
∫ e^{−x²} f(x) dx over ℝ and ∫₀^∞ e^{−x} f(x) dx with n-point Gauss rules
Syntax
gaussHermiteIntegrate(f, n)
Typesfunction, number
gaussLaguerreIntegrate
∫ e^{−x²} f(x) dx over ℝ and ∫₀^∞ e^{−x} f(x) dx with n-point Gauss rules
Syntax
gaussLaguerreIntegrate(f, n)
Typesfunction, number
gaussQuad
Gauss–Legendre quadrature
Syntax
gaussQuad(f, a, b[, n])
monteCarloIntegrate
Monte-Carlo / quasi-Monte-Carlo integration over an axis-aligned box (opts.method: 'uniform'|'halton'|'sobol')
Syntax
monteCarloIntegrate(f, bounds[, opts])
nintegrate
Adaptive numerical integration; throws RangeError when the integral does not converge
Syntax
nintegrate(f, a, b[, { tol, maxDepth }])
parallelGaussQuad
Async gaussQuad with a worker fan-out
Syntax
parallelGaussQuad(f, a, b[, n, order, { workerCount }])
parallelRomberg
Async romberg with a worker fan-out
Syntax
parallelRomberg(f, a, b[, tol, { workerCount }])
quad
Adaptive Gauss–Kronrod (G7-K15) quadrature
Syntax
quad(f, a, b[, opts])
romberg
Romberg integration
Syntax
romberg(f, a, b[, tol])
rootsChebyshevT
Gauss nodes and weights { nodes, weights } for weights e^{−x²} (physicists' Hermite), x^α·e^{−x} (Laguerre, α default 0), Chebyshev first / second kind (closed form) and Jacobi (1−x)^α(1+x)^β
Syntax
rootsChebyshevT(n)
Typesnumber
rootsChebyshevU
Gauss nodes and weights { nodes, weights } for weights e^{−x²} (physicists' Hermite), x^α·e^{−x} (Laguerre, α default 0), Chebyshev first / second kind (closed form) and Jacobi (1−x)^α(1+x)^β
Syntax
rootsChebyshevU(n)
Typesnumber
rootsHermite
Gauss nodes and weights { nodes, weights } for weights e^{−x²} (physicists' Hermite), x^α·e^{−x} (Laguerre, α default 0), Chebyshev first / second kind (closed form) and Jacobi (1−x)^α(1+x)^β
Syntax
rootsHermite(n)
Typesnumber
rootsJacobi
Gauss nodes and weights { nodes, weights } for weights e^{−x²} (physicists' Hermite), x^α·e^{−x} (Laguerre, α default 0), Chebyshev first / second kind (closed form) and Jacobi (1−x)^α(1+x)^β
Syntax
rootsJacobi(n, alpha, beta)
Typesnumber
rootsLaguerre
Gauss nodes and weights { nodes, weights } for weights e^{−x²} (physicists' Hermite), x^α·e^{−x} (Laguerre, α default 0), Chebyshev first / second kind (closed form) and Jacobi (1−x)^α(1+x)^β
Syntax
rootsLaguerre(n[, alpha])
Typesnumber
rootsLegendre
Gauss–Legendre quadrature nodes/weights on [-1, 1]
Syntax
rootsLegendre(n)
simpson
Simpson's 1/3 rule (n even)
Syntax
simpson(f, a, b[, n])
simpsonF64
Listed in the export index; see the source for details.
Syntax
simpsonF64(…)
simpsons
Simpson's rule variant (numeric layer)
Syntax
simpsons(f, a, b[, n])
tanhSinh
Double-exponential (tanh-sinh) quadrature returning { value, error, converged } (converged is true when the change between two levels is within tol, false when no node gives a finite value); never evaluates at the endpoints, so endpoint singularities are fine (defaults tol 1e-12, maxLevel 10). Inverse-square-root endpoint singularities (e.g. 1/√(1−x²)) carry an endpoint-mass error of about 2e-8; finite limits only
Syntax
tanhSinh(f, a, b[, { tol, maxLevel }])
Typesfunction, number
tplquad
Triple integral, f(z, y, x); gy/hy depend on x, qz/rz on (x, y); returns { value, error, converged }, where converged is the outer flag and every inner flag
Syntax
tplquad(f, ax, bx, gy, hy, qz, rz[, opts])
Typesfunction, number
trapz
Trapezoidal rule on sampled data
Syntax
trapz(y[, x])
trapzF64
Listed in the export index; see the source for details.