∑ Mathematics LabNumerical Integration · v1.5 Beta

MATHEMATICS LAB

Numerical Integration

Approximate a definite integral and see how numerical methods estimate its value and reduce the error.

Use * for multiplication and ^ for powers. Functions: sin, cos, tan, exp, ln, log, sqrt, abs, asin, acos, atan, sinh, cosh, tanh. Constants: pi, e.

Simpson’s 1/3 rule: n must be even. Simpson’s 3/8 rule: n must be divisible by 3.

Examples: x^2 in [0,2] · exp(-x^2) in [0,1] · sin(x) in [0,π]