Details and Options
The available mirrors are convex and concave.
ResourceFunction["MirrorManipulate"] follows the sign convention for spherical mirrors from Hecht, Optics, Pearson, 2015:
Object distance | (+) real object | (-) virtual object |
Focal length | (+) converging mirror | (-) diverging mirror |
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["MirrorManipulate"] uses the Gaussian mirror formula
to calculate the image distance
(si). This equation is only valid for the paraxial region of the mirror.
The arrow in the rays represents the direction of light travel 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["MirrorManipulate"][
assoc], the
Association assoc can contain the following elements:
"Diameter" | 4 | mirror (half) diameter |
"ObjectSize" | 0.5 | object initial size |
"FocalLength" | "Diameter" | mirror initial focal length |
"ObjectDistance" | "FocalLength" | object initial position |
"ObjectDistance" can be a positive number or quantity of length.
"ObjectSize" can be a number 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["MirrorManipulate"][] takes the options of
Graphics and the following:
"RayColor" | Automatic | specify the colors of the rays |
"MirrorColor" | Automatic | specify the color of the mirror |
"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.