[SciPy-User] How to create a request to change a function?

Augusto Dufloth dufloth at gmail.com
Thu Jan 30 23:28:10 EST 2020


Hello,

I have a request to change one of scipy’s function.

I am trying to use odeint to integrate a set of equations of motion. My
state equations rely on time dependent inputs. And these inputs are numpy
arrays.

When I do a flight path reconstruction, the inputs comes from the inertial
system of the aircraft and I plug it into the state equations, so I get the
deterministic position of the aircraft and than I can compare it to the
measured values.

The issue is that I can’t input an array. Searching stackoverflow I saw
solutions using for-loops and assigning an arg for each time step. This is
counter productive and create a huge time calculation for long arrays.

I created my own C-dll to deal with this for loop issue, but it’s super
counter productive.

Can we get an option that the input args are arrays if same size of t, and
as the state is integrated, the index of the arg follows the states?

Thanks for your help

Augusto
-- 
"The greatest challenge to any thinker is stating the problem in a way that
will allow a solution."
- Bertrand Russell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20200131/7d36a4f3/attachment.html>


More information about the SciPy-User mailing list