12.07.2015 Views

Esercizi svolti di esame ed esonero - Dipartimento di Matematica

Esercizi svolti di esame ed esonero - Dipartimento di Matematica

Esercizi svolti di esame ed esonero - Dipartimento di Matematica

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Soluzioni<strong>Esercizi</strong>o 2.a) Poiché ω 1 (x) = (x − x 0 )(x + x 0 ) = x 2 − x 2 0, ricordando l’esercizio 2 del 29.09.99, siottiene:‖ω 1 ‖ ∞ = max[−1,1] |x2 − x 2 0| = max(x 2 0, 1 − x 2 0).Il valore minimo é ottenuto quin<strong>di</strong> quando x 2 0 = 1 − x 2 0, ovvero per x 0 = ± √ 2/2, e<strong>di</strong>n corrispondenza a questa scelta ‖ω 1 ‖ ∞ = 1/2.b) Si ha, dalla stima generale <strong>di</strong> errore:|E 1 (x)| ≤ sup [−1,1] | sin(x)|‖ω 1 ‖ ∞2c) Nel caso generale si ottiene invece la stima= sin 14≈ 0.21|E 1 (x)| ≤ sup [−1,1] | sin(x)|2 22= 2 sin 1 ≈ 1.683<strong>Esercizi</strong>o 4.b) Il metodo <strong>di</strong> Crank–Nicolson per il sistema in questione ha la forma (implicita){xk+1 = x k + h[1/2(ax k + by k ) + 1/2(ax k+1 + by k+1 )]y k+1 = y k + h[1/2(cx k + dy k ) + 1/2(cx k+1 + dy k+1 )]che in forma matriciale corrisponde a( ) ( ) ( ) ( )1 − ah/2 −bh/2 xk+1 1 + ah/2 bh/2 xk=−ch/2 1 − dh/2 y k+1 ch/2 1 + dh/2 y kInvertendo la matrice del sistema si ottiene infine la soluzione( )xk+1=y k+1=( ) ( ) ( )41 − dh/2 bh/2 1 + ah/2 bh/2 xk(2 − ah)(2 − dh) − bch 2 ch/2 1 − ah/2 ch/2 1 + dh/2 y k26

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

Saved successfully!

Ooh no, something went wrong!