Difference between revisions of "Root 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 ( ))
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|function}}
{{command|cas=true|function}}
+
;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.
;Root[ <Function>, <Number a> ]
+
:{{example| 1=<code><nowiki>Root(0.1*x^2 - 1.5*x + 5)</nowiki></code> yields ''A = (5, 0)'' and ''B = (10, 0)''.}}
 +
 
 +
;Root( <Function>, <Initial x-Value> )
 
:Yields one root of the function using the initial value ''a'' for a numerical iterative method.
 
:Yields one root of the function using the initial value ''a'' for a numerical iterative method.
;Root[ <Function>, <Number a>, <Number b> ]
+
:{{example| 1=<code><nowiki>Root(0.1*x^2 - 1.5*x + 5, 6)</nowiki></code> yields ''A = (5, 0)''.}}
:Yields one root of the function in the interval [''a, b''] using a numerical iterative method.
+
 
 +
;Root( <Function>, <Start x-Value>, <End x-Value> )
 +
:Let ''a'' be the ''Start x-Value'' and ''b'' the ''End x-Value'' . This command yields one root of the function in the interval [''a, b''] using a numerical iterative method.
 +
:{{example| 1=<code><nowiki>Root(0.1x² - 1.5x + 5, 8, 13)</nowiki></code> yields ''A = (10, 0)''.</div>}}
 +
 
 +
 
 
==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=<code><nowiki>Root(x^3 - 3 * x^2 - 4 * x + 12)</nowiki></code> yields ''{x = -2, x = 2, x = 3}''.}}
{{note| 1=<div>In the [[CAS View]], this command is only a special variant of [[Solve Command]].</div>}}
+
{{note| 1=<div>In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]], this command is only a special variant of [[Solve Command]].</div>}}

Latest revision as of 09:46, 9 October 2017


Root( <Polynomial> )
Yields all roots of the polynomial as intersection points of the function graph and the x‐axis.
Example: Root(0.1*x^2 - 1.5*x + 5) yields A = (5, 0) and B = (10, 0).


Root( <Function>, <Initial x-Value> )
Yields one root of the function using the initial value a for a numerical iterative method.
Example: Root(0.1*x^2 - 1.5*x + 5, 6) yields A = (5, 0).


Root( <Function>, <Start x-Value>, <End x-Value> )
Let a be the Start x-Value and b the End x-Value . This command yields one root of the function in the interval [a, b] using a numerical iterative method.
Example: Root(0.1x² - 1.5x + 5, 8, 13) yields A = (10, 0).


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 = -2, x = 2, x = 3}.
Note:
In the Menu view cas.svg CAS View, this command is only a special variant of Solve Command.
© 2024 International GeoGebra Institute