Professional Documents
Culture Documents
16
RESUMEN:
1. Ecuaciones no lineales
2. EDO DE 1ER ORDEN
2) Euler
3) lSode Puede usar cuando no sabe la reslucion analitica para comparar con
Euler y ver
si esta bien
function [y,t]=EulerSolveSystem(f,yi,dominio,h)
Ejemplo:
Condiciones iniciales
X(0)=1
Y(0)=0
Tenemos que programar una funcion f, que rerciba los valores x,y y el t
1
CLASE 3 22.08.16
Creamos la funcin
EULER SOLVE
2
CLASE 3 22.08.16
LSODE: ES PARECIDO
3
CLASE 3 22.08.16
TODO EL EJERCICIO ANTERIOR SE ANULO POR COMPLICADO
Condiciones iniciales
X(0)=2
Y(0)=1
#Ejercicio
Y (2) Z= k3 C Z - k4 Z = ( k3C- k4 ) Z
Condiciones iniciales
C(0)=Co Z* =K1/K2
Z(0)=Zo C* =K4/K3
4
CLASE 3 22.08.16
k1 = nac. De conejos
k2 = Prob. De que el zorro mate 1 conejo
5
CLASE 3 22.08.16
SISTEMAS DINAMICOS
Z= k3 C Z - k4 Z = ( k3C- k4 ) Z
K *
3
K
1
function yp=brote(y,t)
pes= 0.1;
pse= 0.001;
pem= 0.02; % CAMBIO CONDICION PEM 0
%yp(1)=-pse*y(1)*y(2)+pes*y(2);
%yp(2)=pse*y(1)*y(2)-pes*y(2)-pem*y(2);
% Forma vectorial
yp=[-pse*y(1)*y(2)+pes*y(2)...
pse*y(1)*y(2)-pes*y(2)-pem*y(2)];
6
CLASE 3 22.08.16
Legend(xxx,xxx)
7
CLASE 3 22.08.16
COMPARACION CAMBIANDO H
8
CLASE 3 22.08.16