Está en la página 1de 18

UNIVERSIDAD NACIONAL DEL CALLAO

Facultad de Ingeniera Industrial y de Sistemas


Escuela Profesional de Ingeniera de Sistemas

EJERCICIOS MTODO DE LA SECANTE


AUTOR:
Walter R. Talaverano Cruz

CODIGO:
082754e

PROFESOR
Alcntara Ramirez Manuel Abelardo

MTODO DE LA SECANTE
1. Problema
f ( x)=x ln ( x )

a) Solucin grfica

b) Solucin analtica
ln ( x 23)

f ( x)=
en x 0=2.12 y x 1=2.34

X i+ 2=X i

f ( X i)( X i+1X i)
f ( X i+1)f (X i)

x 0=2.12 y x 1=2.34

f ( x 0 )=f (2.12 )= ln ( (2.12 )23 ) +

1
=0.1621195171
2.12

f ( x 1)=f (2.34 )= ln ((2.34)23 ) +

1
=0.5247434708
2.34

I teracin 1

x 2=2.12

( 0.1621195171) .(2.34+2.12)
( 0.52474347080.1621195171)

= -2.021643856

2.021643856(2.34)
1
x 100 |=|
x 100 |=15.74739007
| x 2x
x2
2.021643856

Error=

x 0=2.34 y x 1=2.021643856

f ( x 0 )=f (2.34 )= ln ( (2.34 ) 3 ) +

1
=
2.34

0.5247434708
2

f ( x 1)=f (2.021647368)= ln ( (2.021643856) 3 ) +

1
=
2.021643856

0.205749102

I teracin 2
x 2=2.34

(0.5247434708).(2.021643856+2.34 )
(0.2057491020.5247434708)

= -2.1113114216

2.1113114216(2.021643856)
1
x 100 |=|
x 100 |=4.24700802
| x 2x
x2
2.1113114216

Error=

x 0=2.021643856 y x 1=2.1113114216

f ( x 0)=f (2.021647368)= ln ((2.021643856)23 ) +

1
=
2.021643856

0.205749102

f ( x 1)=f (2.1113114216)= ln ( (2.1113114216)23 ) +

1
=
2.1113114216

0.140214043

I teracin 3

x 2=2.021643856

(0.205749102).(2.1113114216+ 2.021643856)
(0.140214043+0.205749102)

-2.0749704064

2.0749704064(2.1113114216)
1
x 100 |=|
x 100 |=1.75139920
| x 2x
x2
2.0749704064

Error=

x 0=2.1113114216 y x 1= 2.0749704064

f (x 0)=f (2.1113114216)= ln ( (2.1113114216)23 ) +

1
=
2.1113114216

0.140214043

f (x 1)=f (2.0749704064)= ln ((2.0749704064)23 ) +

1
=
2.0749704064

0.034386812

I teracin 4
x 2=2.1113114216

(0.140214043).(2.0749704064+2.1113114216)
(0.0343868120.140214043)

-2.063161993

Error=

||

2.063161993(2.0749704064)
x 2x 1
x 100 =
x 100 =0.57234543
x2
2.063161993

Resumen:
iteracin

error ( )

2.021643856

15.74739007

2.1113114216

4.24700802

3
4

- 2.0749704064

2.063161993

1.75139920
0.57234543

c) Cdigo en MATLAB

Resultados

2. Problema
f ( x)=x ln ( x )

a) Solucin grfica

b) Solucin analtica
f ( x )=x 2ln ( x )

en

x 0=0.51 y x 1=0.57
X i+ 2=X i

f ( X i)( X i+1X i)
f ( X i+1)f (X i)

x 0=0.51 y x 1=0.57

f ( x 0 )=f ( 0.51 )=0.512 +ln ( 0.51) = 0.4132445532637656


f ( x 1 ) =f ( 0.57 )=0.572 + ln ( 0.57)=0.2372189181535412

I teracin 1

x 2=0.51

(0.4132445532637656) .(0.570.51)
(0.2372189181535412+0.4132445532637656)

= 0.6508583084

0.6508583084( 0.57)
1
x 100 |=|
x 100 |=12.42333505
| x 2x
x2
0.6508583084

Error=

x 0=0.57 y x 1=0.6508583084

f ( x 0 )=f ( 0.57 )=0.57 2+ ln ( 0.57)=0.237218918


f ( x 1 ) =f ( 0.6508583084 )=0.65085830842 + ln ( 0.6508583084)=0.0058467750772844

I teracin 2

x 2=0.57

(0.237218918).(0.65085830840.57)
(0.0058467750772844+0.237218918)

0.6529015982

1
0.65290159820.6508583084
x 100 |=|
x 100 |=0.312955245
| x 2x
x2
0.6529015982

Error=

Resumen:
iteracin

error ( )

0.6508583084

12.42333505

0.6529015982

0.312955245

c) Cdigo en MATLAB

Resultados

3. Problema
f ( x )=e x

1
x

a) Solucin grfica

b) Solucin analtica
f ( x )=e x

1
x

x 0=0.7 y x 1=0.6

X i+ 2=X i

f ( X i)( X i+1X i)
f ( X i+1)f (X i)

x 0=0.7 y x 1=0.6
f ( x 0 )=f ( 0.7 )=e0.7

1
0.7

0.585181278

0.6

f ( x 1 ) =f ( 0.6 )=e

1
=0.155452133
0.6

I teracin 1

0.585181278 .(0.60.7)

= 0.563825555

x 2=0.7

0.563825555(0.6)
1
x 100 |=|
x 100 |=6.415893121
| x 2x
x2
0.563825555

Error=

x 0=0.6 y x 1=0.563825555
0.6

f ( x 0 )=f ( 0.6 )=e

1
=0.155452133
0.6

f ( x 1 ) =f ( 0.563825555 )=e0.563825555

1
=0.016215597
0.563825555

I teracin 2

x 2=0.6

(0.155452133) .(0.5638255550.6)
(0.0162155970.155452133)

0.567242564

1
0.5672425640.563825555
x 100 |=|
x 100 |=0.60238939 %
| x 2x
x2
0.56724256

Error=

Resumen:

iteracin

error ( )

0.563825555

6.415893121

0.567242564

0.60238939

c) Cdigo en MATLAB

Resultados

4. Problema
f ( x )=sin x +cos x1

a) Solucin grfica

b) Solucin analtica
Resolver por elmtodo de la secante: f ( x )=sin x+ cos x 1
x 0=1.52 y x 1=1.32
X i+ 2=X i

f ( X i)( X i+1X i)
f ( X i+1)f (X i)

x 0=1.52 y x 1=1.32

f ( x 0)=f (1.52)=sin ( 1.52)+cos (1.52) 1=0.04948462891


f ( x 1)=f (1.32)=sin(1.32)+ cos(1.32) 1=0.21689055177

en

Primera iteracin

x 2=1.52

(0.04948462891) .(1.321.52)
(0.216890551770.04948462891)

1.5791193287

Calcular error :
1.5791193287(1.32)
1
x 100 |=|
x 100 |=16.409103732
| x 2x
x2
1.5791193287

Error=

x 0=1.32 y x 1=1.5791193287

1.32
() 1=0.21689055177
(1.32)+ cos
f ( x 0 )=f (1.32 ) =sin
f ( x 1)=f (1.5791193287)=sin ( 1.5791193287)+cos (1.5791193287) 1=0.008357541793

Segunda iteracin

x 2=1.32

(0.21689055177).(1.57911932781.32)
(0.0083575417930.21689055177)

1.569505038

Calcular error :
1
1.5695050381.5791193287
x 100 |=|
x 100 |=0.612568323 %
| x 2x
x2
1.569505038

Error=

Resumen:

iteracin
1

error ( )

1.5791193287

16.409103732

1.569505038

0.612568323

c) Cdigo en MATLAB

Resultados <

<

También podría gustarte