public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: physic constants (0.9.3)
  2001-12-19 13:20 physic constants (0.9.3) Alberto Manuel Brandao Simoes
  2001-12-19 13:20 ` Peter Teuben
@ 2001-12-19 13:20 ` Brian Gough
  1 sibling, 0 replies; 4+ messages in thread
From: Brian Gough @ 2001-12-19 13:20 UTC (permalink / raw)
  To: albie; +Cc: GSL LIST

Alberto Manuel Brandao Simoes writes:
 > 	btu and barn constants, from the gsl_const_mks, are defined as
 > 'btu' and 'barn' and not the value it should be.

Thanks for the bug report. Now fixed.  I also made all the definitions
double-precision, to avoid the possibility of integer division (some
of the constants are integers).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* physic constants (0.9.3)
@ 2001-12-19 13:20 Alberto Manuel Brandao Simoes
  2001-12-19 13:20 ` Peter Teuben
  2001-12-19 13:20 ` Brian Gough
  0 siblings, 2 replies; 4+ messages in thread
From: Alberto Manuel Brandao Simoes @ 2001-12-19 13:20 UTC (permalink / raw)
  To: GSL LIST

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

	Hello!

	btu and barn constants, from the gsl_const_mks, are defined as 'btu' and
'barn' and not the value it should be.

	Alberto
-- 
 | Alberto Manuel Brandão Simões |
 | albie@alfarrabio.di.uminho.pt |
 | http://numexp.sourceforge.net |

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: physic constants (0.9.3)
  2001-12-19 13:20 ` Peter Teuben
@ 2001-12-19 13:20   ` Brian Gough
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Gough @ 2001-12-19 13:20 UTC (permalink / raw)
  To: Peter Teuben; +Cc: GSL LIST

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: physic constants (0.9.3)
  2001-12-19 13:20 physic constants (0.9.3) Alberto Manuel Brandao Simoes
@ 2001-12-19 13:20 ` Peter Teuben
  2001-12-19 13:20   ` Brian Gough
  2001-12-19 13:20 ` Brian Gough
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Teuben @ 2001-12-19 13:20 UTC (permalink / raw)
  To: Alberto Manuel Brandao Simoes; +Cc: GSL LIST

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

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

On Tue, 25 Sep 2001, Alberto Manuel Brandao Simoes wrote:

> 
> 	Hello!
> 
> 	btu and barn constants, from the gsl_const_mks, are defined as 'btu' and
> 'barn' and not the value it should be.
> 
> 	Alberto
> -- 
>  | Alberto Manuel Brandão Simões |
>  | albie@alfarrabio.di.uminho.pt |
>  | http://numexp.sourceforge.net |
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-12-19 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 13:20 physic constants (0.9.3) Alberto Manuel Brandao Simoes
2001-12-19 13:20 ` Peter Teuben
2001-12-19 13:20   ` Brian Gough
2001-12-19 13:20 ` Brian Gough

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).