Sei sulla pagina 1di 14

INGENIERIA MECATRONICA

M
etodos Num
ericos

Ing. Patricio Pugarn


NCR:1055

G204

Jonathan Corella
Sangolqu - 19 de septiembre de 2013

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

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

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

1.

METODOS
NUMERICOS

Ejercicio 1

EN CADA UNO DE LOS SIGUIENTES HALLAR EL ERROR ABSOLUTO Ex Y EL


ERROR RELATIVO Rz Y DETERMINE EL NUMERO DE CIFRAS SIGNIFICATIVAS DE

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

0, 000060199792 < 0, 001

d=4

0, 000060199792 < 0, 0001

d=5

0, 000060199792 < 0, 00001

Por lo tanto X tiene una aproximacion a X de 4 cifras significativas.

Deber 3

Jonathan Corella

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

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

0, 007117437 > 0, 001

Por lo tanto Y es una muy mala aproximacion a Y. Por tener solo dos cifras significativas.

Deber 3

Jonathan Corella

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

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

Por lo tanto Z es una muy mala aproximacion a Z.

Deber 3

Jonathan Corella

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

2.

METODOS
NUMERICOS

Ejercicio 2

COMPLETE EL SIGUIENTE CALCULO

R1
4

ex dx

R1

(1 + x2 + x2! + x3! ) dx p

Determine que tipo de error se presenta en esta situacion y compare su


resultado con el valor exacto de p=0,2553074606.
R1
x6
x3
x5
x7 1/4
x4
2
4
+
)
dx
=
(x
+
+
+
(1
+
x
+
0
2!
3!
3
10
42 )|0 0, 2553074428
ENTONCES:
p=0,2553074606
p=0,2553074428
Error absoluto:
Ep = |p p| = |0, 2553074606 0, 2553074428| = 0, 0000000178
Error relativo:

0,25530746060,2553074428
Rp = | pp
| = 0, 00000006972,
Y |= |
0,2553074606

Cifras significativas:

10
| pp
X |<| 2 |
Deber 3

Jonathan Corella

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

METODOS
NUMERICOS

2 (0, 00000006972) < 10d


0, 00000013944 < 10d
d=1 0, 00000013944 < 0, 1
d=2 0, 00000013944 < 0, 01
d=3 0, 00000013944 < 0, 001
d=4 0, 00000013944 < 0, 0001
d=5 0, 00000013944 < 0, 00001
d=6 0, 00000013944 < 0, 000001
d=7 0, 00000013944 < 0, 0000001
Por lo tanto p es una muy buena aproximacion a p con 6 cifras
significativas.
Es un errror de truncamiento.

Deber 3

Jonathan Corella

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

3.

METODOS
NUMERICOS

Ejercicio 3

Complete los siguientes calculos y diga que tipo de error se presenta


en cada situacion.
3.1.

a)

sin ( 4 +0,00001)sin 4
0,00001

0,707113852220,70710678119
0,00001

= ...

0,70711385222 0,70710678119
0,00001

= 0,707103

VALOR EXACTO: = 0,7071033


Entonces:
Si comparamos los valores nos percatamos que existe una perdida de
cifras significativas.

Deber 3

Jonathan Corella

METODOS
NUMERICOS

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

3.2.

b)

ln (2+0,00005)ln 2
0,00005

0,693172180250,69314718056
0,00005

= ...

0,69317218025 0,6931471856
0,00005

= 0,499994

VALOR EXACTO: = 0,49999374


Entonces:
Si comparamos los valores nos percatamos que existe una perdida de
cifras significativas.

Deber 3

Jonathan Corella

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

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

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

METODOS
NUMERICOS

f l(0,6087 101 0,0001 104) = f l(5,087)


R(x) = (x 1)3
f l(x) = 0,0272 102
f l(1) = 0,0001 104
f l(0,0272 102 0,0001 104) = 0,0172 102
f l(0,0172 102 0,0172 102) = 0,2958 101
f l(0,2958 101 0,0172 102) = f l(5,08776)
4.2.

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

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

METODOS
NUMERICOS

f l(3) = 0,0003 104


f l(0,0975 101 0,0003 104) = 0,2025 101
f l(0,2025 102 0,0975 101) = 0,1974 101
f l(0,1974 101 + 0,0003 104) = 0,1026 101
f l(0,1026 101 0,0975 101) = 0,0001 104
f l(0,0001 104 0,0001 104) = f l(0)
R(x) = (x 1)3
f l(x) = 0,0975 101
f l(1) = 0,0001 104
f l(0,0975 101 0,0001 104) = 0,0025 101
f l(0,0025 101 0,0025 101) = 0,0006 100
f l(0,0006 100 0,0025 101) = f l(0)

Deber 3

12

Jonathan Corella

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

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.333 + 0.111 + 0.037+0.012+0.004 + 0.001

= 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

UNIVERSIDAD DE LAS FUERZAS ARMADAS-ESPE

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

Potrebbero piacerti anche