solve
Solves an equation for a specified variable, returning all real and complex solutions. Provide equation in the form 'lhs = rhs'.
Instructions
Solves an equation for a variable. Format equation as 'lhs = rhs' (e.g. 'x^2 - 4 = 0'). Returns all solutions including complex ones. Examples: 'x^2 - 4 = 0' with variable 'x', 'x^3 - 6x^2 + 11x - 6 = 0' with variable 'x'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| equation | Yes | Equation string containing '=', e.g. 'x^2 - 4 = 0' | |
| variable | Yes | The variable to solve for, e.g. 'x' |