This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: adding constant: Dyne
On 21 Mar 2002 17:49:12 -0500 Jochen Küpper wrote:
Jochen> Ok, attached is a diff with these four units in.
Brian, I just got your email. The attached patch supersedes the
previous one.
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
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:59:59
@@ -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:59:59
@@ -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,9 @@
#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 */
+#define GSL_CONST_CGS_NEWTON (1e5) /* cm g / s^2 */
+#define GSL_CONST_CGS_ERG (1e0) /* g cm^2 / s^2 */
+#define GSL_CONST_CGS_JOULE (1e7) /* g cm^2 / 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:59:59
@@ -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,9 @@
#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 */
+#define GSL_CONST_MKS_NEWTON (1e0) /* kg m / s^2 */
+#define GSL_CONST_MKS_ERG (1e-7) /* kg m^2 / s^2 */
+#define GSL_CONST_MKS_JOULE (1e0) /* kg m^2 / 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:59:59
@@ -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:59:59
@@ -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:59:59
@@ -29,6 +29,7 @@
* Viscosity::
* Light and Illumination::
* Radioactivity::
+* Force and Energy::
* Physical Constant Examples::
* Physical Constant References and Further Reading::
@end menu
@@ -416,6 +417,29 @@
@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 = @c{$1\frac{kg m}{s^2}$}
+@math{1 kg m / s^2}.
+
+@item GSL_CONST_MKS_DYNE
+The force of 1 Dyne = @c{$1^{-5}$}
+@math{1^-5} Newton.
+
+@item GSL_CONST_MKS_JOULE
+The SI unit of energy, 1 Joule = @c{$1\frac{kg m^2}{s^2}$}
+@math{1 kg m^2 / s^2}.
+
+@item GSL_CONST_MKS_ERG
+The energy 1 erg = @c{$1^{-7} J$}
+@math{1^-7} Joule.
+@end table
+
@node Physical Constant Examples
@section Examples