# How can I get the the Avogadro constant?

Hi!

How can I get the Avogadro constant http://en.wikipedia.org/wiki/Avogadro... as unit in sage?

Thanks

Mebus

How can I get the the Avogadro constant?

Hi!

How can I get the Avogadro constant http://en.wikipedia.org/wiki/Avogadro... as unit in sage?

Thanks

Mebus

add a comment

1

```
sage: units.amount_of_substance.mole
mole
```

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

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?)

1

This has been fixed by Trac #12373: http://trac.sagemath.org/sage_trac/ticket/12373

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

Asked: ** 2012-01-26 20:24:00 +0100 **

Seen: **353 times**

Last updated: **Jan 26 '12**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.