Recent content by goldin2008
-
G
Python Solving a Set of Equations with Python Odeint | Code and Example
thanks for reply. what does "info" means? and what is usefulness of "full_output=1"?- goldin2008
- Post #10
- Forum: Programming and Computer Science
-
G
Python Solving a Set of Equations with Python Odeint | Code and Example
I think this should be easier to read. # -*- coding: utf-8 -*- from scipy.integrate import odeint import numpy as np from pylab import * import math def func(y, t, k, c, Zr): #px, py, pz, x, y, z = y & 的d(px)/dt=y[0]; d(py)/dt=y[1]; d(pz)/dt=y[2]; d(x)/dt=y[3]; d(y)/dt=y[4]...- goldin2008
- Post #9
- Forum: Programming and Computer Science
-
G
Python Solving a Set of Equations with Python Odeint | Code and Example
I want to print track[:,3] (which is x coordinate) but the output is lsoda-- at current t (=r1), mxstep (=i1) steps taken on this call before reaching tout In above message, I1 = 500 In above message, R1 = 0.4578094279642E-05 Excess work done on this call...- goldin2008
- Post #6
- Forum: Programming and Computer Science
-
G
Python Solving a Set of Equations with Python Odeint | Code and Example
different colors mean 6 equations for y[0], y[1], y[2], y[3], y[4], y[5] I just want to integrate them and get px, py, pz, x, y, and z. And then use x, y, and z to draw trajectory of the particle. # -*- coding: utf-8 -*- from scipy.integrate import odeint import numpy as np from pylab import *...- goldin2008
- Post #4
- Forum: Programming and Computer Science
-
G
Python Solving a Set of Equations with Python Odeint | Code and Example
Sorry. Actually, just the equations are a little long. The idea is simple. # -*- coding: utf-8 -*- from scipy.integrate import odeint import numpy as np from pylab import * import math def func(y, t, k, c, Zr): #px, py, pz, x, y, z = y & px=y[0]; py=y[1]; pz=y[2]; x=y[3]...- goldin2008
- Post #3
- Forum: Programming and Computer Science
-
G
Python Solving a Set of Equations with Python Odeint | Code and Example
I want to solve a set of equations using Python odeint, but output shows me it is wrong. Can you help me? Thanks. Code: # -*- coding: utf-8 -*- from scipy.integrate import odeint import numpy as np from pylab import * import math def func(y, t, k, c, Zr): #px, py...- goldin2008
- Thread
- Ode Python
- Replies: 9
- Forum: Programming and Computer Science