odeint Questions

3

SciPy can solve ode equations by scipy.integrate.odeint or other packages, but it gives result after the function has been solved completely. However, if the ode function is very complex, the progr...
Agrigento asked 26/11, 2019 at 9:40

6

Solved

For solving simple ODEs using SciPy, I used to use the odeint function, with form: scipy.integrate.odeint(func, y0, t, args=(), Dfun=None, col_deriv=0, full_output=0, ml=None, mu=None, rtol=None, ...
Deandeana asked 14/1, 2018 at 0:53

1

Solved

I have this code to solve a simple first order ODE using odeint. I managed to plot the solution y(r), but I also want to plot the derivative y'= dy/dr. I know y' it is given by f(y,r), but I'm not ...
Node asked 14/11, 2019 at 9:30

1

Solved

I am wondering, what are the differences between ODEINT and solve_ivp for solving a differential equation. What could be advantages and disadvantages between them? f1 = solve_ivp(f, [0,1], y0) #y0...
Incipit asked 13/3, 2019 at 23:9

2

Solved

I would like to use scipy.integrate.ode (or scipy.integrate.odeint) instances in multiple threads (one for each CPU core) in order to solve multiple IVPs at a time. However the documentation says: ...
Inkling asked 15/12, 2015 at 14:23

1

Solved

I'm trying to use numba to boost the python performance of scipy.integrate.odeint. To this end, I have to use @nb.jit(nopython=True) for the function defining the ODE system. However, this function...
Debacle asked 6/12, 2017 at 6:13

1

edit: It's been five years, has SciPy.integrate.odeint learned to stop yet? The script below integrates magnetic field lines around closed paths and stops when it returns to original value withi...
Dizen asked 12/10, 2015 at 2:57

2

Using numba.jit to speed up right-hand-side calculations for odeint from scipy.integrate works fine: from scipy.integrate import ode, odeint from numba import jit @jit def rhs(t, X): return 1 X...
Stiffnecked asked 23/9, 2015 at 16:18

1

Solved

I am totally new to coding and I want to solve these 5 differential equations numerically. I took a python template and applied it to my case. Here's the simplified version of what I wrote: import...
Lani asked 22/1, 2015 at 15:24

1

Solved

I want to solve this differential equations with the given initial conditions: (3x-1)y''-(3x+2)y'+(6x-8)y=0, y(0)=2, y'(0)=3 the ans should be y=2*exp(2*x)-x*exp(-x) here is my code: def g(y,...
Flawed asked 7/1, 2015 at 13:36

1

Solved

Lets say we have three complex matrices and a system of coupled differential equations with these matrices. import numpy, scipy from numpy import (real,imag,matrix,linspace,array) from scipy.inte...
Clow asked 27/10, 2014 at 3:35

1

Solved

I am extending the parameter study example from boost's odeint used with thrust, and I do not know how to pass a vector of values to the constructor of the observer, such that those values can be a...
Placidia asked 29/8, 2014 at 18:42

2

Solved

I need to solve a complex-domain-defined ODE system, with complex initial values. scipy.integrate.odeint does not work on complex systems. I rod about cutting my system in real and imaginary part a...
Eulogia asked 11/11, 2013 at 15:40

1

Solved

Can anyone provide an example of providing a Jacobian to a integrate.odeint function in SciPy?. I try to run this code from SciPy tutorial odeint example but seems that Dfun() (the Jacobian functio...
Arboretum asked 8/7, 2013 at 18:42
1

© 2022 - 2025 — McMap. All rights reserved.