ResidualPlot 命令
- ResidualPlot( <List of Points>, <Function> )
-
返回一个点列表,其 x 坐标等于给定列表元素的 x 坐标,且 y 坐标是相对于 f 的残差。 如果 i 给定列表的第...个元素是一个点 (a,b) ,则结果的 i 个元素为 (a,b-f(a)) .
设
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)}
为
点列表,且
f(x) = x^5 + x^4 - x - 1
为函数。ResidualPlot
ResidualPlot(list, f )
命令生成
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)}
,并在
Graphics_View
.