Video 3/3 on discrete calculus in Python.
In this video I show how an integral is approximated as a sum of rectangles, leading to the trapezoidal rule.
Based on chapter B by Aslak Tveito in "A Primer on Scientific Programming in Python" by H.P. Langtangen.
All scripts written in this video can be found at https://github.com/gregwinther/youtube.