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.
 
 
 
 
 
 

95 lines
2.1 KiB

  1. 100 REM TRACK A COMET
  2. 105 REM
  3. 110 GOSUB 485
  4. 115 INPUT "NAME OF COMET";N$
  5. 120 INPUT "MONTH (3 LETTERS)";M$
  6. 125 INPUT "HOW MANY DATES (2-5)";L
  7. 130 PRINT "DAY, RA(H.M), DE(D.M):"
  8. 135 FOR I=1 TO L
  9. 140 INPUT " ";C(I,1),C(I,2),C(I,3)
  10. 145 D=C(I,2): GOSUB 430: C(I,2)=D
  11. 150 D=C(I,3): GOSUB 430: C(I,3)=D
  12. 155 NEXT I
  13. 160 INPUT "STARTING DATE";W
  14. 165 PRINT: PRINT N$
  15. 170 FOR N4=1 TO 30
  16. 175 IF W>C(L,1)+18 THEN 545
  17. 180 PRINT: PRINT M$;W;TAB(13);
  18. 185 PRINT " RA(H.M) DE(D.M)"
  19. 190 X=W-2
  20. 195 FOR J=1 TO 3
  21. 200 X=X+1: Y=0: Z=0
  22. 205 FOR N=1 TO L
  23. 210 S=1
  24. 215 FOR K=1 TO L
  25. 220 IF K=N THEN 230
  26. 225 S=S*(X-C(K,1))/(C(N,1)-C(K,1))
  27. 230 NEXT K
  28. 235 Y=Y+S*C(N,2): Z=Z+S*C(N,3)
  29. 240 NEXT N
  30. 245 Q=M1+N1*SIN(Y*15*K9)*TAN(Z*K9)
  31. 250 Q=Y+Z3*Q
  32. 255 R=Z+15*Z3*N1*COS(Y*15*K9)
  33. 260 IF J<>2 THEN 305
  34. 265 P=COS(R*K9)
  35. 270 D=Y: GOSUB 460 : Y1=D
  36. 275 D=Z: GOSUB 460 : Z1=D
  37. 280 D=Q: GOSUB 460 : Q1=D
  38. 285 D=R: GOSUB 460 : R1=D
  39. 290 PRINT Y0$;Y1;TAB(26);Z1
  40. 295 PRINT Y1$;Q1;TAB(26);R1
  41. 300 GOTO 315
  42. 305 IF J<>1 THEN 315
  43. 310 K1=Q: L1=R
  44. 315 NEXT J
  45. 320 Y=R-L1: REM DEGREES
  46. 325 X=(Q-K1)*P*15: REM DEGREES
  47. 330 R=SQR(X*X+Y*Y)/2: REM DEG/DAY
  48. 335 R=R*2.5
  49. 340 PRINT " ARCSEC/MIN ";R
  50. 345 T=ATN(X/Y)/K9
  51. 350 IF Y<0 THEN T=T+180
  52. 355 IF T<0 THEN T=T+360
  53. 360 T=INT(T+0.5)
  54. 365 PRINT " POS ANGLE ";T
  55. 370 Z6=R*U/143.24: Z=Z6: J=0
  56. 375 Z=Z*2
  57. 380 IF Z>8000 THEN 390
  58. 385 J=J+1: IF J<=30 THEN 375
  59. 390 J=J-5: Z=0.001*Z
  60. 395 PRINT " STEPS ";Z6;"HZ"
  61. 400 PRINT " RATIO ";J
  62. 405 PRINT " FREQ ";Z;" KHZ"
  63. 410 W=W+1
  64. 415 NEXT N4
  65. 420 GOTO 545
  66. 425 REM
  67. 430 REM H.M --> HOURS
  68. 435 S1=SGN(D): D=ABS(D)
  69. 440 D1=INT(D): D2=D-D1
  70. 445 D=S1*(D1+D2/0.6)
  71. 450 RETURN
  72. 455 REM
  73. 460 REM HOURS --> H.M
  74. 465 S1=SGN(D): D=ABS(D)
  75. 470 D1=INT(D): D2=D-D1
  76. 475 D=S1*(D1+D2*0.6)
  77. 480 RETURN
  78. 485 REM CONSTANTS
  79. 490 DIM C(5,3)
  80. 495 U=178.27: REM FOCAL LENGTH
  81. 500 Y0=1950: REM INPUT EQUINOX
  82. 505 Y1=1987: REM CURRENT EQUINOX
  83. 510 Z3=Y1-Y0
  84. 515 Y0$=" ("+STR$(Y0)+".0) "
  85. 520 Y1$=" ("+STR$(Y1)+".0) "
  86. 525 M1=0.0008538: N1=0.0003711
  87. 530 P1=3.1415926536: K9=P1/180
  88. 535 RETURN
  89. 536 REM ************************
  90. 537 REM FROM "SKY & TELESCOPE"
  91. 538 REM ASTRONOMICAL COMPUTING
  92. 539 REM FEB. 1987, PAGE 196
  93. 540 REM ************************
  94. 545 END