Question: x [ 7 ] = { - 2 , - 1 , 0 , 1 , 2 , 3 , 4 } y [ 7

x[7]={-2,-1,0,1,2,3,4}
y[7]={0.6,-4.6,-6.0,-3.4,1.2,11.7,15.9}
or
You want to fit the data with two different regression curves, i.e, in the form of
y=a1x2+b1,
or
y=a2x+b2,
Write a C code to determine a1,b1,a2,b2 for x[7] and y[7].
Plot the data points and two curves together like the graph above with GNUplot.
x [ 7 ] = { - 2 , - 1 , 0 , 1 , 2 , 3 , 4 } y [ 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!