# Difference between revisions of "CSolutions Command"

From GeoGebra Manual

Noel Lambert (talk | contribs) |
|||

Line 11: | Line 11: | ||

:{{example|1=<div><code><nowiki>CSolutions[{y^2 = x- 1, x = 2 * y - 1}, {x, y}]</nowiki></code> gives <math>\begin{pmatrix}1 + 2 ί&1 + ί\\1 - 2 ί&1 - ί\end{pmatrix}</math>,<br/> the complex solutions of ''y<sup>2</sup> = x - 1'' and ''x = 2 * y - 1''.</div>}} | :{{example|1=<div><code><nowiki>CSolutions[{y^2 = x- 1, x = 2 * y - 1}, {x, y}]</nowiki></code> gives <math>\begin{pmatrix}1 + 2 ί&1 + ί\\1 - 2 ί&1 - ί\end{pmatrix}</math>,<br/> the complex solutions of ''y<sup>2</sup> = x - 1'' and ''x = 2 * y - 1''.</div>}} | ||

{{note| 1=<div> | {{note| 1=<div> | ||

− | *The complex ί is obtained by pressing ALT + i. | + | *The complex ί is obtained by pressing {{KeyCode|ALT + i}}. |

*See also [[CSolve Command]] and [[Solutions Command]]. | *See also [[CSolve Command]] and [[Solutions Command]]. | ||

</div>}} | </div>}} |

## Revision as of 13:35, 22 August 2011

This command works in CAS View only.

- CSolutions[ <Equation> ]
- Solves a given equation for the variable x and returns a list of all solutions, allowing for complex solutions.
**Example:**`CSolutions[x^2 = -1]`

gives*{ί, -ί}*, the complex solutions of*x*.^{2}= -1

- CSolutions[ <Equation>, <Variable> ]
- Solves an equation for a given unknown variable and returns a list of all solutions, allowing for complex solutions.
**Example:**`CSolutions[a^2 = -1, a]`

gives*{ί, -ί}*, the complex solutions of*a*.^{2}= -1

- CSolutions[ <List of Equations>, <List of Variables> ]
- Solves a set of equations for a given set of unknown variables and returns a list of all solutions, allowing for complex solutions.
**Example:**`CSolutions[{y^2 = x- 1, x = 2 * y - 1}, {x, y}]`

gives \begin{pmatrix}1 + 2 ί&1 + ί\\1 - 2 ί&1 - ί\end{pmatrix},

the complex solutions of*y*and^{2}= x - 1*x = 2 * y - 1*.

**Note:**

- The complex ί is obtained by pressing ALT + i.
- See also CSolve Command and Solutions Command.