Function machines and reversing operations · Foundation
Introduzido| English | Significado |
|---|---|
| input/ˈɪnpʊt/ | valor de entrada |
The first spreadsheet
- VisiCalc, released in 1979, let a cell hold a rule such as "double this, then add 3". Change the input and the output updates at once. It sold millions of computers.
- A function machine is the same idea: an input 输入值 goes through rules to give an output.
Forwards
- Input 4 → $\times 2$ → 8 → $+3$ → 11.
- The order matters: always do the operations in the order shown.
Machine: $\times 3$, then $-5$. What is the output for input 7?
Dificuldade 2/5 · Moedas 140 + pequeno bônus na primeira conclusão hoje
$21 - 5$.
A table of values
- With rule $\times 2$, $+3$: inputs $-1, 0, 1$ give outputs $1, 3, 5$.
- As an expression, input $x$ gives output $2x + 3$.
For the machine $\times 2$, $+3$, put the outputs for inputs 0, 1, 2, 3 in order.
Dificuldade 3/5 · Moedas 200 + pequeno bônus na primeira conclusão hoje
Each input step adds 2.
Worked example: working backwards
The output is 11. What was the input?
- Undo the last step first: $11 - 3 = 8$.
- Then undo the first: $8 \div 2 = 4$.
- Check forwards: $4 \times 2 + 3 = 11$ ✓.
Function machines and reversing operations
Follow the operations in their stated order
Compare the model with the worked case and explain one change.
Machine: $\times 4$, then $+1$. The output is 29. What is the input?
Dificuldade 2/5 · Moedas 140 + pequeno bônus na primeira conclusão hoje
$29 - 1 = 28$, $28 \div 4 = 7$.
Inverse operations
- $+$ and $-$ undo each other; $\times$ and $\div$ undo each other.
- To reverse a machine, use the inverse operations in the reverse order.
What is the reverse of the machine "$\div 2$, then $-6$"?
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
Inverse operations in reverse order.
Machines as equations
- "Input $x$, $\times 2$, $+3$, output 11" is the equation $2x + 3 = 11$.
- Solving the equation is the same as running the machine backwards.
Entrada $x$ goes through $+5$, then $\times 3$. What is the output?
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
Add first, then multiply.
Reverse the order as well as the operations. Undoing 11 by $\div 2$ first gives 5.5, then $-3$ gives 2.5 — wrong. Undo $+3$ first, then $\times 2$.
To reverse "$\times 2$, then $+3$", you can do $\div 2$ then $-3$.
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
Undo $+3$ first.
A function machine applies operations in order. Go forwards to find outputs and make a table; go backwards with inverse operations in reverse order to find an input. A machine is an equation in disguise.
A machine does "$-4$, then $\times 5$". Find the input for output 35, and write the machine as an equation.
Reverse machine.