MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Get numbers out of PhysicalConstants?

  • To: mathgroup at
  • Subject: [mg62612] Re: Get numbers out of PhysicalConstants?
  • From: Bill Rowe <readnewsciv at>
  • Date: Tue, 29 Nov 2005 04:46:17 -0500 (EST)
  • Sender: owner-wri-mathgroup at

On 11/28/05 at 1:38 AM, wssaca at (Wonseok Shin) wrote:

>Is there any way to get numbers out of the constants defined in
>Miscellaneous`PhysicalConstants` package?  Carrying units all the
>time is inconvenient in calculation.

>For example, In[1]:= << Miscellaneous`PhysicalConstants` In[2]:=
>VacuumPermeability Out[2]= \!\(\(p\ Second\ Volt\)\/\(2500000\
>Ampere\ Meter\)\)

>I want to get the number p/2500000 out of VacuumPermeability,
>without units.  How can I do this?

Perhaps the simplest way is to use First or Part, i.e.,

In[1]:=<< "Miscellaneous`"


This works since


FullForm[(Rational[1, 2500000]*Pi*Second*Volt)/(Ampere*Meter)]

And since units are symbols and the default Mathematica ordering is to have the number first in any product using symbols, this works in general.

Note for most things such as ElectronCharge usage of N isn't needed, i.e.,


since most things are expressed as a machine precision number times some units (expressed as symbols).

You might also be interested in some of the packages available from the Wolfram site (MathSource).
To reply via email subtract one hundred and four

  • Prev by Date: Bypassing built-in functions in differentiation
  • Next by Date: Re: references to numbered equations in arXiv style sheet
  • Previous by thread: Re: Get numbers out of PhysicalConstants?
  • Next by thread: Re: Get numbers out of PhysicalConstants?