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.
 
 
 
 
 
 

51 lines
1.6 KiB

  1. 10 ' A Camera's Efficiency for Meteors
  2. 20 '
  3. 30 RD=180/3.14159
  4. 35 C=4*RD^2
  5. 40 L=0: W=0: Q=0
  6. 50 K=0.003667: ' Constant
  7. 60 N=1: ' Exponent for focal length
  8. 70 X=0: ' Closed/open ratio
  9. 80 INPUT "F/ratio ";FR
  10. 90 INPUT "Focal length (mm)"; FL
  11. 100 AP=FL/FR: ' Aperture in mm
  12. 110 PRINT "Select film/image format:"
  13. 120 PRINT " (1) 35-mm"
  14. 130 PRINT " (2) 120 square"
  15. 140 PRINT " (3) 4 x 5"
  16. 150 PRINT " (4) 8 x 10"
  17. 160 PRINT " (5) Special area"
  18. 170 PRINT " (6) Fisheye (180 deg)"
  19. 180 INPUT "Selection";Q
  20. 190 IF Q<1 OR Q>6 THEN GOTO 180
  21. 200 ON Q GOTO 210,220,230,240,250,260
  22. 210 L=36: W=24: GOTO 270
  23. 220 L=55: W=55: GOTO 270
  24. 230 L=119: W=94: GOTO 270
  25. 240 L=240: W=190: GOTO 270
  26. 250 INPUT "Sky area (sq deg)";S
  27. 255 GOTO 310
  28. 260 S=20626: GOTO 290
  29. 265 '
  30. 266 ' Compute sky area covered
  31. 267 ' by a rectangular film frame
  32. 270 S=C*ATN(0.5*L/FL)*ATN(0.5*W/FL)
  33. 280 IF S>50 THEN S=INT(S+0.5)
  34. 290 PRINT "Sky area (sq deg): ";S
  35. 300 '
  36. 310 ' Now, evaluate McKinley formula
  37. 320 E=K*AP^2*S/((1+X)*FL^N)
  38. 330 PRINT USING "Efficiency ####.#";E
  39. 340 PRINT
  40. 350 INPUT "Another (y or n)";Q$
  41. 360 IF Q$<>"n" THEN GOTO 40
  42. 370 END
  43. 380 '
  44. 390 ' Written by Roger W. Sinnott, this program calculates the relative
  45. 400 ' efficiency of any given camera lens and film format for capturing
  46. 410 ' meteors. The efficiency is expressed as a number that ranges from
  47. 420 ' less than 10 for poor combinations (such as a 35-mm camera with a
  48. 430 ' long telephoto lens) to more than 1,000 for highly specialized systems
  49. 440 ' such as the Baker Super-Schmidt. The program was described in
  50. 450 ' Sky & Telescope for February 1994, page 85.