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]
Other format: [Raw text]

Re: adding constant: Dyne


On Thu, 21 Mar 2002 22:16:34 +0000 (GMT) Brian Gough wrote:

Brian> Ok. How about other CGS units? e.g. ergs, etc (any others?).

???

Brian> What about adding the Joule and Newton to be symmetrical in
Brian> going from MKS to CGS?

Ok, attached is a diff with these four units in.  Then there are a lot
of quasi-energy units, like K, Hz, cm-1, J/mol, ...  What's about
these?  They are a little tricky as they implicitely assume
converersion factors of h, c, NA, ... and combinations thereof...

Brian> Also if anybody knows of any good sets of data, like atomic
Brian> weights of the elements,

See 
   http://physics.nist.gov/PhysRefData/contents.html

Isotopes or averaged masses? Or better both?
How to name them?

Greetings,
Jochen
-- 
University of North Carolina                       phone: +1-919-962-4403
Department of Chemistry                            phone: +1-919-962-1579
Venable Hall CB#3290 (Kenan C148)                    fax: +1-919-843-6041
Chapel Hill, NC 27599, USA                            GnuPG key: 44BCCD8E
? check.log
? gsl-histogram
? gsl-randist
? gsl.pc
? gsl.spec
? combination/.deps
? combination/.libs
? combination/Makefile
? combination/Makefile.in
? combination/combination.lo
? combination/file.lo
? combination/init.lo
? combination/libgslcombination.la
Index: const/const.el
===================================================================
RCS file: /cvs/gsl/gsl/const/const.el,v
retrieving revision 1.12
diff -u -r1.12 const.el
--- const.el	2002/01/08 21:56:30	1.12
+++ const.el	2002/03/21 22:42:23
@@ -134,6 +134,11 @@
          ("1.98892e30 kg"       "SOLAR_MASS")
          ("0.5291772083e-10 m"  "BOHR_RADIUS")
          ("8.854187817e-12 F/m" "VACUUM_PERMITTIVITY")
+
+         ("1e-5 kg m / s**2"      "DYNE")
+         ("kg m / s**2"           "NEWTON")
+         ("1e-7 kg m**2 / s**2"   "ERG")
+         ("kg m**2 / s**2"        "JOULE")
          )
        )
 
Index: const/gsl_const_cgs.h
===================================================================
RCS file: /cvs/gsl/gsl/const/gsl_const_cgs.h,v
retrieving revision 1.7
diff -u -r1.7 gsl_const_cgs.h
--- gsl_const_cgs.h	2002/01/08 21:56:30	1.7
+++ gsl_const_cgs.h	2002/03/21 22:42:23
@@ -17,9 +17,11 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+
 #ifndef __GSL_CONST_CGS__
 #define __GSL_CONST_CGS__
 
+
 #define GSL_CONST_CGS_SPEED_OF_LIGHT (2.99792458e10) /* cm / s */
 #define GSL_CONST_CGS_GRAVITATIONAL_CONSTANT (6.67259e-8) /* cm^3 / g s^2 */
 #define GSL_CONST_CGS_PLANCKS_CONSTANT_H (6.6260755e-27) /* g cm^2 / s */
@@ -114,5 +116,6 @@
 #define GSL_CONST_CGS_SOLAR_MASS (1.98892e33) /* g */
 #define GSL_CONST_CGS_BOHR_RADIUS (5.291772083e-9) /* cm */
 #define GSL_CONST_CGS_VACUUM_PERMITTIVITY (8.854187817e-21) /* A^2 s^4 / g cm^3 */
+#define GSL_CONST_CGS_DYNE (1e0) /* cm g / s^2 */
 
 #endif /* __GSL_CONST_CGS__ */
Index: const/gsl_const_mks.h
===================================================================
RCS file: /cvs/gsl/gsl/const/gsl_const_mks.h,v
retrieving revision 1.7
diff -u -r1.7 gsl_const_mks.h
--- gsl_const_mks.h	2002/01/08 21:56:30	1.7
+++ gsl_const_mks.h	2002/03/21 22:42:23
@@ -17,9 +17,11 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+
 #ifndef __GSL_CONST_MKS__
 #define __GSL_CONST_MKS__
 
+
 #define GSL_CONST_MKS_SPEED_OF_LIGHT (2.99792458e8) /* m / s */
 #define GSL_CONST_MKS_GRAVITATIONAL_CONSTANT (6.67259e-11) /* m^3 / kg s^2 */
 #define GSL_CONST_MKS_PLANCKS_CONSTANT_H (6.6260755e-34) /* kg m^2 / s */
@@ -114,5 +116,6 @@
 #define GSL_CONST_MKS_SOLAR_MASS (1.98892e30) /* kg */
 #define GSL_CONST_MKS_BOHR_RADIUS (5.291772083e-11) /* m */
 #define GSL_CONST_MKS_VACUUM_PERMITTIVITY (8.854187817e-12) /* A^2 s^4 / kg m^3 */
+#define GSL_CONST_MKS_DYNE (1e-5) /* kg m / s^2 */
 
 #endif /* __GSL_CONST_MKS__ */
Index: const/gsl_const_num.h
===================================================================
RCS file: /cvs/gsl/gsl/const/gsl_const_num.h,v
retrieving revision 1.5
diff -u -r1.5 gsl_const_num.h
--- gsl_const_num.h	2001/02/20 11:05:09	1.5
+++ gsl_const_num.h	2002/03/21 22:42:23
@@ -17,8 +17,10 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+
 #ifndef __GSL_CONST_NUM__
 #define __GSL_CONST_NUM__
+
 
 #define GSL_CONST_NUM_FINE_STRUCTURE (7.29735307964e-3) /* 1 */
 #define GSL_CONST_NUM_AVOGADRO (6.0221367e23) /* 1 / mol */
Index: const/mkconst.sh
===================================================================
RCS file: /cvs/gsl/gsl/const/mkconst.sh,v
retrieving revision 1.1
diff -u -r1.1 mkconst.sh
--- mkconst.sh	2000/08/19 20:55:37	1.1
+++ mkconst.sh	2002/03/21 22:42:23
@@ -2,6 +2,6 @@
 
 for n in cgs mks num
 do
-  emacs -batch -l const.el -f run-$n > gsl_const_$n.h
+  xemacs -batch -l const.el -f run-$n > gsl_const_$n.h
   ( cd .. ;  ./scripts/addgpl.pl "Brian Gough" const/gsl_const_$n.h )
 done 
Index: doc/const.texi
===================================================================
RCS file: /cvs/gsl/gsl/doc/const.texi,v
retrieving revision 1.17
diff -u -r1.17 const.texi
--- const.texi	2002/01/08 21:56:28	1.17
+++ const.texi	2002/03/21 22:42:23
@@ -29,6 +29,7 @@
 * Viscosity::                   
 * Light and Illumination::      
 * Radioactivity::               
+* Force and EnerUnits::                 
 * Physical Constant Examples::  
 * Physical Constant References and Further Reading::  
 @end menu
@@ -416,6 +417,25 @@
 @item GSL_CONST_MKS_RAD
 The absorbed dose of 1 rad.
 @end table
+
+
+@node Force and Energy
+@section Force and Energy
+@cindex force and energy, units of
+@table @code
+@item GSL_CONST_MKS_NEWTON
+The SI unit of force, 1 Newton = 1 kg m / s^2.
+
+@item GSL_CONST_MKS_DYNE
+The force of 1 Dyne = 1e-5 Newton.
+
+@item GSL_CONST_MKS_JOULE
+The SI unit of energy, 1 Joule = 1 kg m^2 / s^2.
+
+@item GSL_CONST_MKS_ERG
+The energy 1 erg = 1e-7 Joule.
+@end table
+
 
 @node Physical Constant Examples
 @section Examples

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