Professional Documents
Culture Documents
616
0.525 0.457]; >> p = polyfit(T, density,2) >> d = polyval(p,350)
24 Example 14.5 Problem : Use a Lagrange interpolating polynomial of the first and
second order to evaluate the density of unused motor oil at T = 15 o C �x 1 = 0 f(x
1 ) = 3.85 �x 2 = 20 f(x 2 ) = 0.800 �x 3 = 40 f(x 3 ) = 0.212 Solution : First-
order at x=15: �f 1 (x)= Second-order : � f 2 (x)=
27 14.4 Inverse Interpolation (1,1) (3,3) (5,5) -> (?,2) Polynomial interpolation
�Determine (n-1)-th order polynomial p(x) �solve p(t) = 2 Ex : (2, 0.5),
(3,0.3333), and (4,0.25) �Find x so that f(x)=0.3 �f 2 (x) = 0.041667x 2 �
0.375x+1.08333 �Solve 0.3 = 0.041667x 2 � 0.375x+1.08333 for x �x = 5.704158 or
3.295842