d1 d2 dp−1
x = ± d0 + 1 + 2 + · · · + p−1 β E
β β β
0 ≤ di ≤ β − 1, L ≤ E ≤ U.
F es un sistema normalizado si d0 6= 0
d1 d2 dp−1
x = ± d0 + 1 + 2 + · · · + p−1 β E
β β β
0 ≤ di ≤ β − 1, L ≤ E ≤ U.
F es un sistema normalizado si d0 6= 0
d1 d2 dp−1
x = ± d0 + 1 + 2 + · · · + p−1 β E
β β β
0 ≤ di ≤ β − 1, L ≤ E ≤ U.
F es un sistema normalizado si d0 6= 0
d1 d2 dp−1
x = ± d0 + 1 + 2 + · · · + p−1 β E
β β β
0 ≤ di ≤ β − 1, L ≤ E ≤ U.
F es un sistema normalizado si d0 6= 0
d1 d2 dp−1
x = ± d0 + 1 + 2 + · · · + p−1 β E
β β β
0 ≤ di ≤ β − 1, L ≤ E ≤ U.
F es un sistema normalizado si d0 6= 0
d1 d2 dp−1
x = ± d0 + 1 + 2 + · · · + p−1 β E
β β β
0 ≤ di ≤ β − 1, L ≤ E ≤ U.
F es un sistema normalizado si d0 6= 0
x = ± b0 b1 b2 b3 ×2E .
x 7→ float (x)
en donde float (x) es el el número en PF más cercano a x en
la métrica | · |.
En caso de empate ...¿ float (x)?
x 7→ float (x)
en donde float (x) es el el número en PF más cercano a x en
la métrica | · |.
En caso de empate ...¿ float (x)?
x 7→ float (x)
en donde float (x) es el el número en PF más cercano a x en
la métrica | · |.
En caso de empate ...¿ float (x)?
Error absoluto
ǫa = |x − float (x)|.
Error absoluto
ǫa = |x − float (x)|.
Error absoluto
ǫa = |x − float (x)|.
Error absoluto
ǫa = |x − float (x)|.
1
ǫr ≤ ǫM = β 1−p
2
y = .y1 y2 . . . yp × β E , y1 6= 0
E
ȳ = y + .00 . . . 1 × β ,
d = β E−p
|float (x + y) − (x + y)|
≤ ǫM
|x + y|
s2 = float (x1 + x2 )
= (x1 + x2 )(1 + ǫ1 )
= x1 (1 + ǫ1 ) +
x2 (1 + ǫ1 ), |ǫ1 | ≤ ǫM .
s3 = float (s2 + x3 )
= (s2 + x3 )(1 + ǫ2 )
= x1 (1 + ǫ1 )(1 + ǫ2 ) +
x2 (1 + ǫ1 )(1 + ǫ2 ) +
x3 (1 + ǫ2 ), |ǫ2 | ≤ ǫM .
José Luis Morales http://allman.rhon.itam.mx/∼jmorales Cálculo numérico. Aritmética en punto flotante.
continuación ...
sn = float (sn−1 + xn )
= (sn−1 + xn )(1 + ǫn−1 )
= x1 (1 + ǫ1 )(1 + ǫ2 ) · · · (1 + ǫn−1 ) +
x2 (1 + ǫ1 )(1 + ǫ2 ) · · · (1 + ǫn−1 ) +
x3 (1 + ǫ2 ) · · · (1 + ǫn−1 )
..
.
xn−1 (1 + ǫn−2 )(1 + ǫn−1 ) +
xn (1 + ǫn−1 ),
en donde
|ǫi | ≤ ǫM , i = 1, 2, . . . , (n − 1).
(1 + η1 ) = (1 + ǫ1 )(1 + ǫ2 ) · · · (1 + ǫn−1 )
| {z }
entonces:
|sn − (x1 + x2 + · · · + xn )|
ǫr =
|x1 + x2 + · · · + xn |
|x1 η1 + x2 η2 + · · · + xn ηn |
≤
|x1 + x2 + · · · + xn |
|η1 |(|x1 | + |x2 | + · · · + |xn |)
≤
|x1 + x2 + · · · + xn |
′
≤ nǫM cond (sn )
en donde
|x1 | + |x2 | + · · · + |xn |
cond (sn ) =
|x1 + x2 + · · · + xn |
x2 − bx + c = 0.
√
b2 − 4c
b±
r =
2
b = 3.6778, c = 0.0020798
r1 = 3.67723441190 . . . r2 = 0.00056558809 . . .
b2 1.3526 × 101
4c 8.3193 × 10−3
b√2 − 4c 1.3518 × 101
b2 √
− 4c 3.6767 × 100
b − √b2 − 4c 1.1000 × 10−3
(b − b2 − 4c)/2 5.5000 × 10−4
√
b + b2 −√ 4c 7.3545 × 100
r̂1 = (b + b2 − 4c)/2 3.6773 × 100