Re: Get numbers out of PhysicalConstants?

• To: mathgroup at smc.vnet.net
• Subject: [mg62612] Re: Get numbers out of PhysicalConstants?
• Date: Tue, 29 Nov 2005 04:46:17 -0500 (EST)
• Sender: owner-wri-mathgroup at wolfram.com

```On 11/28/05 at 1:38 AM, wssaca at gmail.com (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`"
In[2]:=N[VacuumPermeability][[1]]

Out[2]=1.2566370614359173*^-6

This works since

In[3]:=FullForm[VacuumPermeability]

Out[3]//FullForm=
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.,

In[12]:=ElectronCharge[[1]]
Out[12]=1.602176462*^-19

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?