Difference between revisions of "ResidualPlot Command"

From GeoGebra Manual
Jump to: navigation, search
m
(command syntax: changed [ ] into ( ))
 
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|chart}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|chart}}
;ResidualPlot[ &lt;List of Points>, <Function> ]
+
;ResidualPlot( &lt;List of Points>, <Function> )
 
:Returns a list of points whose x-coordinates are equal to the x-coordinates of the elements of the given list, and y-coordinates are the residuals with respect to ''f''.  
 
:Returns a list of points whose x-coordinates are equal to the x-coordinates of the elements of the given list, and y-coordinates are the residuals with respect to ''f''.  
 
:If the ''i''-th element of the given list is a point ''(a,b)'' then ''i''-th element of the result is ''(a,b-f(a))''.
 
:If the ''i''-th element of the given list is a point ''(a,b)'' then ''i''-th element of the 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. The <code><nowiki>ResidualPlot[ list, f ]</nowiki></code> command yields ''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 creates the corresponding points in [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]].</div>}}
+
:{{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. The <code><nowiki>ResidualPlot(list, f )</nowiki></code> command yields ''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 creates the corresponding points in [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]].</div>}}

Latest revision as of 10:21, 3 October 2017


ResidualPlot( <List of Points>, <Function> )
Returns a list of points whose x-coordinates are equal to the x-coordinates of the elements of the given list, and y-coordinates are the residuals with respect to f.
If the i-th element of the given list is a point (a,b) then i-th element of the 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. The ResidualPlot(list, f ) command yields 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 creates the corresponding points in Menu view graphics.svg Graphics View.
© 2024 International GeoGebra Institute