ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

68 lines
1.8 KiB

  1. 10 REM METEOR SHOWERS
  2. 12 R1=3.1415927/180: DIM M$(12)
  3. 14 DIM N$(9),S0(9),S1(9),J5(9)
  4. 16 FOR I=1 TO 12: READ M$(I): NEXT
  5. 18 DATA JAN,FEB,MAR,APR,MAY,JUN
  6. 20 DATA JUL,AUG,SEP,OCT,NOV,DEC
  7. 22 FOR I=1 TO 9
  8. 24 READ N$(I),S0(I),S1(I),J5(I)
  9. 26 NEXT I
  10. 28 INPUT "YEAR";Y: T5=(Y-1950)/100
  11. 30 FOR I=1 TO 9
  12. 32 IF ABS(T5)<1.5 THEN 36
  13. 34 IF I=1 OR I=4 OR I=9 THEN 70
  14. 36 S=S0(I)+S1(I)*T5
  15. 38 S=S+1.39663*T5+.0003*T5*T5
  16. 40 S=S-360*INT(S/360)
  17. 42 J=J5(I)+36525.636*T5+S1(I)*T5
  18. 44 FOR K=1 TO 2
  19. 46 T=(J+2433000-2415020)/36525
  20. 48 L=279.7+36000.769*T+.0003*T*T
  21. 50 M=358.48+35999.05*T-.0002*T*T
  22. 52 S5=L+(1.92-.005*T)*SIN(M*R1)
  23. 54 S5=S5+.02*SIN(2*M*R1)
  24. 56 S5=S5-360*INT(S5/360)
  25. 58 J=J-(S5-S)/(.986+.033*COS(M*R1))
  26. 60 NEXT K
  27. 62 F=J-INT(J): J=INT(J)+2433000
  28. 64 GOSUB 96
  29. 66 PRINT N$(I);TAB(15);M$(M);
  30. 68 PRINT USING "###.#";D
  31. 70 NEXT I
  32. 72 END
  33. 74 REM SHOWER DATA
  34. 76 DATA "QU'DNTDS",282.9,-0.4,285.3
  35. 78 DATA "LYRIDS ",31.7,0.06,393.9
  36. 80 DATA "ETA AQR ",44.0,0.3,406.6
  37. 82 DATA "DLT AQR ",125.0,-1.0,491.2
  38. 84 DATA "PERSEIDS",139.2,0.03,506.0
  39. 86 DATA "ORIONIDS",207.7,0.4,576.2
  40. 88 DATA "TAURIDS ",220.0,0.44,588.5
  41. 90 DATA "LEONIDS ",234.3,1.5,602.7
  42. 92 DATA "GEMINIDS",261.4,0,629.5
  43. 94 REM
  44. 96 REM JD --> CALENDAR
  45. 98 G=1: IF J<2299161 THEN G=0
  46. 100 F=F+.5: IF F<1 THEN 104
  47. 102 F=F-1: J=J+1
  48. 104 IF G=1 THEN 108
  49. 106 A=J: GOTO 112
  50. 108 A1=INT((J/36524.25)-51.12264)
  51. 110 A=J+1+A1-INT(A1/4)
  52. 112 B=A+1524
  53. 114 C=INT((B/365.25)-.3343)
  54. 116 D=INT(365.25*C)
  55. 118 E=INT((B-D)/30.61)
  56. 120 D=B-D-INT(30.61*E)+F
  57. 122 M=E-1: Y=C-4716
  58. 124 IF E>13.5 THEN M=M-12
  59. 126 IF M<2.5 THEN Y=Y+1
  60. 128 RETURN
  61. 200 REM *******************************
  62. 210 REM FOR ANY GIVEN YEAR, THIS
  63. 220 REM PROGRAM LISTS THE MAJOR METEOR
  64. 230 REM SHOWERS AND THE UT DATES OF
  65. 240 REM MAXIMUM ACTIVITY. FROM SKY
  66. 250 REM & TELESCOPE, AUG '89, P. 195.
  67. 260 REM *******************************