Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- velocitys = [0,1.7155,2.426,2.97,3.43]
- distances = [0,0.15,0.3,0.45,0.6]
- mean = 0
- total = 0
- for i in range(0,4):
- for j in range(i,5):
- if (distances[i]!=distances[j]):
- total += 1
- print(i,"compared to",j)
- temp = (velocitys[j]**2 - velocitys[i]**2)/ (2*(distances[j]-distances[i]))
- mean += temp
- print(temp)
- print("from ",total,"results the mean of graity is ",mean/total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement