E assoluto: x̂ - x
E relativo: x̂ - x/x |x̂ - x|/|x|
Precisione macchina
1u = 10-16 trench
1u = 10-16/2 arrotond.
Errore sul risultato
E = (x̂ + ŷ) - (x + y)/(x + y) = x̂ - x + ŷ + y/x + y - x̅ - ŷ x EX + y EY/x + y
= x/x + yEX + y/x + yEY
Errore sui dati:
EX = x̂ - x
Teo Lagrange continued and derivable sembra c ∈ (a,b) t.c.
f(b) - f(b)/a - b = f1(c)
Errore incidente:
EIN = f(x̂, ŷ) - f(x,y)/f(x,y) = x̂,ŷ/y = x̂,ŷ - f(x,y)
Errore algoritmo
EALG = f(x̂ ) - f(x) f(x̂ )-f(x̂) E/X
EALG < E
Errore totale
f(E(x̂ ) - f(x)
f(E(x̂ ) - f(x)
= EIN + EALG
E assoluto: x̅ - x
E relativo: x̅ - x/x → | x̅ - x |/| x |
Errore sul risultato
ε = (x̅ + y̅) - (x + y)/(x + y) =
= x (1 + Ex) + y (1 + Ey) - x - y/(x + y) =
= x Ex + y Ey/(x + y) =
= x/x + y Ex + y/x + y Ey
Se (cêrti degli errori) allora risultato impreciso(mal cond.) se tendorni vicino 0 e hanno segnoopposto
Errore sui dati
Ex = x̅ - x/x, x̅ = x (1 ± Ex)
Errore inerente
EIN = f(x̅, y̅) - f(x, y)/f(x, y) =
= x̅-1 - x-1/x-1 = y⁄̅(1 + (Ex)(Ey) - 1/y
= y̅ [ (1 + Ex)(1 + Ey) - 1]/y = ± Ex + Ey ± Ex Ey ≈ Ex ± Ey
Teo di Lagrange
Se f continua e derivabile esiste c ∈ (a, b) t.c.
f'(c)
EIN = f(x̅) - f(x)/f(x) = f'(c)
εx̅ ∙ x̅
(x̅ - x)
Ex
f(x̅) - f(x) - f'(c)(x̅ - x)/(x̅ - x) Ex̅ + Ex
Errore algoritmo
I semplice => basso
I instabile => quando modulo di x e̅ circa (1 x 10-1)(1 x 2 1 y)
εALG = f(Ᵽ̲̅, b) - f(x)/b
valore calcolato perarchitetturafloating point con aritmeticaerrata dovuto a questa
Errore totale
εtot = f(Ᵽ̲̅, b) - f(x)/f(x)
εINT + εALG ⇒ (εINT) ε INT + ε LOG + εINT ! (εALG). A questo ε!
Metodo di bisezione
Teorema esistenza zero se su funzione continua tale che f(a)f(b)<0
f(a)=f(b) hanno segni opposti
esiste il punto in cui f si annulla [a,b]
f(a)·f(c)=0 a,c
b,c b=a+c c=
b-a/2 se b-a <
ogni volta che ...
certezza esito
b1-a1 = b-a/2n
b-a <2 A non invertibile
Norma di condizionamento
Δ→→ due rette quasi parallele →→ molte volate di tacito = luci con 0 due rette quasi perpendicolari → molte zone a posa è molti cond. di Barber → sapere se Ax ≈ b scrive ↔ desseguallo unici azione purocenavelo Ξ-b sul pagbabate deo velociop λ=x usepeto on ∩-A A^b-b Suppronacco di venire perturbante nello Ξ
→ b-b o b → anche xe perturbabile xe è la soluzione del sistema x- x + φx
→ Ax Ξ = → A(x+ Ξ) - (b+Ξ) vuolo di prodotto Ax+Δx I