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.
 
 
 
 
 
 

36 lines
878 B

  1. 10 REM APLANATIC DOUBLET DESIGN
  2. 12 REM
  3. 14 INPUT "FRONT INDEXES";A,B,C
  4. 16 INPUT "REAR INDEXES ";D,E,F
  5. 18 INPUT "FOCAL LENGTH ";FL
  6. 20 PRINT
  7. 22 G=B/(B-1): H=E/(E-1)
  8. 24 I=(B-1)/(C-A): J=(E-1)/(F-D)
  9. 26 K=I^2: L=I^3: M=J^2: N=J^3
  10. 28 O=(3-2/G)*I: P=(3-2/H)*J
  11. 30 Q=(3*G-1)*K
  12. 32 R=(8-4/H)*I*J-(3*H-1)*M
  13. 34 S=(G^2)*L-(5-2/H)*K*J
  14. 36 T=(4*H-1)*I*M-(H^2)*N
  15. 38 U=(2-1/G)*I: V=(2-1/H)*J
  16. 40 W=G*K-(3-1/H)*I*J+H*M
  17. 42 X=(U^2)*P-(V^2)*O
  18. 44 Y=2*U*W*P-(V^2)*Q+U*V*R
  19. 46 Z=(W^2)*P-(V^2)*(S+T)+V*W*R
  20. 48 A1=(Y-SQR(Y^2-4*X*Z))/(2*X)
  21. 50 A2=(U*A1)/V-W/V
  22. 52 R1=((I-J)/A1)*FL
  23. 54 R2=((I-J)/(A1-(I*(G-1))))*FL
  24. 56 R3=((I-J)/A2)*FL
  25. 58 R4=((I-J)/(A2+(J*(H-1))))*FL
  26. 60 PRINT "R1 = ";R1
  27. 62 PRINT "R2 = ";R2
  28. 64 PRINT "R3 = ";R3
  29. 66 PRINT "R4 = ";R4
  30. 68 END
  31. 70 REM ------------------------
  32. 80 REM APPEARED IN ASTRONOMICAL
  33. 90 REM COMPUTING, SKY & TELE-
  34. 92 REM SCOPE, NOVEMBER, 1984
  35. 94 REM ------------------------