pi, c

11 views
Skip to first unread message

Louis Dumortier

unread,
Sep 4, 2012, 4:36:57 AM9/4/12
to python-dev
Hi all,


When importing numpy, some interesting constants are available :

>>> from numpy import pi
>>> pi
3.141592653589793
>>>



But did you ever wonder (like I do) why the speed of light is not known as
a constant ?






We use a handy package for this (and others).

Please have a look at : http://rhodesmill.org/pyephem/




Hope this is helpful.




Louis




--
Utilisant le logiciel de courrier révolutionnaire d'Opera :
http://www.opera.com/mail/

Yves Frémat

unread,
Sep 4, 2012, 4:37:02 AM9/4/12
to python-dev
Hi Louis,
To get the speed of light I use:

import scipy.constants.codata as cst

cst.c !

yves
Reply all
Reply to author
Forward
0 new messages