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.
 
 
 
 
 
 

83 lines
2.0 KiB

  1. 10 REM HELIACAL RISE AND SET
  2. 11 P1=3.14159265 : R=P1/180
  3. 12 P2=P1/2 : P3=1.5*P1 : P4=2*P1
  4. 13 A8=LOG(10) : R1=.017202
  5. 14 INPUT "EXTINCTION";K
  6. 15 INPUT "LIMITING MAG";M0
  7. 16 INPUT "STAR MAG.";M
  8. 17 INPUT "STAR R.A. (HOURS)";A1
  9. 18 INPUT " DEC. (DEG.) ";D1
  10. 19 INPUT "OBS LATITUDE ";L
  11. 20 A1=A1*15*R : D1=D1*R : L=L*R
  12. 21 S1=SIN(D1) : C1=COS(D1)
  13. 22 S7=SIN(L) : C7=COS(L)
  14. 23 INPUT "RISE OR SET";R$
  15. 24 R$=LEFT$(R$,1)
  16. 25 IF R$="R" THEN F=1
  17. 26 IF R$="S" THEN F=-1
  18. 27 V1=-S7*S1/(C7*C1)
  19. 28 IF V1=0 THEN H1=P1/2
  20. 29 IF V1=0 THEN 32
  21. 30 IF V1<-1 THEN V1=-1
  22. 31 H1=ATN(SQR(1-V1*V1)/V1)
  23. 32 IF V1<0 THEN H1=H1+P1
  24. 33 H1=A1-F*H1
  25. 34 X=-.2*(M0-7.93+K)
  26. 35 B0=79.4*(10^X-1)^2-K*589
  27. 36 D=80+A1*58.13-60*F
  28. 37 D=D+F : G=D*R1-.062
  29. 38 PRINT " TRIAL DAY: ";INT(D)
  30. 39 L0=D*R1-1.406+.033*SIN(G)
  31. 40 A0=ATN(.917*SIN(L0)/COS(L0))
  32. 41 D0=.398*SIN(L0)
  33. 42 D0=ATN(D0/SQR(1-D0*D0))
  34. 43 IF L0<P2 OR L0>P3 THEN 45
  35. 44 A0=A0+P1
  36. 45 IF L0>P3 THEN A0=A0+P4
  37. 46 C0=-S7*SIN(D0)/(C7*COS(D0))
  38. 47 H0=ATN(SQR(1-C0*C0)/C0)
  39. 48 IF C0<0 THEN H0=H0+P1
  40. 49 H0=A0-F*H0
  41. 50 IF F*(H1-H0)>0 THEN 37
  42. 51 N=-100 : T=H1-F/30
  43. 52 T=T+F/30
  44. 53 IF F*(T-H0)>0 THEN 37
  45. 54 N0=N : REM LIMITING MAG.
  46. 55 A9=S7*S1+C7*C1*COS(A1-T)
  47. 56 IF A9<-1 THEN A9=-1
  48. 57 IF A9=0 THEN Z1=P1/2
  49. 58 IF A9=0 THEN 60
  50. 59 Z1=ATN(SQR(1-A9*A9)/A9)
  51. 60 A9=C7*COS(D0)*COS(T-A0)
  52. 61 A9=A9+S7*SIN(D0)
  53. 62 H5=ATN(A9/SQR(1-A9*A9))
  54. 63 A9=C1*COS(D0)*COS(A0-A1)
  55. 64 C2=A9+S1*SIN(D0)
  56. 65 A9=C2-COS(Z1)*SIN(H5)
  57. 66 A9=A9/(SIN(Z1)*COS(H5))
  58. 67 IF A9<-1 THEN A9=-1
  59. 68 T1=ATN(SQR(1-A9*A9)/A9)
  60. 69 A5=.025*EXP(-11*COS(Z1))
  61. 70 A5=1/(COS(Z1)+A5)
  62. 71 L5=H5*(8.2*Z1+12)+2.86*Z1
  63. 72 L5=4.75-T1*Z1/3+L5
  64. 73 B=B0+(K/.2)*(10^L5)
  65. 74 IF L5<2.07 THEN B=B0+K*589
  66. 75 C5=4.466E-09 : K5=1.258E-06
  67. 76 IF B<1649 THEN C5=1.58E-10
  68. 77 IF B<1649 THEN K5=.0126
  69. 78 N=C5*(1+SQR(K5*B))^2
  70. 79 N=-16.57-K*A5-2.5*LOG(N)/A8
  71. 80 IF N>N0 THEN 52
  72. 81 IF N0<M THEN 37
  73. 82 IF D>=366 THEN D=D-365.25
  74. 83 PRINT "DAY OF YEAR: ";INT(D)
  75. 84 PRINT "STAR: ";INT(90.5-Z1/R)
  76. 85 PRINT "SUN: ";INT(H5/R+.5)
  77. 86 END
  78. 87 REM ------------------------
  79. 88 REM APPEARED IN ASTRONOMICAL
  80. 89 REM COMPUTING, SKY & TELE-
  81. 90 REM SCOPE, SEPTEMBER, 1985
  82. 91 REM ------------------------