Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Accessing and using built-in constants in Mathematica 6 /

  • To: mathgroup at smc.vnet.net
  • Subject: [mg86543] Re: Accessing and using built-in constants in Mathematica 6 /
  • From: Steven Siew <siewsk at bp.com>
  • Date: Thu, 13 Mar 2008 04:34:23 -0500 (EST)
  • References: <fr8b7s$h1f$1@smc.vnet.net>

On Mar 12, 9:28 pm, ratulloch... at gmail.com wrote:

> 2) Also How do I increase the amount of the decimal places?
> Example:
> elementatomicW := ElementData["C", "AtomicWeight"]
> << Units`
> Convert[elementatomicW AMU, Kilogram]
> The answer is 1.99443*10^-26 Kilogram
>
> I add N like it says but the answer still comes out the same
> Example:
> << Units`
> N[Convert[elementatomicW AMU, Kilogram], 20]
>
> tia sal2

You can do it this way but please beware of what you are doing.

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

In[2]:=  ProtonMass

Out[2]= 1.67262*10^-27 Kilograms

In[3]:= ProtonMass =
SetPrecision[Miscellaneous`PhysicalConstants`ProtonMass,60]

Out[3]=
1.672621579999999975006214735803659920782386288365173851541560107657893668141325`60.*10^-27
Kilogram

Ha Ha Ha. Of course no one knows the proton mass to the 60th decimal
places.



  • Prev by Date: variance (mg86506)
  • Next by Date: Re: Puzzled by the "Variance"
  • Previous by thread: Re: variance (mg86506)
  • Next by thread: LevenbergMarquardt