Wilang Documentation1.0.0+4

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")

Expected result: -b*a^-1.

All functions · Math guides