Start Here — A Complete Tour
Solve by rearranging — solve()
continues from lesson 8 — values defined earlier in the course stay live here
Now the headline feature: NapkinCalc solves equations for you. solve(expression, variable) rearranges expression = 0 to isolate the variable — symbolically, by hand-quality algebra, not guessing. Here we recover Newton's a = F/m without doing the algebra ourselves.
Shortcut: in the app you rarely type solve by hand — open any equation cell's menu and pick "Solve for" the variable, and the cell is written for you.
= 10 N
= 2 kg
= 5 N / kg isolate a from F − m·a = 0
✓ pass the engine returned F/m, exactly
When an equation has several answers, solve returns all of them as a list — for example the two roots of a quadratic:
= both roots at once
✓ pass x = 2 and x = 3