Originally Posted by

**realpart1/2** I understand the mathematics behind this and could easily do this by hand, but I'm complete noob when it comes to Matlab.

I need to write a Matlab-function interpol.m that will return the interpolation polynomial $\displaystyle p_{n}(x)$ in Newton form for $\displaystyle x_{0},x_{1},x_{2},\ldots,x_{n}$ and $\displaystyle f(x_{0}),f(x_{1}),f(x_{2}),\ldots,f(x_{n})$

Then I have to write a program interpol_plot.m to plot f(x) and $\displaystyle p_{n}(x)$ for n=3, n=5, and n=10, and then test this on $\displaystyle f(x)=\frac{1}{2+3x^{2}}$.