Introduction - If you have any usage issues, please Google them yourself
For f (x) = 1/(1+ x ^ 2) (-5 < = x < = 5) asked to select 11 equidistant interpolation nodes, respectively, using the Lagrange interpolation and piecewise linear interpolation to calculate x for the 0.5, 4.5 and the results of the function values compared with the accurate value. Input: interval length, n (ie n+1 nodes), the forecast points, Output: forecast of the approximate function value points, accurate values, and error