My math is very week and now still figuring how to achieve this with PHP. I was using excel TREND() function. Let's say I have 2 lists of known values
| known_x_values | known_y_values |
|----------------|----------------|
| 323 | 0.038 |
| 373 | 0.046 |
| 423 | 0.053 |
| 473 | 0.062 |
| 523 | 0.071 |
| 573 | 0.080 |
And now I need to know the value y when the x = 428. By using excel TREND() function, I get 0.055 as the value y.
Anyone can show me how PHP handle this kind of math questions?
Any help would be appreciated. Thank you.