Sunteți pe pagina 1din 1

El mtodo de la Secante

|
Secant (f , a , b , r) p0 a
p1 b
|

|
|
|
|
while p1 p0 r
|
|
p p0 f (p1) p1 f (p0) |
|

|
f (p1) f (p0)
|

p0 p1
|
|
p1 p
|
|

|
p
|
f (x) cos (x) x

s Secant (f , 0 , 1 , 0.00001)

s = 0.7390851

2.6
1.95
1.3
0.65
0
-3 -2.4-1.8-1.2-0.6 0
-0.65
-1.3
-1.95
-2.6
-3.25
-3.9
-4.55

0.6 1.2 1.8 2.4

f (x)