Difference between revisions of "Root Command"
From GeoGebra Manual
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | <noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | ||
{{command|function}} | {{command|function}} | ||
− | ; Root[Polynomial]: Yields all roots of the polynomial as intersection points of the function graph and the ''x''‐axis. | + | ; Root[ <Polynomial> ] |
− | ; Root[Function, Number a]: Yields one root of the function using the initial value ''a'' for Newton's method. | + | :Yields all roots of the polynomial as intersection points of the function graph and the ''x''‐axis. |
− | ; Root[Function, Number a, Number b]: Yields one root of the function in the interval [''a, b''] (regula falsi). | + | ;Root[ <Function>, <Number a> ] |
+ | :Yields one root of the function using the initial value ''a'' for Newton's method. | ||
+ | ;Root[ <Function>, <Number a>, <Number b> ] | ||
+ | :Yields one root of the function in the interval [''a, b''] (regula falsi). | ||
==CAS Syntax== | ==CAS Syntax== | ||
− | ;Root[Polynomial] | + | ;Root[ <Polynomial> ] |
:Yields all roots of the polynomial as intersection points of the function graph and the ''x''‐axis. | :Yields all roots of the polynomial as intersection points of the function graph and the ''x''‐axis. | ||
:{{example| 1=<div><code><nowiki>Root[x^3 - 3 * x^2 - 4 * x + 12]</nowiki></code> yields ''{x = 3, x = 2, x = -2}''.</div>}} | :{{example| 1=<div><code><nowiki>Root[x^3 - 3 * x^2 - 4 * x + 12]</nowiki></code> yields ''{x = 3, x = 2, x = -2}''.</div>}} | ||
{{note| 1=<div>This command is only a special variant of [[Solve Command]].</div>}} | {{note| 1=<div>This command is only a special variant of [[Solve Command]].</div>}} |
Revision as of 12:57, 24 August 2011
- Root[ <Polynomial> ]
- Yields all roots of the polynomial as intersection points of the function graph and the x‐axis.
- Root[ <Function>, <Number a> ]
- Yields one root of the function using the initial value a for Newton's method.
- Root[ <Function>, <Number a>, <Number b> ]
- Yields one root of the function in the interval [a, b] (regula falsi).
CAS Syntax
- Root[ <Polynomial> ]
- Yields all roots of the polynomial as intersection points of the function graph and the x‐axis.
- Example:
Root[x^3 - 3 * x^2 - 4 * x + 12]
yields {x = 3, x = 2, x = -2}.
Note:
This command is only a special variant of Solve Command.