https://d2l.ai/chapter_appendix-mathematics-for-deep-learning/integral-calculus.html
Hi.
The truth value for integrate(x / (1 + x**2), 0, 2)
is np.log(5) / 2
, not np.log(2) / 2
.
Good catch, thank you! It should be “integrate(x / (1 + x**2), 0, 1)”.