In: Advanced Math
Let f(x) = x + 2/x
a) Use quadratic Lagrange interpolation based on the nodes x0=1, x1=2, and x2=2.5 to approximate f(1.5) and f(1.2)
b) Use cubic Lagrange interpolation based on the nodes x0=0.5, x1=1, and x2=2 to approximate f(1.5) and f(1.2)