I have a function that solves for a variable in an equation. There should be 2 solutions to the equation. For example, 9=x^2, x can be 3 or -3. How can I get both values to be returned? Right now it only returns the first answer, 3.
I have a function that solves for a variable in an equation. There should be 2 solutions to the equation. For example, 9=x^2, x can be 3 or -3. How can I get both values to be returned? Right now it only returns the first answer, 3.