Wilang Documentation1.0.0+4

solveEquations#

Solve a system of simultaneous equations.

Available in: math cells, REPL.

Syntax#

solveEquations(equations, variables)

Arguments and behavior#

Pass an array of quoted equations and an array of variable names. Equations must describe a solvable system; inconsistent or underdetermined systems can fail. The example returns text.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
solveEquations(["x+y=3","x-y=1"],["x","y"])

Expected result: x = 2, y = 1.

All functions · Math guides