Está en la página 1de 6

FACULTAD DE INGENIERA

CIVIL Y ARQUITECTURA
INGENIERA CIVIL
TEMA:
RESOLUCIN DE EDO MEDIANTE ALGORITMOS
CREADOS EN MATLAB

UNIVERSIDAD NACIONAL
HERMILIO VALDIZAN
ALUMNO: Calixto iglesias, Jhim Bequer

DOCENTE: Ing. Owner Inhaber Salvador Salazar

CURSO: Mtodos Numricos

CICLO: Noveno

HUNUCO PER

I. TRABAJO N2
EJERCICIO N1: MTODO DE TAYLOR TIPO 3
SERIE DE TAYLOR DE 3 ORDEN
Ingrese Dy = 0.5*(1+x)*y^2
Ingrese D2y = 0.5*y^2+(1+x)*y*Dy
Ingrese D3y = 2*y*Dy+(1+x)*Dy^2+(1+x)*y*D2y
Ingrese x(0)=0
Ingrese y(0)=1
Ingrese la razon de crecimiento (h) =0.1
numero de iteraciones =5

it
x0
yo
Dy
D2y
D3y
=======================================================
============
0.0

0.000000

1.000000

0.500000

1.000000

2.250000

1.0

0.100000

1.055375

0.612599

1.268082

3.177981

2.0

0.200000

1.123505

0.757358

1.652206

4.617615

3.0

0.300000

1.208271

0.948948

2.220522

6.951718

4.0

0.400000

1.315427

1.211245

3.095801

10.941789

5.0

0.500000

1.453855

1.585270

4.513974

18.223115

El punto aproximado a una interacin mas y(x1) es = 1.637989

EJERCICIO N2: MTODO DE RUNGE-KUTTA DE ORDEN 2


RESOLUCION DE ECUACIONES DIFERENCIALES POR MEDIO RUNGE-KUTTA DE ORDEN 2

Ingrese la ecuacion diferencial dy/dx=


Ingrese el primer punto x0:

Ingrese el segundo punto x1:

Ingrese la condicin inicial y(x0):

-y+x+1

Ingrese el nmero de pasos n: 10

'it

x0

0.000000

y(x1)
1.005000

0.100000

0.200000

1.041218

0.300000

1.070802

0.400000

5
6
7
8
9

0.500000
0.600000
0.700000
0.800000
0.900000

El punto aproximado y(x1) es = 1.368541

1.019025

1.107076
1.149404
1.197210
1.249975
1.307228
1.368541

EJERCICIO N3: MTODO DE EULER PROGRESIVO


Si Dy = v
Ingrese Dv = -10*sin(y)
Ingrese lmite inferior t0 = 0
Ingrese lmite superior t1 = 0.5
Condicin inicial y(t0) = 0.1
Condicin inicial v(t0) = 0
Ingrese paso h = 0.05

it

Dv

=================================================
=======================
0.0

0.00000000

0.10000000

0.00000000

-0.99833417

1.0

0.05000000

0.10000000

0.00000000

-0.99833417

2.0

0.10000000

0.10000000

0.00000000

-0.99833417

3.0

0.15000000

0.10000000

0.00000000

-0.99833417

4.0

0.20000000

0.10000000

0.00000000

-0.99833417

5.0

0.25000000

0.10000000

0.00000000

-0.99833417

6.0

0.30000000

0.10000000

0.00000000

-0.99833417

7.0

0.35000000

0.10000000

0.00000000

-0.99833417

8.0

0.40000000

0.10000000

0.00000000

-0.99833417

9.0

0.45000000

0.10000000

0.00000000

-0.99833417

10.0

0.50000000

0.10000000

0.00000000

-0.99833417

EJERCICIO N4: MTODO DE DIFERENCIAS FINITAS


Ingrese la ecuacin diferencial du/dt = . ( ya no es necesario introducir la funcin porque
ya est en el programa)

Ingrese el primer punto a: 1


Ingrese el segundo punto b: 2
Ingrese el nmero de particiones m: 6
Ingrese la condicin inicial y(1): 1
Ingrese la condicin final y(2): 2
MATRIZ A
-2.0556

1.1667

0.8571

-2.0408

1.1429

0.8750

-2.0313

1.1250

0.8889

-2.0247

VECTOR b
-0.8283
0.0067
0.0071
-2.2154
Y(x) = INVERSA(A)*b

Y(x) = x
1.1869
1.3813
1.5823
1.7888

NOTA: el programa solo sirve para este ejercicio!!!

0
0

También podría gustarte