Numerical Integration Methods
With this tutorial we analyse various implementations of numerical integration mechanisms.
Tasks
- L1: Create a data structure, e.g., an array, which stores simple x coordinates and another double value.
- L1: Assign the value of the function
to all array elements. This function is used as integrand. - L2: Approximate the integral by using the



Hints
- Trapezoidal rule:

More Information



rectangular rule:
middle point rule:
trapezoid rule:
simpson rule:
- Trapezoidal rule: