

Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!


Linear Algebra and Geometry - Scientific Computing
ti = −cos
(2i − 1)π 2(n + 1)
, i = 1, ..., n + 1
defined on the interval [− 1 , 1] properly scaled in the generic interval [a, b] by means of the change of variable xi = b− 2 ati + b+ 2 a. Which of the two choices of nodes leads to an increasingly accurate approximation as the polynomial degree goes up?
f 1 (x) = sin(x), over [0, π],
f 2 (x) =
1 + x^2
, over [− 2 π, 2 π].
Use both equally spaced and Chebyshev-Lobatto nodes:
ti = −cos
(i − 1)π n)
, i = 1, ..., n + 1
properly scaled in the interval of interest. For each n graphically represent the interpolation absolute error at 100 equally spaced points in the considered interval and print the maximum absolute error. For each function compare the graphs reporting the error of the two sets of nodes and deduce tre most advantageous choice of nodes.
S 3 (x) fulfilling not-a-knot condition,
S¯ 3 (x) fulfilling S¯ 3 ′(x 0 ) = f ′(x 0 ) and S¯ 3 ′(xn) = f ′(xn)
interpolating f (x) = (1 − x^2 )^5 /^2 over the nodes xi = −1 + 2i/n, i = 0, 1 , ..., n, n = 2k, k = 2, 3 , 4 , 5. Graphically represent interpolation errors linked to S 3 (x) and S¯ 3 (x) at 100 equally spaced points in the interpolation interval [− 1 , 1]. Find which of the two gives more accurate result. Print maximum absolute error for each value of k and deduce which of the two approximations is more accurate (justify your answer).
hour nitrous oxides hour nitrous oxides 1 243 11 138 2 209 12 95 3 181 13 56 4 179 14 32 5 180 15 21 6 166 16 12 7 163 17 11 8 157 18 61 9 187 19 146 10 192 20 186