Skip to content

cherenkov-plenoscope/thin_lens

Repository files navigation

The optics of the thin-lens-equation

TestStatus PyPiStatus BlackStyle BlackPackStyle LicenseBadge

This python-packag is about the thin-lens-equation:

ImgThinLens

 1     1     1
--- = --- + ---
 f     g     b

The focal-length of the imaging-optics: f. The image-distance an image has from the aperture's principal plane: b. The object-distance an object has from the aperture's principal plane: g. The screen-distance a screen has from the aperture's principal plane: d.

Note that the screen-distance d is not part of the thin-lens-equation. In case d != b the image on the screen is 'out of focus', thus blurred. Only when d == b the image on the screen is 'in focus', thus sharp.

Install

pip install thin_lens

Usage

import thin_lens

f = 1.0

b = thin_lens.compute_image_distance_for_object_distance(
    object_distance=100.0,
    focal_length=f,
)

assert b > f

print(b)

gives:

1.0101010101010102