This preview shows page 1. Sign up to view the full content.
Unformatted text preview: p4(x)=p3(x)+D(5,5)*(x-1)*(x-2)*(x-3)*(x-4) %%evaluate newton polynomial p4(x) at x=2.5 polyval(C,2.5) %%plot the actual function and newton poly obtained x1=linspace(.5,5.5); y1=3.6./x1; ynew=polyval(C,x1); plot(x1,y1,'--',x1,ynew) p...
View Full Document
This note was uploaded on 09/11/2011 for the course MECH 231 taught by Professor Den during the Spring '11 term at Rutgers.
- Spring '11