Está en la página 1de 4

18 DE OCTUBRE

SOLUCION ANALITICA

primera forma

enf := for x ∈ 0 .. 200

y ← −50⋅ e
x
( ) + 100
− 0.045 ⋅ x
En esta forma x esun subindice

i := 0 .. 200

0
0 50 100
1 52.2
2 54.303
3 56.314
4 58.236 80
5 60.074
6 61.831 enfi
enf = 7 63.511
i
8 65.116 60
9 66.651
10 68.119
11 69.521
12 70.863 40
0 50 100 150 200
13 72.145
i
14 73.37
15 74.542

Segunda forma

i := 0 , 2 .. 200
se incrementa de 2
enf1 := h ← 2 en 2 y puede tomar
varios valores
for x ∈ 0 , 2 .. 200
− 0.045 ⋅ x
y ← −50⋅ e + 100
x
x← x+ h
y
enf1 =
i
50 100
54.303
58.236
61.831
65.116 80
68.119
70.863
enf1i
73.37
75.662
77.757 60
79.672
81.421
83.02
84.482
40
85.817 0 50 100 150 200
87.038 i

Tercera Forma

enf2( n ) := for x ∈ 1 .. n
la variable x ya no esta como
− 0.045 ⋅ x
enf2 ← −50⋅ e + 100 subindice y puede ser valor
enf2
decimal

n := 0 , 2.5.. 200

0 100
0 50
1 54.303
2 60.074
3 63.511
4 68.119 80
5 70.863
6 74.542 enf2( n)
enf2( n ) = 7 76.733
8 79.672 60
9 81.421
10 83.767
11 85.164
12 87.038
40
13 88.154 0 50 100 150 200
14 89.65
n
15 90.54

SOLUCION NUMERICA
Error aproximado
Verdadero
enf3 := x ← 0
enf3 − enf30 enf − enf3
i+ 1 i i i
EA := T ← ⋅ 100
100 EV := ⋅ 100
i enf3 0 i enf
i+ 1 i
k ← 0.045
ta ← 100

EA = h ← 0.5 EV =
i i
for i ∈ 0 .. 100
2.2 100
T ← ( −k⋅ i + ta⋅ k) ⋅ h + T
2.132 i+ 1 i 95.881
2.067 x ←x +h 92.396
2.005 i+ 1 i 89.442
1.946 T 86.936
1.889 84.813
1.835 i := 0 .. 100 83.019
1.783 x := 0 81.509
1.733 0 80.247
1.685 h := 0.5 79.202
1.64 78.347
1.595 x := x + h 77.661
i+ 1 i
1.553 77.124
1.512 x = enf3 = 76.721
i i
1.473 76.437
0 100
1.435 76.259
0.5 102.25
1 104.478
1.5 106.683
2 108.865
2.5 111.025
3 113.163
3.5 115.278
4 117.37
4.5 119.44
5 121.487
5.5 123.513
6 125.515
6.5 127.495
7 129.453
7.5 131.388

100

80

enfi

60

40
0 10 20 30 40 50
xi

También podría gustarte