Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Unit Dioptre #1359

Open
ValentinTempel opened this issue Jan 14, 2025 · 3 comments
Open

Feature Request: Unit Dioptre #1359

ValentinTempel opened this issue Jan 14, 2025 · 3 comments

Comments

@ValentinTempel
Copy link

Is it possible to add the unit Dioptre (or Diopter) to express the optical power of a lens?

I would suggest to put it in "private static $nonprefixunits" in casstring.units.class.php
(Entries in this array are supported units which are used without any prefix.)
['dpt', '1/m', 'dpt', 'Dioptre'],

Or is there any reason why it was not put in?

@sangwinc
Copy link
Member

That sounds like a sensible suggestion. I just checked, and dpt does not appear to be a Maxima atom yet, so there are no obvious namespace clashes.

@aharjula is there any reason not to add in Dioptre?

Chris

@aharjula
Copy link
Member

@sangwinc There is no reason that I know. "deci-point" might collide if someone were to add "pt" and by mistake add that to the prefixed ones, but why would one do that?

@sangwinc
Copy link
Member

Thanks @aharjula, I'll add that in then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants