NapkinCalc

Start Here — A Complete Tour

Systems of equations — solveSystem()

continues from lesson 10 — values defined earlier in the course stay live here

Several equations, several unknowns? solveSystem([equations], "target", [unknowns]) solves them simultaneously. Give it the list of equations, the variable you want back, and the full list of unknowns. (In the app, select your equation cells and choose "Solve as a system" — these cells are written for you.)

sysx:=solveSystem(["x+y=10","xy=2"],"x",["x","y"])sys_{x} := solveSystem(["x + y = 10", "x - y = 2"], "x", ["x", "y"]) = 66 solve the pair for x
sysy:=solveSystem(["x+y=10","xy=2"],"y",["x","y"])sys_{y} := solveSystem(["x + y = 10", "x - y = 2"], "y", ["x", "y"]) = 44 and for y
✓ pass sysx==6andsysy==4sys_{x} == 6 and sys_{y} == 4 x = 6, y = 4 satisfies both equations