This simulation allows you to play with the thin lens formula: f-1=O-1+I-1 where f is the focal length, O is the Object distance to the lens, and I is the Image distance to the lens. Note that you can drag the lenses around by clicking inside the lens area, and you can drag the object around by clicking on the arrow (and you can change the object height as well). You can also change the focal length of the lens by clicking on the focal point (labelled) and dragging it around, and you can raise and lower the baseline (the horizontal line through the center of the canvas) via clicking and dragging.
(Drew Baden December 2013)

Canvas:  width=???  height=???
New:   New lens is