This is the mail archive of the gsl-discuss@sourceware.org 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]
Other format: [Raw text]

Debye missing


Hi,

I was missing the conversion factor for electric dipole moments from
Debye to C/m from GSL. The attached patch fixes that.

I was not sure where exactly put the constant, for now I have added it
right behind the "ELECTRON_CHARGE" in const.el. The patch includes a
brief documentation.

Hopefully this can be included in the next release.

Greetings,
Jochen
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
        (Part 3 you find in my messages before fall 2003.)
Index: const/const.el
===================================================================
RCS file: /cvs/gsl/gsl/const/const.el,v
retrieving revision 1.17
diff -u -u -r1.17 const.el
--- const/const.el	5 Mar 2004 15:16:12 -0000	1.17
+++ const/const.el	14 Mar 2006 19:40:21 -0000
@@ -136,9 +136,10 @@
          ("P"             "POISE")
          ("St"            "STOKES")
          
-         ("Fdy"           "FARADAY")
-         ("e"             "ELECTRON_CHARGE")
-         ("G"             "GAUSS")
+         ("Fdy"                 "FARADAY")
+         ("e"                   "ELECTRON_CHARGE")
+         ("3.33564095e-30 C/m"  "DEBYE")
+         ("G"                   "GAUSS")
 
          ("sb"            "STILB")
          ("lm"            "LUMEN")
@@ -152,8 +153,8 @@
          ("R"             "ROENTGEN")
          ("rd"            "RAD")
 
-         ("1.98892e30 kg"       "SOLAR_MASS")
-         ("0.5291772083e-10 m"  "BOHR_RADIUS")
+         ("1.98892e30 kg"         "SOLAR_MASS")
+         ("0.5291772083e-10 m"    "BOHR_RADIUS")
 
          ("N"                     "NEWTON")
          ("1e-5 N"                "DYNE")
@@ -161,14 +162,14 @@
          ("1e-7 J"                "ERG")
 
          ("pi^2 k^4 / (60 hbar^3 c^2)"       "STEFAN_BOLTZMANN_CONSTANT")
-         ("8 pi fsc^2 hbar^2/(3*c^2*me^2)" "THOMSON_CROSS_SECTION")
+         ("8 pi fsc^2 hbar^2/(3*c^2*me^2)"   "THOMSON_CROSS_SECTION")
 
          )
        )
 
 (setq gsl-electrical-constants 
       '(("8.854187817e-12 F/m" "VACUUM_PERMITTIVITY")
-        ("mu0"           "VACUUM_PERMEABILITY")))
+        ("mu0"                 "VACUUM_PERMEABILITY")))
 
 
 ;;; work around bug in calc 2.02f
Index: const/gsl_const_mksa.h
===================================================================
RCS file: /cvs/gsl/gsl/const/gsl_const_mksa.h,v
retrieving revision 1.4
diff -u -u -r1.4 gsl_const_mksa.h
--- const/gsl_const_mksa.h	26 Jun 2005 13:27:00 -0000	1.4
+++ const/gsl_const_mksa.h	14 Mar 2006 19:40:21 -0000
@@ -1,17 +1,17 @@
 /* const/gsl_const_mksa.h
- * 
+ *
  * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004 Brian Gough
- * 
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or (at
  * your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -100,6 +100,7 @@
 #define GSL_CONST_MKSA_FARADAY (9.6485341472e4) /* A s / mol */
 #define GSL_CONST_MKSA_ELECTRON_CHARGE (1.602176462e-19) /* A s */
 #define GSL_CONST_MKSA_GAUSS (1e-4) /* kg / A s^2 */
+#define GSL_CONST_MKSA_DEBYE (1e-4) /* C / m */
 #define GSL_CONST_MKSA_STILB (1e4) /* cd / m^2 */
 #define GSL_CONST_MKSA_LUMEN (1e0) /* cd sr */
 #define GSL_CONST_MKSA_LUX (1e0) /* cd sr / m^2 */
Index: doc/.cvsignore
===================================================================
RCS file: /cvs/gsl/gsl/doc/.cvsignore,v
retrieving revision 1.5
diff -u -u -r1.5 .cvsignore
--- doc/.cvsignore	23 Jul 2004 16:55:12 -0000	1.5
+++ doc/.cvsignore	14 Mar 2006 19:40:21 -0000
@@ -11,6 +11,7 @@
 *.ky
 *.la
 *.log
+*.pdf
 *.pg
 *.ps
 *.toc
Index: doc/const.texi
===================================================================
RCS file: /cvs/gsl/gsl/doc/const.texi,v
retrieving revision 1.29
diff -u -u -r1.29 const.texi
--- doc/const.texi	21 May 2005 13:29:01 -0000	1.29
+++ doc/const.texi	14 Mar 2006 19:40:22 -0000
@@ -82,6 +82,9 @@
 
 @item GSL_CONST_MKSA_GAUSS
 The magnetic field of 1 Gauss.
+
+@item GSL_CONST_MKSA_DEBYE
+The electric dipole moment in the cgs system, @math{D}.
 @end table
 
 @node Astronomy and Astrophysics

Attachment: pgp00000.pgp
Description: PGP signature


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