Difference between revisions of "CSolve Command"
From GeoGebra Manual
Line 1: | Line 1: | ||
− | |||
<noinclude>{{Manual Page|version=4.0}}</noinclude> | <noinclude>{{Manual Page|version=4.0}}</noinclude> | ||
{{command|CAS}} | {{command|CAS}} | ||
− | ;CSolve[ <Equation> ]: | + | ;CSolve[ <Equation> ] |
− | ; | + | :Solves a given equation (or a set of equations) for the variable x and returns a list of all solutions, allowing for complex solutions. |
− | + | :{{Example|1=<div><code><nowiki>CSolve[x^2 = 1]</nowiki></code> gives ''{{x = ί}, {x = -ί}}'', the solutions of ''x<sup>2</sup> = 1''.</div>}} | |
− | + | ;Solve[ <Equation>, <Variable> ] | |
− | {{Note|See also [[ | + | :Solves an equation (or a set of equations) for a given unknown variable (or set of variables) and returns a list of all solutions, allowing for complex solutions. |
+ | :{{Example|1=<div><code><nowiki>CSolve[{y^2 = x- 1, x = 2 * y - 1}, {x, y}]</nowiki></code> gives ''<nowiki>{{x = 1 + 2 ί, y = 1 + ί}, {x = 1 - 2 ί, y = 1 - ί}}</nowiki>'', the complex solutions of ''y<sup>2</sup> = x'' and ''x = 2 * y - 1''.</div>}} | ||
+ | {{Note|See also [[Solutions Command]].}} |
Revision as of 12:28, 4 August 2011
This command works in CAS View only.
- CSolve[ <Equation> ]
- Solves a given equation (or a set of equations) for the variable x and returns a list of all solutions, allowing for complex solutions.
- Example:
CSolve[x^2 = 1]
gives {{x = ί}, {x = -ί}}, the solutions of x2 = 1.
- Solve[ <Equation>, <Variable> ]
- Solves an equation (or a set of equations) for a given unknown variable (or set of variables) and returns a list of all solutions, allowing for complex solutions.
- Example:
CSolve[{y^2 = x- 1, x = 2 * y - 1}, {x, y}]
gives {{x = 1 + 2 ί, y = 1 + ί}, {x = 1 - 2 ί, y = 1 - ί}}, the complex solutions of y2 = x and x = 2 * y - 1.
Note: See also Solutions Command.