logancberrypie

Point plotter

Feb 19th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1.  
  2.  
  3.  
  4. V1 = [0,2.08914,2.09140,1.87594,2.01939,2.2348,2.10261,3.06490,3.02176,3.15124,4.01823,3.82458]
  5. 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]
  6. a = []
  7. total = 0
  8. calc = 1
  9.  
  10. for i in range(0,len(V1)):
  11. for j in range(i+1,len(V1)):
  12. if (d[i] != d[j]):
  13. calc += 1
  14. #temp = (V1[j]**2 - V1[i]**2) / (2*(d[j]-d[i]))
  15. #print(V1[i],"Compared with :",V1[j])
  16. #print(temp,"\n")
  17. x = 2*(d[j]-d[i])
  18. y = V1[j]**2
  19. #x = (2*(d[j]-d[i]))/(V1[i] + V1[j])
  20. #y = d[j]-d[i]
  21. print(""+str(x)+","+str(y)+"")
  22.  
  23.  
  24.  
  25. #total += temp
  26.  
  27. #print(total/calc)
  28. #print(calc)
  29.  
  30. ##time = []
  31. ##
  32. ##for i in range(len(V3)):
  33. ## temp = 2*(0.6) / V3[i]
  34. ## #print(temp)
  35. ## time.append(temp)
  36. ##
  37. ##for i in range(len(time)):
  38. ## print(time[i])
  39. ###print(time)
Advertisement
Add Comment
Please, Sign In to add comment