Simpson’s rule · integral of sin(x)

Calculate simpson’s rule · integral of sin(x) and see the working behind your result.

Inputs

Use the units shown
RESULT
—

Enter your values and select Calculate.

Formula & explanation
S = h/3 [f₀+fₙ+4Σf_odd+2Σf_even], f(x)=sin(x)

Variables & units

Lower bound · radians
Numeric value · minimum -100, maximum 100
Upper bound · radians
Numeric value · minimum -100, maximum 100
Even number of intervals
Numeric value · minimum 2, maximum 100

Worked example

On [0,π] with 12 intervals, the approximation is 2.000052624341.

Assumptions

Numerical approximation for sin(x) only, with angles in radians. Displayed rows are rounded; computation retains unrounded values.

Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.

Practice with an example

Use the default input values to find the answer. The reset icon restores those values.

Calculated on your device. Your latest 100 calculations stay in this browser.