Details and Options
The available thin lenses are biconvex and biconcave.
ResourceFunction["LensManipulate"] follows the sign convention for thin lenses from Hecht, Optics, Pearson, 2015:
Object distance | (+) real object | (-) virtual object |
Focal length | (+) converging lens | (-) diverging lens |
Image distance | (+) real image | (-) virtual image |
Object size | (+) erect object | (-) inverted object |
Image size | (+) erect image | (-) inverted image |
Magnification (M) | (+) erect image | (-) inverted image |
The linear magnification factor of the system is given by the equation
, defined as the ratio of the size of the image compared to the size of the object.
ResourceFunction["LensManipulate"] uses the Gaussian lens formula
to calculate the image distance
si.
The arrow in the middle of the rays represents the direction of light and dotted lines the projection of the rays.
Real images and virtual images are represented by a thick-line arrow and a dotted-line arrow, respectively.
In
ResourceFunction["LensManipulate"][
assoc], the
Association assoc can contain the following elements:
"Diameter" | 4 | lens (half) diameter |
"ObjectSize" | 0.5 | object initial size |
"FocalLength" | "Diameter" | lens initial focal length |
"ObjectDistance" | "FocalLength" | object initial position |
"ObjectDistance" can be a positive number or quantity of length.
"ObjectSize" can be a number or quantity of length in the range[-1,1].
"FocalLength" can be a positive or negative number or quantity of length.
Quantity inputs should have units of length. Results and values in sliders will be shown in the most common unit among the inputs.
ResourceFunction["LensManipulate"][] takes the options of
Graphics and the following:
"RayColor" | Automatic | specify the colors of the rays |
"LensColor" | Automatic | specify the color of the lens |
"ArrowColor" | Automatic | specify the colors of the object and image arrows |
"ShowEquations" | True | set the equations in the graphics object |
"ObjectDistanceRange" | Automatic | specify the range of "ObjectDistance" |
"ObjectSizeRange" | Automatic | specify the range of "ObjectSize" |
"FocalLengthRange" | Automatic | specify the range of "FocalLength" |
The
copy values button copies the current values of
"ObjectDistance",
"FocalLength",
"ImageDistance" and
"Magnification" to the clipboard as an
Association.