This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: physic constants (0.9.3)


> I'd like to see the solar mass (about 2e30 kg) go into the table of
> constan= ts.  It has AU and pc, but the one big thing missing is solar
> mass.

I accept patches ;-)

Extra values can be added to the gsl-constants list in const/const.el

e.g.

bjg|debian> cvs diff -u const/const.el doc/const.texi
Index: const/const.el
===================================================================
RCS file: /cvs/gsl/gsl/const/const.el,v
retrieving revision 1.10
diff -u -r1.10 const.el
--- const.el    2001/09/25 14:16:40     1.10
+++ const.el    2001/09/25 14:39:05
@@ -131,7 +131,7 @@
          ("R"             "ROENTGEN")
          ("rd"            "RAD")
 
-
+         ("1.98892e30 kg"       "SOLAR_MASS")
          )
        )
 
Index: doc/const.texi
===================================================================
RCS file: /cvs/gsl/gsl/doc/const.texi,v
retrieving revision 1.12
diff -u -r1.12 const.texi
--- const.texi  2001/09/14 21:47:17     1.12
+++ const.texi  2001/09/25 14:39:05
@@ -94,6 +94,9 @@
 
 @item GSL_CONST_MKS_GRAV_ACCEL
 The standard gravitational acceleration on Earth, @math{g}.
+
+@item GSL_CONST_MKS_SOLAR_MASS
+The mass of the Sun.
 @end table
 
 @node Atomic and Nuclear Physics


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]