I recently started working with diffeqpy to solve differential equations, after installation i used this example from the page main https://github.com/SciML/diffeqpy :
from diffeqpy import de
import time
import matplotlib.pyplot as plt
t0 = time.time()
def f(u,p,t):
return -u
u0 = 0.5
tspan = (0., 1.)
prob = de.ODEProblem(f, u0, tspan)
sol = de.solve(prob)
print(time.time()-t0)
plt.plot(sol.t,sol.u)
plt.show()
It takes me 8 seconds to compute the solution of this simple equation, is there something wrong?
Edit: I am using Julia 1.5.3, python 3.7.4, diffeqpy 1.1.0 and julia(python) 0.5.6