cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

## Polyfit  7-Bedrock

## Polyfit

I defined a function of x and y and plotted it. Later I am calculating matrix values for the function and trying to create a second function to fit the points. My belief was it should result in the first function but the second function deviated from first by large margin. How to rectify this?

1 ACCEPTED SOLUTION

Accepted Solutions  19-Tanzanite
(To:TR_9781963)

Here is my Prime 7 sheet. 5 REPLIES 5  19-Tanzanite
(To:TR_9781963)

You only use x=y's 21 points (green plot) of the function to polyfit it.

Using all 441 points data to polyfit function, we get the next plot. Yellow plot is polyfit(,U,V, 2) and Red plot is polyfit(,U,V, 3). Polyfit area expands to -15,-14.5..15 for both x and y data.    7-Bedrock
(To:ttokoro)

Can you please share the updated worksheet  24-Ruby V
(To:TR_9781963)

While ttokoro is looking for his missing worksheet here are my 2 cents

Here you see in blue the points which you provided for polyfit to find a fitting surface and you see that polyfit succeeded in finding a surface of third order through all your points 😉 If you provide a full mesh of points you get the result you expected. You may also use "polyfitc" to look for the factors which polyfit finds The -0.2 in the row with "AAB" is the coefficient of x^2*y, etc.

Prime worksheet attached  19-Tanzanite
(To:TR_9781963)

Here is my Prime 7 sheet.   24-Ruby V
(To:TR_9781963)  