fork(1) download
  1. import math
  2.  
  3. def daneluk_angles_v(epsilon):
  4. # 1/2 (sin(beta2) - sin(beta1)) = m
  5. # m = 0.01 ... 0.5
  6. v_angles_list = []
  7. m = epsilon
  8. beta1 = 0.0
  9. while beta1 <= (math.pi/2.0):
  10. sin_b2 = 2 * m + math.sin(beta1)
  11.  
  12. if sin_b2 > 1.0: break
  13. beta2 = math.asin(sin_b2)
  14. v_angles_list.append(math.degrees(beta2))
  15. beta1 = beta2
  16.  
  17. return v_angles_list
  18.  
  19.  
  20. print(daneluk_angles_v(0.01))
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
[1.1459919983885924, 2.292442775955887, 3.439812767515196, 4.588565735785835, 5.739170477266787, 6.892102579346381, 8.047846247311517, 9.2068962213459, 10.36975980547742, 11.536959032815487, 12.709032994395436, 13.886540362628988, 15.07006214488883, 16.260204708311957, 17.457603123722095, 18.66292488494248, 19.876874070078834, 21.100196024093023, 22.333682657805305, 23.57817847820184, 24.834587489701587, 26.103881137339908, 27.387107502653915, 28.685402014118935, 30.000000000000018, 31.33225149759428, 32.68363884625796, 34.055797742567925, 35.45054263917543, 36.86989764584405, 38.31613447366577, 39.791819499557256, 41.299872791705894, 42.843643043596366, 44.42700400080574, 46.054480437691204, 47.73141557042757, 49.46419788868348, 51.26057540214439, 53.13010235415603, 55.08479375255587, 57.14011962111095, 59.31658289102425, 61.642363423672094, 64.15806723683295, 66.92608193436911, 70.05155641119741, 73.73979529168817, 78.5216590454666]