keisoku

Gauss-Kronrod Quadrature (G7-K15) Calculator

Enter an integrand f(x) and an interval [a, b] to evaluate the definite integral with the 15-point Kronrod rule and estimate the error from the 7-point Gauss value.

Input

Enter the integrand f(x) and the interval [a, b] to evaluate the definite integral with Gauss-Kronrod (G7-K15) quadrature and estimate the error from the Gauss value.

e.g. exp(-x^2), sin(x)/x, x^2 + 1. See the method section for supported functions, constants and operators.

Result

Kronrod approximation K15 ∫ f(x) dx

0.7468241328

Interval [0, 1]

Gauss value G7

0.7468241328

Estimated error

1.981138e-15

Nodes, weights and values

Shows the nodes x_i (mapped to [a, b]), Kronrod weights w_i, function values f(x_i) and the node type.

#Node x_iWeight w_if(x_i)Type
10.004272310.011467660.99998175Kronrod
20.025446040.031546050.99935271Gauss
30.067567790.052395010.995445Kronrod
40.129234410.070326630.98343717Gauss
50.206956380.084502360.95807334Kronrod
60.297077420.095175290.91552739Gauss
70.396107520.102216470.85478853Kronrod
80.50.104741070.77880078Gauss
90.603892480.102216470.69441458Kronrod
100.702922580.095175290.61011968Gauss
110.793043620.084502360.53316828Kronrod
120.870765590.070326630.46849366Gauss
130.932432210.052395010.41919049Kronrod
140.974553960.031546050.38683563Gauss
150.995727690.011467660.37102953Kronrod

How it works

  • The 15-point Kronrod rule (K15) is the main approximation; the error is estimated from the difference with the 7-point Gauss rule (G7), whose nodes are a subset of the Kronrod nodes.
  • Standard-interval nodes and weights are mapped to [a, b] via the linear transform x = (b − a)/2 t + (a + b)/2.
  • The estimated error comes from the absolute difference between K15 and G7, sharpened in the QUADPACK style. Smaller values indicate higher confidence.
  • The integrand is evaluated with a recursive-descent parser supporting functions such as sin, cos, exp, log and sqrt, the constants pi and e, the four basic operations, the power operator ^ and implicit multiplication (e.g. 2x).
  • If a singularity lies inside the interval and a node value is not finite, the calculation fails; split the interval and try again.

Reviews

Tell us what you think of this calculator.

Write a review

  1. Home
  2. Gauss-Kronrod Quadrature (G7-K15) Calculator