Difference between revisions of "CSolutions Command"
From GeoGebra Manual
m |
Noel Lambert (talk | contribs) |
||
Line 8: | Line 8: | ||
:Solves an equation for a given unknown variable and returns a list of all solutions, allowing for complex solutions. | :Solves an equation for a given unknown variable and returns a list of all solutions, allowing for complex solutions. | ||
:{{example|1=<div><code><nowiki>CSolutions[a^2 = -1, a]</nowiki></code> yields ''<nowiki>{ί, -ί}</nowiki>'', the complex solutions of ''a<sup>2</sup> = -1''.</div>}} | :{{example|1=<div><code><nowiki>CSolutions[a^2 = -1, a]</nowiki></code> yields ''<nowiki>{ί, -ί}</nowiki>'', the complex solutions of ''a<sup>2</sup> = -1''.</div>}} | ||
− | ;CSolutions[ | + | ;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. | :Solves a set of equations for a given set of unknown variables and returns a list of all solutions, allowing for complex solutions. | ||
:{{example|1=<div><code><nowiki>CSolutions[{y^2 = x - 1, x = 2 * y - 1}, {x, y}]</nowiki></code> yields <math>\begin{pmatrix}1 + 2 ί&1 + ί\\1 - 2 ί&1 - ί\end{pmatrix}</math>,<br/> the complex solutions of <math>y^{2} = x - 1</math> and <math>x = 2 * y - 1</math>.</div>}} | :{{example|1=<div><code><nowiki>CSolutions[{y^2 = x - 1, x = 2 * y - 1}, {x, y}]</nowiki></code> yields <math>\begin{pmatrix}1 + 2 ί&1 + ί\\1 - 2 ί&1 - ί\end{pmatrix}</math>,<br/> the complex solutions of <math>y^{2} = x - 1</math> and <math>x = 2 * y - 1</math>.</div>}} |
Revision as of 08:57, 23 August 2015
CAS Syntax
- CSolutions[ <Equation> ]
- Solves a given equation for the main variable and returns a list of all solutions, allowing for complex solutions.
- Example:
CSolutions[x^2 = -1]
yields {ί, -ί}, the complex solutions of x2 = -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]
yields {ί, -ί}, the complex solutions of a2 = -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}]
yields \begin{pmatrix}1 + 2 ί&1 + ί\\1 - 2 ί&1 - ί\end{pmatrix},
the complex solutions of y^{2} = x - 1 and x = 2 * y - 1.
Note:
- The complex ί is obtained by pressing ALT + i.
- See also CSolve Command and Solutions Command.