solve/scalar
solve a scalar case (a single variable and equation)
Calling Sequence
Parameters
Description
Examples
solve(eqn, var)
eqn

algebraic expression (to be equated to 0), or an equation, or a set or list containing a single expression
var
(optional) name, or list containing a single name
The solve function with a single equation and a single variable uses the scalar solver. When called with a single argument, it is equivalent to solve(eqn, indets(eqn, name)).
The scalar solver reports all solutions found, even if some roots are multiple roots. For polynomials, the scalar solver finds all solutions.
For polynomials of degree 2, 3, and 4, the scalar solver computes the explicit solutions. For irreducible and nondecomposable polynomials of degree higher than 4, the scalar solver returns the solutions using RootOf notation.
For information on the return values of the solve command, see solve/details.
$\mathrm{solve}\left(\mathrm{cos}\left(x\right)\+y\=9\,x\right)$
${\mathrm{\pi}}{}{\mathrm{arccos}}{}\left({y}{}{9}\right)$
$\mathrm{solve}\left({x}^{3}6{x}^{2}\+11x6\,x\right)$
${1}{,}{2}{,}{3}$
$\mathrm{solve}\left(\left\{{x}^{3}6{x}^{2}\+11x6\right\}\,\left[x\right]\right)$
$\left[\left[{x}{=}{1}\right]{\,}\left[{x}{=}{2}\right]{\,}\left[{x}{=}{3}\right]\right]$
See Also
solve
solve/details
solve/float
solve/identity
solve/radical
Download Help Document
What kind of issue would you like to report? (Optional)