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

Add "per-mol" conversion #45

Closed
vrtulka23 opened this issue Jan 17, 2024 · 1 comment
Closed

Add "per-mol" conversion #45

vrtulka23 opened this issue Jan 17, 2024 · 1 comment

Comments

@vrtulka23
Copy link
Owner

Something like this should be possible Quantity(40.102833,'Da').to('Da/mol').
Simply multiplying the unit mass by the Avogadro's constant.

@vrtulka23
Copy link
Owner Author

vrtulka23 commented Jun 1, 2024

Something similar can be done now using Avogadro's number [N_0], or Avogadro's constant [N_A] (with dimensions of [N_0]/mol).

>>> (Quantity(40.102833,'Da') * Unit('[N_A]')).to('Da/mol')
Quantity(2.415e+25 Da*mol-1)

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

1 participant