deleted and moved .py files
This commit is contained in:
parent
42d4ace9d1
commit
d77c63e87a
29
gh.py
29
gh.py
@ -1,29 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on Tue May 13 13:10:50 2014
|
||||
|
||||
@author: RL
|
||||
"""
|
||||
|
||||
# position, velocity (fps)
|
||||
pos = 20000
|
||||
vel = 200
|
||||
|
||||
|
||||
t = 10
|
||||
z = 22060
|
||||
|
||||
|
||||
def predict_dz (vel,t):
|
||||
return vel*t
|
||||
|
||||
|
||||
dz = z - pos
|
||||
|
||||
|
||||
print dz - predict_dz(vel,t)
|
||||
|
||||
|
||||
h = 0.1
|
||||
vel = vel + h * (dz - predict_dz(vel,t)) / t
|
||||
print 'new vel =', vel
|
Loading…
Reference in New Issue
Block a user