Variables
, focal length
, distance from object to mirror
, distance from object to mirror
, magnification
, height of the image
, height of the objectThe applet works by using the mirror equation and the magnification equation to calculate the image. It uses the mirror equation to solve for the image's position by using the object's position and the focal length of the mirror/lens.
    After the applet finds the position of the image, the height of the image can be calculated with the magnification equation.