Guest User

Untitled

a guest
Jan 17th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #v0=state[1]
  2. #a=-k*state[0]
  3. #g1=state[1]
  4. #g2=(L0+state[0])*state[3]*state[3]-(k/m)*state[0]+g*cos(state[2])
  5. #g3=state[3]
  6. #g4=-1/(state[0]+L0)*g*sin(state[2])+2*state[1]*state[3]
  7.  
  8. rdot = state[0] #Vr
  9. phidot = state[1] #Vphi
  10. vrdot = ((-state[2] * g) - (state[3] * r * sqrt(phidot)))/(state[3] + state[2])
  11. vphidot = (2*rdot * phidot)/r
  12. return array([rdot,phidot,vrdot,vphidot])
Add Comment
Please, Sign In to add comment