solving two uncoupled ODEs within a loop using python and scipy.integrate.ode

后端 未结 1 1399
情歌与酒
情歌与酒 2021-01-22 04:18

I am having problem for solving two very easy uncoupled ODEs using scipy.integrate.ode. For instance this following simple code:

 

from scipy.integr         


        
1条回答
  •  一整个雨季
    2021-01-22 05:13

    When I ran your code in ipython I got:

    Integrator `vode` can be used to solve only
    a single problem at a time. If you want to      
    integrate multiple problems, consider using 
    a different integrator (see `ode.set_integrator`)
    

    Apparently you have to use:

    ode.set_integrator
    

    to integrate multiple problems at the same time

    0 讨论(0)
提交回复
热议问题