Previous Up Next

6.55.6  Solving equation(s): solve cSolve

The solve command solves an equation or a system of polynomial equations. In real mode, solve returns only real solutions; to have solve return the complex solutions, switch to complex mode (e.g.by checking Complex in the cas configuration, see Section 3.5.5).

The cSolve command is identical to solve, except it returns the complex solutions whether in real mode or complex mode.

To solve an equation:

For trigonometric equations, solve returns by default the principal solutions. To have all the solutions check All_trig_sol in the cas configuration (see Section 3.5.7, item 19).

Examples:


To solve a system of polynomial equations:


Examples.


Previous Up Next