home *** CD-ROM | disk | FTP | other *** search
/ ticalc.org / ticalc_org_rev_b.iso / archives / 80 / basic / science / lens.80 < prev    next >
Encoding:
Text File  |  2001-07-01  |  764 b   |  28 lines

  1. Lens
  2. -------------------------------------------------
  3. Version: 1.0, 971223
  4. Creator: Daniel Bergman.
  5. Description: The program calculates the focal distance for lenses.
  6.              A is the distance object-lens, B is the distance
  7.              lens-image and F is the focal distance for the lens.
  8.              Input 0 for the value you want to know.
  9. Comments: None.
  10. Known bugs: None.
  11. Size: 85 bytes.
  12.  
  13. For more games and programs, please visit http://ti80.burtrask.net.
  14.  
  15. PROGRAM:LENS
  16. INPUT "A?",A
  17. INPUT "B?",B
  18. INPUT "F?",F
  19. IF F=0
  20. DISP 1/(1/A+1/B
  21. IF A=0
  22. DISP 1/(1/F-1/B
  23. IF B=0
  24. DISP 1/(1/F-1/A
  25.  
  26. --------------------------------------------------------------------
  27. Copyright (C) 1998 by Daniel Bergman & Mattias MorΘn
  28. http://ti80.burtrask.net