From 0faf23d4bf4bdeb0ff3515caa1b62efeacaa020b Mon Sep 17 00:00:00 2001 From: frustaci Date: Tue, 6 Oct 2020 18:23:32 -0300 Subject: [PATCH] Fixed lens maker eq --- lensGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lensGenerator.py b/lensGenerator.py index 059b728..7847205 100644 --- a/lensGenerator.py +++ b/lensGenerator.py @@ -314,7 +314,7 @@ def draw_focal_length(layout, context): # lensmaker's equation R2 = -R2 - ifl = (ior-1) * ((1/R1) - (1/R2) + (((ior-1)*thickness) / (ior * R1 + R2))) + ifl = (ior-1) * ((1/R1) - (1/R2) + (((ior-1)*thickness) / (ior * R1 * R2))) fl = 1 / ifl layout.label(text="Focal Length: " + str(round(fl * 1000, 3)) + " mm")