Friedly

ORBITS

Feb 19th, 2022 (edited)
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. Lbl ST
  2. ClrHome
  3. Output(1,1,"1 Kerbol
  4. Output(2,1,"2 Moho
  5. Output(3,1,"3 Eve
  6. Output(4,1,"4 Kerbin
  7. Output(5,1,"5 Duna
  8. Output(6,1,"6 Dres
  9. Output(7,1,"7 Jool
  10. Output(8,1,"8 Eeloo 9 Quit
  11. Repeat Ans
  12. getKey
  13. End
  14. If Ans=92:Goto SU
  15. If Ans=93:Goto MO
  16. If Ans=94:Goto EV
  17. If Ans=82:Goto KE
  18. If Ans=83:Goto DU
  19. If Ans=84:Goto DR
  20. If Ans=72:Goto JO
  21. If Ans=73:Goto EE
  22. If Ans=74:Goto QU
  23. Goto ST
  24.  
  25. Lbl SU
  26. 261600000->R
  27. 1.7565459*10^(28)->M
  28. 1.1723328*10^(18)->G
  29. Goto 01
  30.  
  31. Lbl MO
  32. 250000->R
  33. 2.5263314*10^(21)->M
  34. 1.6860938*10^(11)->G
  35. Goto 01
  36.  
  37. Lbl EV
  38. ClrHome
  39. Output(2,3,"1 Eve
  40. Output(3,5,"2 Gilly
  41. Repeat Ans
  42. getKey
  43. End
  44. If Ans=92:Goto E1
  45. If Ans=93:Goto G2
  46. Goto EV
  47.  
  48. Lbl E1
  49. 700000->R
  50. 1.2243980*10^(23)->M
  51. 8.1717302*10^(12)->G
  52. Goto 01
  53.  
  54. Lbl G2
  55. 13000->R
  56. 1.2420363*10^(17)->M
  57. 8.2894498*10^(6)->G
  58. Goto 01
  59.  
  60. Lbl KE
  61. ClrHome
  62. Output(2,3,"1 Kerbin
  63. Output(3,5,"2 Mun
  64. Output(4,5,"3 Min\mus
  65. Repeat Ans
  66. getKey
  67. End
  68. If Ans=92:Goto K1
  69. If Ans=93:Goto M2
  70. If Ans=94:Goto M3
  71. Goto KE
  72.  
  73. Lbl K1
  74. 600000->R
  75. 5.2915158*10^(22)->M
  76. 3.5316000*10^(12)->G
  77. Goto 01
  78.  
  79. Lbl M2
  80. 200000->R
  81. 9.7599066*10^(20)->M
  82. 6.5138398*10^(10)->G
  83. Goto 01
  84.  
  85. Lbl M3
  86. 60000->R
  87. 2.6457580*10^(19)->M
  88. 1.7658000*10^(9)->G
  89. Goto 01
  90.  
  91. Lbl DU
  92. ClrHome
  93. Output(2,3,"1 Duna
  94. Output(3,5,"2 Ike
  95. Repeat Ans
  96. getKey
  97. End
  98. If Ans=92:Goto D1
  99. If Ans=93:Goto I2
  100. Goto DU
  101.  
  102. Lbl D1
  103. 320000->R
  104. 4.5154270*10^(21)->M
  105. 3.0136321*10^(11)->G
  106. Goto 01
  107.  
  108. Lbl I2
  109. 130000->R
  110. 2.7821615*10^(20)->M
  111. 1.8568369*10^(10)->G
  112. Goto 01
  113.  
  114. Lbl DR
  115. 138000->R
  116. 3.2190937*10^(20)->M
  117. 2.1484489*10^(10)->G
  118. Goto 01
  119.  
  120. Lbl JO
  121. ClrHome
  122. Output(2,3,"1 Jool
  123. Output(3,5,"2 Laythe
  124. Output(4,5,"3 Vall
  125. Output(5,5,"4 Tylo
  126. Output(6,5,"5 Bop
  127. Output(7,5,"6 Pol
  128. Repeat Ans
  129. getKey
  130. End
  131. If Ans=92:Goto J1
  132. If Ans=93:Goto \L2
  133. If Ans=94:Goto V3
  134. If Ans=82:Goto T4
  135. If Ans=83:Goto B5
  136. If Ans=84:Goto P6
  137. Goto JO
  138.  
  139. Lbl J1
  140. 6000000->R
  141. 4.2332127*10^(24)->M
  142. 2.8252800*10^(14)->G
  143. Goto 01
  144.  
  145. Lbl \L2
  146. 500000->R
  147. 2.9397311*10^(22)->M
  148. 1.9620000*10^(12)->G
  149. Goto 01
  150.  
  151. Lbl V3
  152. 300000->R
  153. 3.1087655*10^(21)->M
  154. 2.0748150*10^(11)->G
  155. Goto 01
  156.  
  157. Lbl T4
  158. 600000->R
  159. 4.2332127*10^(22)->M
  160. 2.8252800*10^(12)->G
  161. Goto 01
  162.  
  163. Lbl B5
  164. 65000->R
  165. 3.7261090*10^(19)->M
  166. 2.4868349*10^(9)->G
  167. Goto 01
  168.  
  169. Lbl P6
  170. 44000->R
  171. 1.0813507*10^(19)->M
  172. 7.2170208*10^(8)->G
  173. Goto 01
  174.  
  175. Lbl EE
  176. 210000->R
  177. 1.1149224*10^(21)->M
  178. 7.4410815*10^(10)->G
  179. Goto 01
  180.  
  181. Lbl QU
  182. ClrHome
  183. Stop
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193. Lbl 01
  194. ClrHome
  195. Disp "From orbit
  196. Prompt F
  197. F+R->F
  198. Disp "To orbit
  199. Prompt T
  200. T+R->T
  201.  
  202. If F>T
  203. Then
  204. F->Z:T->F:Z->T
  205. End
  206.  
  207. sqrt(G*(2/F-2/(T+F))->V
  208. sqrt(G*(2/T-2/(T+F))->W
  209.  
  210. abs(V-sqrt(G/F)->X
  211. abs(W-sqrt(G/T)->Y
  212.  
  213. ClrHome
  214. Disp " Peri / Apo
  215. Disp "Velocity
  216. Disp round(V,1
  217. Disp round(W,1
  218. Disp "\Delta-V
  219. Disp round(X,1
  220. Disp round(Y,1
  221. Output(8,1,"(Enter)
  222. Pause
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229. 2*pi*sqrt((((T+F)/2)^^3)/G->O
  230.  
  231. sqrt(T*F)->B
  232. (T-F)/(T+F)->E
  233. (2*T*F)/(T+F)->L
  234. sqrt(L*G)->H
  235. ((2*T*F)/H)*(sin⁻¹(R/B)+(E*R/sqrt(T*F)))->D
  236.  
  237. ClrHome
  238. Disp "Orbital Period
  239. Disp round(O,1
  240. Disp "Darkness time
  241. Disp round(D,1
  242. Output(6,1,"(all in seconds)
  243. Output(8,1,"(Enter)
  244. Pause
  245.  
  246.  
  247. Goto ST
  248.  
  249.  
  250.  
  251.  
Add Comment
Please, Sign In to add comment