Function: x*x (from 0 to 1)
Result: 0.333333 (approximately ⅓)
Function: x*y (x: 0 to 1, y: 0 to 1)
Result: 0.250000 (approximately ¼)
Function: Math.sin(x) (from 0 to Math.PI)
Result: 2.000000
This calculator uses the trapezoidal rule for numerical integration. It approximates the definite integral by calculating the area under a curve using trapezoids.
For double and triple integrals, we use multiple applications of the trapezoidal rule across each dimension.