Difference between revisions of "NSolutions Command"
From GeoGebra Manual
(NSolutions[ <Equation> ] is not accepted. The example NSolutions[cos(x) = x] is not accepted) |
|||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.2}}</noinclude>{{betamanual|version=4.2}} | <noinclude>{{Manual Page|version=4.2}}</noinclude>{{betamanual|version=4.2}} | ||
{{command|geogebra}} | {{command|geogebra}} | ||
− | ==CAS Syntax== | + | ==CAS Syntax== <!-- |
;NSolutions[ <Equation> ] | ;NSolutions[ <Equation> ] | ||
:Finds a numeric solution for the given equation for the main variable. | :Finds a numeric solution for the given equation for the main variable. | ||
− | :{{example|1=< | + | :{{example|1=<br><code><nowiki>NSolutions[cos(x) = x]</nowiki></code> yields ''{0.74}''}}--> |
;NSolutions[ <Equation>, <Variable> ] | ;NSolutions[ <Equation>, <Variable> ] | ||
− | :Finds | + | :Finds numerically the list of solutions to the given equation for the given unknown variable. |
− | :{{ | + | :{{examples|1=<br><code><nowiki>NSolutions[cos(x) = x, x= 0]</nowiki></code> yields ''{0.74}''<br><code><nowiki>NSolutions[a^4 + 34a^3 - 34, a]</nowiki></code> yields the list ''{-34, 0.99}''.<br>}} |
:{{note| 1=It is optional to give the starting point like ''a=3''.}} | :{{note| 1=It is optional to give the starting point like ''a=3''.}} | ||
;NSolutions[ <Equation>, <Variable = starting value> ] | ;NSolutions[ <Equation>, <Variable = starting value> ] |
Revision as of 05:53, 4 December 2012
This page is about a feature that is supported only in GeoGebra 4.2. |
CAS Syntax
- NSolutions[ <Equation>, <Variable> ]
- Finds numerically the list of solutions to the given equation for the given unknown variable.
- Examples:
NSolutions[cos(x) = x, x= 0]
yields {0.74}NSolutions[a^4 + 34a^3 - 34, a]
yields the list {-34, 0.99}.
- Note: It is optional to give the starting point like a=3.
- NSolutions[ <Equation>, <Variable = starting value> ]
- Finds a numeric solution to the given equation for the given unknown variable with a starting value.
- Example:
NSolutions[a^4 + 34a^3 - 34, a=3]
yields {0.9904738886662206}.
- NSolutions[ <List of Equations>, <List of Variables> ]
- Finds a numeric solution to the given set of equations for the given set of unknown variables.
- Example:
NSolutions[{π / x = cos(x - 2y), 2 y - π = sin(x)}, {x=3, y=1.5}]
yields {3.141592651686591, 1.570796327746508}.
- Note: It is optional to give the starting point like {x=3, y=1.5}.
Note:
- π is obtaind by pressing Alt + p.
- See also Solutions Command and NSolve Command.