adelpopelkova / lenscalc

a lens calculator
http://adelpopelkova.pythonanywhere.com
MIT License
1 stars 1 forks source link

Incorrect result #20

Open adelpopelkova opened 1 year ago

adelpopelkova commented 1 year ago

This combination doesn't raise a ValueError, however returns an incorrect result.

----------------------------- Captured stdout call -----------------------------
D: 0.02223679991, 0.0312500000000000
n1: 1.0003, -0.0312500000000000
nL: 1.5, 0.468750000000000
n2: 1.0003, 0
CT: 3, -40.0000000000000
EFL: 44.9704995344359, 32.0000000000000

Originally posted by @adelpopelkova in https://github.com/adelpopelkova/lenscalc/issues/19#issuecomment-1670225186

adelpopelkova commented 1 year ago

I have a feeling that this has something to do with #14

adelpopelkova commented 1 year ago

It seems that this issue was already present in https://github.com/adelpopelkova/lenscalc/pull/15#issuecomment-846111480 and https://github.com/adelpopelkova/lenscalc/pull/15#issuecomment-846137318