Difference between revisions of "ResidualPlot 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 )
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|chart}}
 
{{command|chart}}
;ResidualPlot[ <List of Points L>, <Function f> ]
+
;ResidualPlot[ <List of Points>, <Function> ]
:Returns a list of points whose x-coordinates are equal to x-coordinates of elements of L and y-coordinates are residuals with respect to ''f''. If ''i''-th element of L is a point ''(a,b)'' then ''i''-th element of result is ''(a,b-f(a))''.
+
:Returns a list of points whose x-coordinates are equal to x-coordinates of elements of L and y-coordinates are residuals with respect to ''f''.  
 +
:If ''i''-th element of L is a point ''(a,b)'' then ''i''-th element of result is ''(a,b-f(a))''.
 +
 
 +
:{{example|1=<div> Let <code><nowiki>list = {(-1, 1), (-0.51, 2), (0, 0.61), (0.51, -1.41), (0.54, 1.97), (1.11, 0.42), (1.21, 2.53), (-0.8, -0.12)}</nowiki></code> be the list of points and <code><nowiki>f(x) = x^5 + x^4 - x - 1</nowiki></code> the function. Command <code><nowiki>ResidualPlot[ Liste, f ]</nowiki></code> yields the list ''list1 = {(-1, 1), (-0.51, 2.46), (0, 1.61), (0.51, 0), (0.54, 3.38), (1.11, -0.66), (1.21, 0), (-0.8, 0)}'' and the corresponding points in the Graphics-view.</div>}}

Revision as of 14:25, 11 July 2013



ResidualPlot[ <List of Points>, <Function> ]
Returns a list of points whose x-coordinates are equal to x-coordinates of elements of L and y-coordinates are residuals with respect to f.
If i-th element of L is a point (a,b) then i-th element of result is (a,b-f(a)).
Example:
Let list = {(-1, 1), (-0.51, 2), (0, 0.61), (0.51, -1.41), (0.54, 1.97), (1.11, 0.42), (1.21, 2.53), (-0.8, -0.12)} be the list of points and f(x) = x^5 + x^4 - x - 1 the function. Command ResidualPlot[ Liste, f ] yields the list list1 = {(-1, 1), (-0.51, 2.46), (0, 1.61), (0.51, 0), (0.54, 3.38), (1.11, -0.66), (1.21, 0), (-0.8, 0)} and the corresponding points in the Graphics-view.
© 2024 International GeoGebra Institute