Numerical integration

Comparison between the trapezoidal and Simpson's rules. Enter a function, and the minimum and maximum values for the x and y variables. You can also choose the number of intervals (always even).