Difference between revisions of "Roots Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
(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|function}}
{{command|function}}
+
;Roots( <Function>, <Start x-Value>, <End x-Value> )
;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.
 
: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[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>}}
+
:{{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>}}
<!-- Roots[3x³ + 3x² - x, -2, 1] in CAS keeps giving -- ((-2527525234655819) / 2000000000000000, (-4349072213472027 (E) - 4500000000000000) / 500000000000000) even though the rounding is set to 2. Please, try it. The (E) - 4500000000000000 must be replaced by (10)^(- 4500000000000000) at least.-
+
{{Note|1=See also [[Root Command|Root]] command}}
with Numeric Value, it gives: "(-1.263762617327909, -8.698144426944054 (E) - 9)" with the cientific notation including the "E".
 
->
 

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 function f(x) = 3x³ + 3x² - x yields A = (-1.264, 0), B = (0, 0), C = (0.264, 0)
Note: See also Root command
© 2024 International GeoGebra Institute