Ask Your Question

How can I get the the Avogadro constant?

asked 2012-01-26 20:24:00 +0200

Mebus gravatar image


How can I get the Avogadro constant as unit in sage?



edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2012-01-26 20:45:18 +0200

kcrisman gravatar image
sage: units.amount_of_substance.mole

See the units package doc for more info on how to use Sage units.

edit flag offensive delete link more


This is cool - however I spotted something strange: if I do "b=1 * units.amount_of_substance.mole", then "b.convert(units.amount_of_substance.elementary_entity" I get 6.02214179000000e23*elementary_entity while the official recommended value is 6.022141 2 9000000e23 (is it a typo somewhere?)

Emil Widmann gravatar imageEmil Widmann ( 2012-01-27 10:38:58 +0200 )edit

That's possible. If you can verify this with a standards organization link, open a Trac ticket to fix it and cc: whoever added the units package.

kcrisman gravatar imagekcrisman ( 2012-01-27 13:07:31 +0200 )edit

This has been fixed by Trac #12373:

Eviatar Bach gravatar imageEviatar Bach ( 2013-06-22 17:44:54 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-01-26 20:24:00 +0200

Seen: 391 times

Last updated: Jan 26 '12