Question: write in matlabThe algorithm for the divided difference formulas for the Hermite polynomial coefficients is: INPUT x = ( x 0 , dots, x n

write in matlabThe algorithm for the divided difference formulas for the Hermite polynomial
coefficients is:
INPUT x=(x0,dots,xn),Y=(f(x0),dots,f(xn)),YP=(f'(x0),dots,f'(xn))
OUTPUT Qi,j, the appropriate divided differences, where the Hermite interpolating
polynomial is H2n+1(x)=Q0,0+i=12n+1Qi,iprodj=0i-1(z-zj) and z2i=xi,z2i+1=xi for i=0,dots,n
STEP 1. For i=0,1,dotsn
z2i=xi
z2i+1=xi
Q2i,0=f(xi)
Q2i+1,0=f(xi)
Q2i+1,1=f'(xi)
Ifi0 then
Q2i,1=Q2i,0-Q2i-1,0z2i-z2i-1
End If
End
STEP 2. For i=2,3,dots,2n+1
For j=2,3,dots,i
Q??(i,j)=Qi,j-1-Qi-1,j-1zi-zi-j
End
End
STEP 3. OUTPUT Qi,j
 write in matlabThe algorithm for the divided difference formulas for the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!