The first rung of Module 5 · everything that computes is a box
IN → OUT
You've been feeding numbers into machines your whole life — a coffee order, a thermostat, a vending machine. Turns out that's everything math means by a "function": a number goes in, a fixed rule runs, a number comes out. Do that with enough tiny boxes wired together, and you've built an AI.
Why this quietly runs your life
A recipe is a function: ingredients go IN, the oven's fixed process runs, dinner comes OUT. A vending machine, a thermostat, every app on your phone — same deal, input in, fixed rule runs, answer out. Here's the de-fang moment, ahead of schedule: an AI is nothing but thousands of these tiny machines, wired output-to-input, layer after layer. No single box is smart. It's boxes, all the way down — and you're about to meet the box.
Meet the machine (it's less scary than the word "function")
Forget every bad memory of the word function. A function is just a machine: something goes IN, the machine does its one fixed job, something comes OUT. Same input, same output, every single time — no moods, no exceptions, no "depends on how it's feeling today."
The rule never changes its mind
Press B4 on a vending machine and you get the same bag of chips every time — not chips today, gum tomorrow. Set the thermostat to 68° and it answers the same way to the same room temperature, every time. A recipe followed the same way makes the same soup. That boring, never-changes-its-mind reliability is what makes it a machine. A rule that answered randomly wouldn't be a function — it'd be a mood.
Try one — a real machine, right here
This box's rule is ×2, then +1. Step the input up and down, or type a new one, and watch the same rule run on it every time.
Same rule, every single time: double it, then add one.
Chain them — that's where the magic starts
Flip on the second machine above and the first machine's OUTPUT becomes the second machine's INPUT. Neither box knows the other exists — it just does its one small job to whatever number shows up on its doorstep. Chain enough tiny, dumb boxes like that, one after another, and the whole chain can do something no single box could do alone.
Prove it · get one wrong and I'll walk you through it
Two quick ones and the rung is yours.
A vending machine's rule is fixed: "take the number, multiply by 3, then add 2." You put in 4. What pops out?
You chain two machines. Machine A's rule: "double it." Machine B's rule: "subtract 1." You feed 3 into A, and A's OUTPUT becomes B's INPUT. What comes out of B?
Answer both to unlock the next rung ↓
The Function Machine — mastered.
You just learned the single idea every layer of a neural network runs on: take a number, apply a fixed rule, pass it along. Anywhere a lesson says "apply the rule," you skip it. Next you'll watch a machine's output change as its input wiggles — that's the derivative: the slope of a function machine's own behavior.
Next rung → The Derivative