Join free to take this lesson
Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.
10 steps ยท about 20 min
By the end you can
- Say why 0.1 + 0.2 isn't exactly 0.3 on a computer
- Read a tiny number such as 5.55e-17
- Explain why 0.1 + 0.2 == 0.3 is False
- Compare two decimal numbers with abs(a - b) < 1e-9
Who it is for: Anyone who has done lesson 4.5.
The steps
- 0.1 + 0.2
- Why: a computer counts in twos
- How big is the error?
- Is it equal?
- Compare with a tolerance
- Is x 0.3?
- The times of linspace
- Find the time
- Adding 0.1 ten times
- Advice for a friend
Discussion 0 comments
Log in to join the discussion.