Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- V1 = [0,2.08914,2.09140,1.87594,2.01939,2.2348,2.10261,3.06490,3.02176,3.15124,4.01823,3.82458]
- d = [0,0.20,0.20,0.20,0.20,0.20,0.20,0.4,0.4,0.4,0.6,0.6,0.6]
- a = []
- total = 0
- calc = 1
- for i in range(0,len(V1)):
- for j in range(i+1,len(V1)):
- if (d[i] != d[j]):
- calc += 1
- #temp = (V1[j]**2 - V1[i]**2) / (2*(d[j]-d[i]))
- #print(V1[i],"Compared with :",V1[j])
- #print(temp,"\n")
- x = 2*(d[j]-d[i])
- y = V1[j]**2
- #x = (2*(d[j]-d[i]))/(V1[i] + V1[j])
- #y = d[j]-d[i]
- print(""+str(x)+","+str(y)+"")
- #total += temp
- #print(total/calc)
- #print(calc)
- ##time = []
- ##
- ##for i in range(len(V3)):
- ## temp = 2*(0.6) / V3[i]
- ## #print(temp)
- ## time.append(temp)
- ##
- ##for i in range(len(time)):
- ## print(time[i])
- ###print(time)
Advertisement
Add Comment
Please, Sign In to add comment