Numerical Methods Library for OCTAVE
Numerical Methods Library for OCTAVE
Numerical Methods Library for OCTAVE
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
3.4.1 Monomial basisP = ITPOL_MONOM(X,Y,x) computes the monomial basis interpolation of pointsdefined by x-coordinate X and y-coordinate Y. x can be a real vector, eachrow in the solution array P corresponds to a x-coordinate in the vector x.ParametersX abscissas of interpolated points.Y odinates of interpolated points.x can be a scalar or a vector of values.ReturnsP value of p(x).3.4.2 Lagrange interpolationP = LAGRANGE(X,Y,x) computes the polynomial Lagrange interpolation of pointsdefined by x-coordinate X and y-coordinate Y. x can be a real vector, eachrow in the solution array P corresponds to a x-coordinate in the vector x.ParametersX abscissas of interpolated points.Y odinates of interpolated points.x can be a scalar or a vector of values.ReturnsP value of P(x).3.4.3 Newton interpolationP = ITPOL_NEWT(X,Y,x) computes the polynomial Newton interpolation of pointsdefined by x-coordinate X and y-coordinate Y. x can be a real vector, eachrow in the solution array P corresponds to a x-coordinate in the vector x.ParametersX abscissas of interpolated points.Y odinates of interpolated points.x can be a scalar or a vector of values.ReturnsP value of p(x).3.5 <strong>Numerical</strong> integrationThe numerical approximation of definite integrals is known as numerical quadrature. This namederives from ancient methods <strong>for</strong> computing areas of curved figures, the most famous exampleof which is the problem of "squaring the circle" (finding a square having the same area as a13