math - How to get value prediction from Polynomial curve? -


OK, so math is not my strong point!

I have this data, I used Zunzun.com, to create a user defined polynomial curve for my data, which is y = a + bx1 + cx2 + dx3 + ex4 + fx5 < / Code>

However, when I recommend code use:

  double A = -4.2294409347240979 E + 01; Double B = 5.5 9 46102161174718 E + 00; Double C = -1.3446057748924720 E-01; Double D = 1.5448461146899649 E-03; Double E = -8.2537158069276241 A-06; Double F = 1.7176546321558128 E-088; Temp = f; Temp = temp * x_in + e; Temp = temp * x_in + d; Temp = temp * x_in + c; Temp = temp * x_in + b; Temp = temp * x_in + a; Return temporary;  

Does it give me the 'sum of complete error'? Say for X value 94, I should get a value of approximately 60.3, but this code gives me -46.152. I know that I'm stupid and obviously there is no equation in the end. But did anyone have guessed my Y value from my X with this platform? The graph really fits well and will not be great to use a lookup table.

Many thanks!

XY - 180 200
178 190
176 180
174 170
170 160
168 150
164 140
160 130
154 120
149 110
142 100
134 90
122 80
110 70
92 60
66 50
30 40

Thanks everyone! The code is now working:

Sorry for my circular but you are implementing Are;

Y = A + B x + c x ^ 2 + d x ^ 3 + e x ^ 4 + f * x ^ 5

x = 94
x ^ 2 == x x = 8836
x ^ 3 == x
x x = 830584
x ^ 4 = = X
x x = 78074896
x ^ 5 = x x x x x x = 7339040224

A ~ -42.29440 9 34
B ~ 05.5 9 461021
C ~ -0.134460577
D ~ 0.001544846
E ~ -0.000008253
F ~ 0.000000017

Y = -42.29440 9 34 + 05.5 9 461021 * 94 + -0.134460577 * 8836 + 0.001544846 * 830584 + -0.000008253 * 78074896 + 0.000000017 * 7339040224

Y = -42.29440 9 34 + 525.89335974 - 1188.0 93658372 + 1283.124370064 - 644.352116688 + 124.763683808

Y = 59.041229212

Your answer is not enough, but You need to be good with enough accuracy Hia.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -