In each case, the weighted sum of these basis polynomials is the interpolating polynomial that approximates the given function. Hi Alan basically what i was looking for was a function to take in my X and Y values and the newton coefficients (Z) and of course the degree of the polynomial which is 1 less the number of data points so in this case it was degree 4. Polynomial Calculations in MATLABĀ® polyfit: Fits polynomial to data p= polyfit(x,y,n): Finds the coefficients of a polynomial p(x) best in a least-squares sense n: degree of polynomial y: data p: row vector of length n+1 (polynomial coefficients In descending powers) A polynomial of order n is determined uniquely if n+1 data points (x i,y Use the function below and x= -2, x=2, and x=7 to perform the interpolations. Lagrange Interpolation Polynomial (Matlab) Ask Question Asked 9 months ago.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |