Sie sind auf Seite 1von 2

Programa que aproximar una raz real positiva para la funcion f (x) = x^4-2*x^3-12*x^2+16*xIncremento=

x
0
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
2
2.2
2.4
2.6
2.8
3
3.2
3.4
3.6
3.8
4
4.2
4.4
4.6
4.8
5
5.2
5.4
5.6
5.8
6
6.2
6.4
6.6
6.8

f(x)
-40
-37.2944
-35.6224
-35.0224
-35.4944
-37
-39.4624
-42.7664
-46.7584
-51.2464
-56
-60.7504
-65.1904
-68.9744
-71.7184
-73
-72.3584
-69.2944
-63.2704
-53.7104
-40
-21.4864
2.5216
32.7536
69.9776
115
168.6656
231.8576
305.4976
390.5456
488
598.8976
724.3136
865.3616
1023.1936

0.2

a
4.3
4.4
4.375
4.4
4.39375
4.396875
4.3953125
4.39609375
4.395703125
4.395898438

2*x^3-12*x^2+16*x-40 con un error ep < 0.01%

Grfica de la Funcin

f(x)

b
4.4
4.35
4.4
4.3875
4.4
4.39375
4.396875
4.3953125
4.39609375
4.395703125

f(a)
-10.2139
2.5216
-0.804443359
2.5216
1.681033693
2.100558899
1.890606987
1.995535594
1.943059456
1.969294566

f(b)
2.5216
-4.03474375
2.5216
0.846519556
2.5216
1.681033693
2.100558899
1.890606987
1.995535594
1.943059456

xr
4.35
4.375
4.3875
4.39375
4.396875
4.3953125
4.39609375
4.395703125
4.395898438
4.395800781

f(xr)
-4.03474375
-0.804443359
0.846519556
1.681033693
2.100558899
1.890606987
1.995535594
1.943059456
1.969294566
1.956176271

ep
0.571428571
0.284900285
0.142247511
0.071073205
0.035549236
0.017771459
0.008886519
0.004443062
0.00222158

Das könnte Ihnen auch gefallen