20.07.2013 Views

Software matematic

Software matematic

Software matematic

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.

114 Interpolare în MATLAB<br />

10<br />

5<br />

0<br />

−5<br />

5<br />

10<br />

5<br />

0<br />

−5<br />

5<br />

0<br />

0<br />

Probleme<br />

−5<br />

−5<br />

nearest<br />

−5<br />

cubic<br />

−5<br />

0<br />

0<br />

5<br />

5<br />

10<br />

5<br />

0<br />

−5<br />

5<br />

10<br />

0<br />

−10<br />

5<br />

0<br />

0<br />

−5<br />

−5<br />

linear<br />

−5<br />

spline<br />

Figura 4.6: Interpolant¸i construit¸i cu interp2<br />

Problema 4.1. Să se reprezinte pe acelas¸i grafic pentru [a,b] = [0,1], n = 11,<br />

funct¸ia, interpolantul Lagrange s¸i cel Hermite cu noduri duble în cazurile:<br />

(a) xi = i−1<br />

n−1 ,i = 1,n, f(x) = e−x s¸i f(x) = x 5/2 ;<br />

(b) xi =<br />

2 i−1<br />

n−1 ,i = 1,n, f(x) = x5/2 .<br />

Problema 4.2. Aceeas¸i problemă, dar pentru cele patru tipuri de interpolant¸i spline<br />

cubici.<br />

Problema 4.3. Alegând diverse valori ale lui n, pentru fiecare n astfel ales reprezentat¸i<br />

grafic funct¸ia lui Lebesgue pentru n noduri echidistante s¸i respectiv n noduri<br />

Cebîs¸ev din intervalul [0,1].<br />

−5<br />

0<br />

0<br />

5<br />

5

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

Saved successfully!

Ooh no, something went wrong!