solveFor#
Rearrange an equation to isolate a variable.
Available in: math cells, REPL.
Syntax#
solveFor(equation, variable)
Arguments and behavior#
Pass a quoted equation and the variable name. Other unassigned names remain symbolic. Locally assigned numeric coefficients can substitute into the equation. The example returns text.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
solveFor("a*x+b=0","x")Interactive examples could not load. You can still copy the expressions.
Expected result: -b*a^-1.