Difference between revisions of "CSolve Command"

From GeoGebra Manual
Jump to: navigation, search
m (Bot: Automated text replacement (-{{betamanual|version=4.2}} + ))
(command syntax: changed [ ] into ( ))
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>  
+
<noinclude>{{Manual Page|version=5.0}}</noinclude> {{command|geogebra}}
{{command|CAS}}
+
==CAS Syntax==
;CSolve[ <Equation> ]
+
;CSolve( <Equation> )
 
:Solves a given equation for the main variable and returns a list of all solutions, allowing for complex solutions.
 
:Solves a given equation for the main variable and returns a list of all solutions, allowing for complex solutions.
:{{example|1=<div><code><nowiki>CSolve[x^2 = -1]</nowiki></code> yields ''{x = ί, x = -ί}'', the complex solutions of ''x<sup>2</sup> = -1''.</div>}}
+
:{{example|1=<code><nowiki>CSolve(x^2 = -1)</nowiki></code> yields ''{x = ί, x = -ί}'', the complex solutions of ''x<sup>2</sup> = -1''.}}
;CSolve[ <Equation>, <Variable> ]
+
;CSolve( <Equation>, <Variable> )
 
: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>CSolve[a^2 = -1, a]</nowiki></code> yields ''<nowiki>{a = ί, a = -ί}</nowiki>'', the complex solutions of ''a<sup>2</sup> = -1''.</div>}}
+
:{{example|1=<code><nowiki>CSolve(a^2 = -1, a)</nowiki></code> yields ''<nowiki>{a = ί, a = -ί}</nowiki>'', the complex solutions of ''a<sup>2</sup> = -1''.}}
;CSolve[ <List of Equations>, <List of Variables> ]
+
;CSolve( &lt;List of Equations>, &lt;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>CSolve[{y^2 = x - 1, x = 2 * y - 1}, {x, y}]</nowiki></code> yields ''<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>}}
+
:{{example|1=<code><nowiki>CSolve({y^2 = x - 1, x = 2 * y - 1}, {x, y})</nowiki></code> yields ''<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''.}}
{{note| 1=<div>
+
{{notes| 1=<div>
 
*The complex ί is obtained by pressing {{KeyCode|ALT + i}}.
 
*The complex ί is obtained by pressing {{KeyCode|ALT + i}}.
 
*See also [[CSolutions Command]] and [[Solve Command]].
 
*See also [[CSolutions Command]] and [[Solve Command]].
 
</div>}}
 
</div>}}

Latest revision as of 09:47, 12 October 2017


CAS Syntax

CSolve( <Equation> )
Solves a given equation for the main variable and returns a list of all solutions, allowing for complex solutions.
Example: CSolve(x^2 = -1) yields {x = ί, x = -ί}, the complex solutions of x2 = -1.
CSolve( <Equation>, <Variable> )
Solves an equation for a given unknown variable and returns a list of all solutions, allowing for complex solutions.
Example: CSolve(a^2 = -1, a) yields {a = ί, a = -ί}, the complex solutions of a2 = -1.
CSolve( <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: CSolve({y^2 = x - 1, x = 2 * y - 1}, {x, y}) yields {{x = 1 - 2 ί, y = 1 + ί}, {x = 1 + 2 ί, y = 1 - ί}}, the complex solutions of y2 = x and x = 2 * y - 1.
Notes:
© 2024 International GeoGebra Institute