06.09.2021 Views

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 3. INTERPOLATION 114<br />

Figure 3.2: Polynomial <strong>in</strong>terpolation<br />

Now let’s assume we know the derivative of the underly<strong>in</strong>g function at these nodes:<br />

x-coord<strong>in</strong>ates : −1.5, 1.6, 4.7<br />

y-coord<strong>in</strong>ates :0.071, −0.029, −0.012<br />

y ′ -values :1, −1, 1.<br />

We then construct the Hermite <strong>in</strong>terpolat<strong>in</strong>g polynomial, <strong>in</strong>corporat<strong>in</strong>g the derivative<br />

<strong>in</strong>formation. Figure (3.3) plots the Hermite <strong>in</strong>terpolat<strong>in</strong>g polynomial, together <strong>with</strong> the<br />

polynomial <strong>in</strong>terpolant, and the underly<strong>in</strong>g function.<br />

It is visually difficult to separate the Hermite <strong>in</strong>terpolat<strong>in</strong>g polynomial from the underly<strong>in</strong>g<br />

function cos x <strong>in</strong> Figure (3.3). Go<strong>in</strong>g from polynomial <strong>in</strong>terpolation to Hermite<br />

<strong>in</strong>terpolation results <strong>in</strong> rather dramatic improvement <strong>in</strong> approximat<strong>in</strong>g the underly<strong>in</strong>g function.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!