Message Boards Message Boards

0
|
2935 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

I get an error when I do this, so how would you do this?

Anonymous User
Anonymous User
Posted 10 years ago

Enter the following input to create a command that will plot a collection of data, a fit function, and the residuals for the data and the given function. Test the command with the fit function f(x)= 3-.25x+.125x^2

residualPlot[data_,function_,{x_,xmin_,xmax_},opts___Rule]:= 
Show[ListPlot[{data,Table[{x,function}, {x,data[[All,1]]}]}, Filling -> {1->{2}},
FillingStyle-> {Red,Green}, PlotMarkers-> {"*",""}, opts],
Plot[function, {x,xmin,xmax}]]
POSTED BY: Anonymous User
3 Replies
Posted 10 years ago
POSTED BY: Sandu Ursu
Anonymous User
Anonymous User
Posted 10 years ago

I get an error of incomplete and it says more input is needed, i dont know why.

POSTED BY: Anonymous User
POSTED BY: Udo Krause
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract