Difference between revisions of "Root Command"
From GeoGebra Manual
m (Bot: Automated text replacement (-{{command +{{command|cas=true)) |
|||
Line 4: | Line 4: | ||
: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. | ||
;Root[ <Function>, <Number a> ] | ;Root[ <Function>, <Number a> ] | ||
− | :Yields one root of the function using the initial value ''a'' for | + | :Yields one root of the function using the initial value ''a'' for a numerical iterative method. |
;Root[ <Function>, <Number a>, <Number b> ] | ;Root[ <Function>, <Number a>, <Number b> ] | ||
− | :Yields one root of the function in the interval [''a, b''] | + | :Yields one root of the function in the interval [''a, b''] using a numerical iterative method. |
==CAS Syntax== | ==CAS Syntax== | ||
;Root[ <Polynomial> ] | ;Root[ <Polynomial> ] |
Revision as of 01:08, 6 November 2012
- 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 a numerical iterative method.
- Root[ <Function>, <Number a>, <Number b> ]
- Yields one root of the function in the interval [a, b] using a numerical iterative method.
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.