solve( equation
, variable
[ , options
] )
The solution in SageMath of equation
for variable
. Multiple equations and multiple variables can be supplied as lists. The equation can alternately be an expression that will be equated to zero.
Equations in SageMath need to be defined with double equal (==
) signs to avoid syntax errors.
Available options are:
multiplicities=True|False solution_dict=True|False explicit_solutions=True|False to_poly_solve=True|False|'force'
Setting to_poly_solve='force'
can uncover additional solutions.
Examples:
solve( cot(x)==0, x )
solve( cot(x)==0, x, to_poly_solve=True )
solve( cot(x)==0, x, to_poly_solve='force' )
Related operations: find_root
Operation category: solution operations sagemath-docs