Hands-on: Numerical integration
We continue studying vectorized operations with numerical integration.
Source code for this exercise is located in
A simple method for evaluating integrals numerically is by the middle Riemann sum
Calculate the integral in the interval [0,π/2] and investigate how much the
Riemann sum of sin differs from 1.0. Avoid
for loops. Investigate also
how the results changes with the choice of Δx.
© CSC - IT Center for Science Ltd.