Docs/Numerical Integration (QUADPACK)/quad.quadFixedFns.quad_fixed
Back to Numerical Integration (QUADPACK)

quad.quadFixedFns.quad_fixed

Evaluate the integral of f(x) over [a, b] using a fixed Gauss-Kronrod rule.

Syntax

quad.quadFixedFns.quad_fixed(f, a, b, rule)

Description

Evaluate the integral of f(x) over [a, b] using a fixed Gauss-Kronrod rule. This function applies a single Gauss-Kronrod quadrature rule without any adaptive subdivision. It's useful for: - Building custom integration strategies - Quick estimates when you know the function is smooth - Performance-critical code where overhead must be minimized Available rules: - 15-point: 7 Gauss + 8 Kronrod points (fastest) - 21-point: 10 Gauss + 11 Kronrod points - 31-point: 15 Gauss + 16 Kronrod points - 41-point: 20 Gauss + 21 Kronrod points - 51-point: 25 Gauss + 26 Kronrod points - 61-point: 30 Gauss + 31 Kronrod points (most accurate)

Parameters

NameDescription
f- The integrand function f(x)
a- Lower limit of integration
b- Upper limit of integration
rule- Gauss-Kronrod rule order (15, 21, 31, 41, 51, or 61)

Returns

Promise<QuadFixedResult>