Solves a linear equation of the form ax + b = 0.
Coefficient of x.
Constant term.
The solution x, or throws if a is zero.
solveLinear(2, -4); // returns 2solveLinear(1, 3); // returns -3 Copy
solveLinear(2, -4); // returns 2solveLinear(1, 3); // returns -3
Solves a linear equation of the form ax + b = 0.