Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
M
etodos Num
ericos
G204
Jonathan Corella
Sangolqu - 19 de septiembre de 2013
METODOS
NUMERICOS
Indice
1. Ejercicio 1
1.1. a)X=2,71828182
1.2. b)Y=98350
1.3. c)Z=0,000068
X*=2,7182 . . . . . . . . . . . . . . . . . . . . .
Y*=98000 . . . . . . . . . . . . . . . . . . . . . . . . .
Z*=0,00006 . . . . . . . . . . . . . . . . . . . . . .
3
3
4
5
2. Ejercicio 2
3. Ejercicio 3
3.1. a) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2. b) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8
8
9
4. Ejercicio 4
4.1. Usando la aritmetica del punto flotante con cuatro cifras y redondeo,
P (2,72), Q(2,72), R(2,72).
En el calculo de P (x) suponga que (2,72)3 = 20,12,(2,72)2 = 7,398. . .
4.2. Usando la aritmetica del punto flotante con cuatro cifras y redondeo,
P (0,975), Q(0,975), R(0,975).
En el calculo de P (x) suponga que (0,975)3 = 0,9268,(0,975)2 = 0,9506.
10
calcule
. . . . .
calcule
10
. . . . .
11
5. Ejercicio 5
13
6. Ejercicio 6
14
Deber 3
Jonathan Corella
1.
METODOS
NUMERICOS
Ejercicio 1
LA APROXIMACION.
1.1.
a)X=2,71828182
X*=2,7182
Error absoluto:
Ex = |X X | = |2, 71828182 2, 7182| = 0, 00008182
Error relativo:
Rz = | XX
| = | 2,718281822,7182
| = 0, 000030099896
X
2,71828182
Cifras significativas:
| XX
| < | 102 |
X
2 (0, 000030099896) < 10d
0, 000060199792 < 10d
d=1
0, 000060199792 < 0, 1
d=2
0, 000060199792 < 0, 01
d=3
d=4
d=5
Deber 3
Jonathan Corella
1.2.
b)Y=98350
METODOS
NUMERICOS
Y*=98000
Error absoluto:
EY = |Y Y | = |98350 98000| = 350
Error relativo:
RY = | Y Y
| = | 9835098000
| = 0, 003558718
Y
98350
Cifras significativas:
| Y Y
| < | 102 |
X
2 (0, 003558718) < 10d
0, 007117437 < 10d
d=1
0, 007117437 < 0, 1
d=2
0, 007117437 < 0, 01
d=3
Por lo tanto Y es una muy mala aproximacion a Y. Por tener solo dos cifras significativas.
Deber 3
Jonathan Corella
1.3.
c)Z=0,000068
METODOS
NUMERICOS
Z*=0,00006
Error absoluto:
EZ = |Z Z | = |0, 000068 0, 00006| = 0, 000008
Error relativo:
RZ = | ZZ
| = | 0,0000680,00006
| = 0, 117647058
Z
0,000068
Cifras significativas:
| ZZ
| < | 102 |
Z
2 (0, 117647058) < 10d
0, 235294117647 < 10d
d=1
0, 235294117647 < 0, 1
Deber 3
Jonathan Corella
2.
METODOS
NUMERICOS
Ejercicio 2
R1
4
ex dx
R1
(1 + x2 + x2! + x3! ) dx p
0,25530746060,2553074428
Rp = | pp
| = 0, 00000006972,
Y |= |
0,2553074606
Cifras significativas:
10
| pp
X |<| 2 |
Deber 3
Jonathan Corella
METODOS
NUMERICOS
Deber 3
Jonathan Corella
3.
METODOS
NUMERICOS
Ejercicio 3
a)
sin ( 4 +0,00001)sin 4
0,00001
0,707113852220,70710678119
0,00001
= ...
0,70711385222 0,70710678119
0,00001
= 0,707103
Deber 3
Jonathan Corella
METODOS
NUMERICOS
3.2.
b)
ln (2+0,00005)ln 2
0,00005
0,693172180250,69314718056
0,00005
= ...
0,69317218025 0,6931471856
0,00005
= 0,499994
Deber 3
Jonathan Corella
4.
METODOS
NUMERICOS
Ejercicio 4
POLINOMIAL SEAN:
EVALUACION
P (x) = x3 3x2 +3x1, Q(x) = ((x3)x+3)x1, R(x) = (x1)3
4.1.
Usando la aritm
etica del punto flotante con cuatro cifras y redondeo, calcule P (2,72), Q(2,72), R(2,72).
En el c
alculo de P (x) suponga que (2,72)3 = 20,12,(2,72)2 = 7,398.
P (x) = x3 3x2 + 3x 1
f l(x3) = 0,2012 102
f l(3x2) = 0,2219 102
f l(3x) = 0,0816 102
f l(1) = 0,0001 104
f l(0,2012 102 0,2219 102) = 0,0207 102
f l(0,0816 102 0,0001 104) = 0,0716 102
f l(0,0207 102 + 0,0716 102) = f l(5,09)
Q(x) = ((x 3)x + 3)x 1
f l(x) = 0,0272 102
f l(1) = 0,0001 104
f l(3) = 0,0003 104
f l(0,0272 102 0,0003 104) = 0,0028 102
f l(0,0028 102 0,0272 102) = 0,7616 100
f l(0,7616 100 + 0,0003 104) = 0,2238 101
f l(0,2238 101 0,0272 102) = 0,6087 101
Deber 3
10
Jonathan Corella
METODOS
NUMERICOS
Usando la aritm
etica del punto flotante con cuatro cifras y redondeo, calcule P (0,975), Q(0,975), R(0,975).
En el c
alculo de P (x) suponga que (0,975)3 = 0,9268,(0,975)2 =
0,9506.
P (x) = x3 3x2 + 3x 1
f l(x3) = 0,9268 100
f l(3x2) = 0,2852 101
f l(3x) = 0,2925 101
f l(1) = 0,0001 104
f l(0,9268 100 0,2852 101) = 0,1925 101
f l(0,2925 101 0,0001 104) = 0,1925 101
f l(0,1925 101 + 0,1925 101) = f l(0)
Q(x) = ((x 3)x + 3)x 1
f l(x) = 0,0975 101
f l(1) = 0,0001 104
Deber 3
11
Jonathan Corella
METODOS
NUMERICOS
Deber 3
12
Jonathan Corella
5.
METODOS
NUMERICOS
Ejercicio 5
USANDO ARITMETICA
DE PUNTO FLOTANTE CON
TRES CIFRAS Y REDONDEO.
CALCULE LAS SIGUIENTES SUMAS (USANDO EN
EL ORDEN
QUE SE INDICA):
a)
P6
1
k=1 3k
= 31 +
1
32
1
33
1
34
1
35
1
36
= 0.498
b)
P6
1
k=1 37 k
= 3711 +
1
37 2
= 316 +
1
35
1
34
1
37 3
1
33
1
32
1
37 4
1
37 5
1
37 6
1
31
=0.001+0.004+0.012+0.037+0.111+0.333
=0.499
Deber 3
13
Jonathan Corella
METODOS
NUMERICOS
6.
Ejercicio 6
DADOS LOS DESARROLLOS DE TAYLOR
1
1h
= 1 + h + h2 + O(h4)
cos h = 1
h2
2!
h4
4!
+ O(h6 )
DE SU SUMA Y
DETERMINE EL ORDEN DE APROXIMACION
DE SU PRODUCTO
SUMA
h2
2!
1
1h
+ cos h = 1 + h + h2 + h3 + 1
1
1h
+ cos h = 2 + h + h2 (1 2!1 ) + h3 +
1
1h
+ cos h = 2 + h +
h2
2
h4
4!
h4
4!
+ O(h4 ) + O(h6 )
+ O(h4 ) + O(h6 )
+ h3 + O(h4 )
PRODUCTO
1
( 1h
)(cos h) = [(1 + h + h2 + h3 ) + O(h4 )][(1
1
( 1h
)(cos h) = (1 + h + h2 + h3 )(1
4
2
(1 h2! + h4! )(O(h6 )) + (O(h4 ))(O(h6 ))
2
h2
2!
h4
4! )
h2
2!
h4
4! )
+ O(H 6 )]
+ (1 + h + h2 + h3 )(O(H 6 )) +
1
( 1h
)(cos h) = 1 h2! + h4! + h h2! + h2! + h2 h2! + h4! + h3 h2! + h4! + O(h6 ) +
(O(h4 ) + (O(h1 0)
1
( 1h
)(cos h) = 1+h+h2 ( 2!1 +1)+h3 (1 2!1 )+( h4! h2! + h4! h4! + h4! + h2! )+O(h4 )
1
( 1h
)(cos h) = 1 + h + 21 (h2 + h3 ) + O(h4 )
Deber 3
14
Jonathan Corella