Professional Documents
Culture Documents
#Parametros
a = 0.1
b = 0.02
c = 0.3
d = 0.01
# Condiciones iniciales
x0 = 50 # Presas
y0 = 10 # Depredadores
conds_iniciales = np.array([x0, y0])
# Condiciones para integración
tf = 200
N = 800
t = np.linspace(0, tf, N)
solucion = odeint(df_dt, conds_iniciales, t, args=(a, b, c, d))
Out[1]:
In [0]:
https://cocalc.com/006811ad-762b-4624-9fdb-16159e2dd68c/raw/2021-04-01-153418.html 1/1