Paste Search Dynamic
Recent pastes
odeint
  1. import numpy as np
  2. from scipy.integrate import odeint
  3.  
  4. def fx (x, t):
  5.     pos,vel = x
  6.     dxdt = [vel, 9.81*t]
  7.     return dxdt
  8.    
  9. x0 = np.array([10, 0])
  10. t = np.arange(0,5,.1)
  11. y = odeint(fx,x0,t)
  12. print(y)
Parsed in 0.002 seconds