Compute the optics of the 'thin'-lens-equation.
Project description
This python-packag is about the thin-lens-equation:
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.image_distance_for_object_distance(
object_distance=100.0,
focal_length=f,
)
assert b > f
print(b)
gives:
1.0101010101010102
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thin_lens-0.0.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for thin_lens-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59152361363d24fe9c05a21821d21ea8be15bef2763bb40849aaccfe6bec965 |
|
MD5 | 0fdb571948e361cd5cb5b37e3a0145b4 |
|
BLAKE2b-256 | eed73bd8e93c3c93842912b902c902f20da362ec5541fb7f2d3627a6a8d33ce2 |