(Hi! I am a G11 IB Math AA SL student and I am really struggling to understand what I am doing wrong. First time using this site, so please forgive me if I mess up ).
My set of data is: {{3.8, 1.69},{4, 1.24},{4.2, 0.33},{4.4, 0.294}{4.6, 0.347},{4.8, 0.487},{5, 0.286},{5.2, 0.898},{5.4, -0.58}}
I used this formula to find the Ls for each point
This is what I got
$$L(3.8) = x^8 - 37.6x^7 + 617.68x^6 - 5790.4x^5 + 33879.6304x^4 - 126692.68864x^3 + 295695.78163x^2 - 393821.36524x + 229154.36544$$
and etc.
I multiplied each $L$ by the $y$ value of its $x$ point. For example, $1.69 L(3.8)$
Then, I added all the $L$'s together and simplified the equation until I got this formula
I cannot find where I did a mistake and every online calculator gives me the same equation! Yet, if I substitute the value 4 into the formula, for example, I do not get 1.24.
Please help!!
Edit: The formula: $-(1.7625\times10^2)x^8 + (6.4585\times10^3)x^7 - (1.0337\times10^5)x^6 + (9.4389\times10^5)x^5 - (5.3777\times10^6)x^4 + (1.9577\times10^7)x^3 - (4.4468\times10^7)x^2 + (5.7621\times10^7)x - (3.2612\times10^7)$
Edit: Thank you to everyone who tried to help me!! Just an update - I gave up, nothing seems to work. I am going to model the function in a different way.


For reference, here's the Maple session I used:
and here's a Maxima session for the same task: