Task 09

Task 09ΒΆ

deadline: 02/05/2021 23:59 CET

[1.0 points]: Estimate the following definite integral,

\[ \int_0^1 \frac{x^4 (1 - x)^4}{1 + x^2} dx, \]

using the midpoint rule with a partition of size \( N = 10 \). Print the value and the absolute error of the approximation (the exact value of the integral is \( 22 \, / \, 7 - \pi \)). Note that this integral is used as a proof that the Diophantine approximation of \( \pi \) is greater than \( \pi \).

# add your code here