|
From: <li...@us...> - 2008-12-19 19:03:24
|
Revision: 592
http://pyphant.svn.sourceforge.net/pyphant/?rev=592&view=rev
Author: liehr
Date: 2008-12-19 19:03:18 +0000 (Fri, 19 Dec 2008)
Log Message:
-----------
Added astronomical unit (AU) to the Quantities modul.
Modified Paths:
--------------
trunk/doc/demo/example.fmf
trunk/src/pyphant/pyphant/quantities/PhysicalQuantities.py
Modified: trunk/doc/demo/example.fmf
===================================================================
--- trunk/doc/demo/example.fmf 2008-12-19 19:02:36 UTC (rev 591)
+++ trunk/doc/demo/example.fmf 2008-12-19 19:03:18 UTC (rev 592)
@@ -45,6 +45,7 @@
temperature in Celsius: 22 degC
resistance: 2.0 kg*m^2*A^-2*s^-3
arbitrary units: 10 a.u.
+distance from Earth to Sun: 1 AU
[Quantities with error]
voltage: 1 V +- 1 mV
current: 1 A +/- 0.001 A
Modified: trunk/src/pyphant/pyphant/quantities/PhysicalQuantities.py
===================================================================
--- trunk/src/pyphant/pyphant/quantities/PhysicalQuantities.py 2008-12-19 19:02:36 UTC (rev 591)
+++ trunk/src/pyphant/pyphant/quantities/PhysicalQuantities.py 2008-12-19 19:03:18 UTC (rev 592)
@@ -801,6 +801,7 @@
_addUnit('nmi', '1852.*m', 'Nautical mile')
_addUnit('Ang', '1.e-10*m', 'Angstrom')
_addUnit('lyr', 'c*yr', 'light year')
+_addUnit('AU', '149597870691*m', 'astronomical unit')
_addUnit('Bohr', '4*pi*eps0*hbar**2/me/e**2', 'Bohr radius')
# Area units
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|