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"])Interactive examples could not load. You can still copy the expressions.
Expected result: x = 2, y = 1.