Difference between revisions of "Roots Command"
From GeoGebra Manual
(added link to Root cmd) |
(command syntax: changed [ ] into ( )) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|function}} |
− | {{command|function}} | + | ;Roots( <Function>, <Start x-Value>, <End x-Value> ) |
− | ;Roots | ||
:Calculates the roots for function in the given interval. The function must be continuous on that interval. Because this algorithm is numeric, it may not find all the roots in some cases. | :Calculates the roots for function in the given interval. The function must be continuous on that interval. Because this algorithm is numeric, it may not find all the roots in some cases. | ||
− | :{{example| 1=<div><code><nowiki>Roots | + | :{{example| 1=<div><code><nowiki>Roots(f, -2, 1)</nowiki></code> with the function <code>f(x) = 3x³ + 3x² - x</code> yields <code>A = (-1.264, 0), B = (0, 0), C = (0.264, 0)</code></div>}} |
{{Note|1=See also [[Root Command|Root]] command}} | {{Note|1=See also [[Root Command|Root]] command}} | ||
− | |||
− | |||
− |
Latest revision as of 09:47, 9 October 2017
- Roots( <Function>, <Start x-Value>, <End x-Value> )
- Calculates the roots for function in the given interval. The function must be continuous on that interval. Because this algorithm is numeric, it may not find all the roots in some cases.
- Example:
Roots(f, -2, 1)
with the functionf(x) = 3x³ + 3x² - x
yieldsA = (-1.264, 0), B = (0, 0), C = (0.264, 0)
Note: See also Root command