Hi, I have python code which I need to migrate in swift. I stuck with odeint function, which integrate a system of ordinary differential equations. In code t is array of data which represents timeIntervalSince1970.
from scipy.integrate import odeint
def solve(self):
y0 = [0., 0., 0., 0.]
wsol = odeint(self.f, y0, t)
return wsol
def f(self, y, t):
a, b, c, d = y
// f return array of Doubles, after a lot of mathematic calculate
f = [calculateValue0, calculateValue1, calculateValue2, calculateValue3]
return f
The recommendation is to use the Accelerate framework, but it is my first time to use them, and I don't see something similar for odeint...