In this lesson
- It starts with a question. A machine doubles and adds 1. The answer was 11. What went in?
- The idea you will find. Undo in reverse order. — Shoes then socks, coming off in the opposite order from going on. A function that doubles then adds is undone by subtracting then halving. Getting the order wrong is the single most common error here.
- Length. 5 short steps. Progress saves on this phone.
Part of Number Machines: Functions
Feed a number in, get exactly one number out — the idea behind formulas, graphs and code.