[url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=704.0]Equation for thin lens[/url]: \frac{1}{p}+\frac{1}{q}=\frac{1}{f} where [b]p[/b] is the distance between object and lens, [b]q[/b] is the distance between image and lens, and [b]f[/b] is the focus length of lens.
blue linestrace of light path
green linesbackward tracing for virtual image
small red linesdistances f and 2*f away from the center of lens.
1st textfieldcurrent mouse position (x , y) relative to lens
white vertical linereference line (you can click and drag it left/right)
yellow linelight path for paraxial ray assumption(mirror only)


Parameters can be changed :
  1. Select Lens for thin lens effect(default)

  2. select mirror for concave/convex mirror effect

  3. default: assume paraxial ray (you can turn it off)

  4. press toggle button +/- to change between converging/diverginglens

  5. Move the object

  6. click near tip of the object, and drag it to where you like it and release the mouse button.

  7. Move the lens/mirror:

  8. click near center of the lens, and drag it to left or right.

    if click with left mouse button, only lens will move.

    if click with right mouse button, object will move with lens.

  9. Change the focus length of the lens/mirror

  10. click near the top/bottom of the lens/mirrir, then drag the mouse . Try it!

  11. if you adjust the size of window, parameters reset to default values.

  12. you can open more then one window to compare different cases, close the created window to Quit. Pressto open another Lens window!

  13. you can change the following parameters inside the "textfield".
    Parametersdistancedefaults
    Pobject20.
    qimage20.
    ffocus10.
    m=-q/pmagnification1.

    You are welcomed to check out another related simulation :[url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=704.0]Relation 1/p+1/q=1/f[/url] and [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=219.0]What will happened if part of the light path were blocked[/url]


    [b]You are welcomed to check out a wonderful [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1395.0]thin Len flash animation[/url] created by a teacher in Taiwan [/b]


    http://www.youtube.com/watch?v=E2EmowDS0U4

    http://www.youtube.com/watch?v=HIZiiqGcwCc

    More advanced topic

    http://www.youtube.com/watch?v=brTzn9VoGks

    http://www.youtube.com/watch?v=PlG6ps3i9bo


    [img]http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=48.0;attach=3831;image[/img]