Lensmaker

Version 1.0   6 April 2019

Summary

This is a special purpose calculator which computes the optical power of a lens using the Lensmaker's Equation.

Instructions

When the Widget is started, it displays a window with five fields.

Enter data into the four green fields, then press the RETURN or ENTER key. The Widget computes the optical power of the lens and displays it in the fifth field.

Lensmaker's Equation

See The Lensmaker's Equation

n is the refractive index of the lens material.
R1 is the radius of curvature (with sign, see below) of the lens surface closer to the light source.
R2 is the radius of curvature of the lens surface farther from the light source.
d is the thickness of the lens (the distance along the lens axis between the two surface vertices).

R1 > 0 and R2 < 0 indicate convex surfaces.
R1 < 0 and R2 > 0 indicate concave surfaces.

returns the optical power (in diopters) of the lens 1/f, where f is the focal length of the lens.

radii R1, R2 and distance d to be in meters.

1 / f = (n - 1) * (1 / R1 - 1 / R2 + (n - 1) * d / (n * R1 * R2));

License

The Lensmaker is Copyright © 2019 Harry Whitfield (G6AUC).

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Widget Concept, Coding and Documentation

Harry Whitfield (G6AUC)