CalcWorldHub
Free online calculator · no signup

Tensor Gauss rectangle quadrature calculator

Estimate an area integral on a rectangle from the four nodes of a two-by-two Gauss–Legendre tensor rule.

4,000 tools
Tensor Gauss rectangle quadrature calculator — Rectangle width, Rectangle height, Four Gauss node values and calculation method
Tensor Gauss rectangle quadrature calculator: inputs and calculation method.

How to use this calculator

Estimate an area integral on a rectangle from the four nodes of a two-by-two Gauss–Legendre tensor rule.

  1. Enter Rectangle width, Rectangle height, Four Gauss node values. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Tensor Gauss rectangle quadrature explained

Rectangle integral estimate15integrand × area
Rectangle integral estimate: 15 integrand × area in the worked scenario.

A numerical walkthrough

Rectangle width = 2; Rectangle height = 3; Four Gauss node values = [1, 2, 3, 4].

  • Rectangle integral estimate: 15 integrand × area
  • Quadrature mean value: 2.5 integrand units
  • Sample range: 3 integrand units

A two-by-three rectangle with Gauss values 1,2,3,4 yields integral 15 and quadrature mean 2.5.

The model behind the numbers

∫rectangle f dA≈WHΣfᵢⱼ/4 at normalized coordinates (±1/√3,±1/√3).

Map each normalized coordinate affinely into the physical rectangle before sampling. These are interior Gauss nodes; corner samples use a different rule.

What to enter

width — Rectangle width
Positive x extent.
height — Rectangle height
Positive y extent.
samples — Four Gauss node values
Values at all combinations of normalized x,y=plus or minus 1/sqrt(3). Use comma-separated values in the stated order.

Interpreting the result

Axis-aligned or affinely parameterized rectangles with a constant Jacobian only. The rule is exact through cubic degree in each separate coordinate, not for arbitrary functions.

Reading the outputs

Integral combines area with integrand units. Mean and sample range remain on the integrand scale.

Frequently asked questions

Can I use corner values?

No. They are not the Gauss node locations required by this formula.

Is sample range an error estimate?

No. It only summarizes variation among four samples.

Do I need the rectangle center?

Only to locate the nodes when sampling; width and height suffice for the final weighted sum.

How do I use the Tensor Gauss rectangle quadrature calculator?

Enter Rectangle width, Rectangle height, Four Gauss node values. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Tensor Gauss rectangle quadrature?

Rectangle width = 2; Rectangle height = 3; Four Gauss node values = [1, 2, 3, 4]. Rectangle integral estimate: 15 integrand × area Quadrature mean value: 2.5 integrand units Sample range: 3 integrand units A two-by-three rectangle with Gauss values 1,2,3,4 yields integral 15 and quadrature mean 2.5.