Contributor: Stas Fainer

This is a simulation of transverse and longitudinal magnification for an ideal lens with focal length \(f\). The transverse (also called linear) and the longitudinal magnification is \(M_T=1-\frac{u}{f}\) and \(M_L=\frac{dv}{du}\) respectively, where \(u\) and \(v\) is the distance of the object and the image from our ideal lens, respectively. Also, for an ideal lens \(M_L=-(M_T)^2\)