Lecture 5: Floats and Approximation Methods
At a glance
- Price Free to watch, no sign-up
- Runtime 47 min
- Topics Computer Science, Mathematics
- Source MIT, Introduction to CS and Programming using Python
- Lecture Lecture 5 of 25
- Language English
Ana Bell teaches this session of MIT's 6.100L Introduction to CS and Programming using Python, covering how computers represent floating point numbers and why that representation is inexact. She explains the binary storage problems that cause rounding errors in float arithmetic, then moves into approximation methods that rely on these imperfect numbers, including bisection search and Newton-Raphson style techniques for estimating roots. The lecture builds on earlier material about simple algorithms, showing how programmers can write code that converges on a correct answer even when exact representation is impossible. Bell works through examples on screen, tying the abstract issue of floating point precision to concrete coding patterns students will use in later problem sets. It is a practical, example-driven session aimed at students early in a first programming course.