4
$\begingroup$

I need to get the quantity of gravitational constant: QuantityMagnitude[GravitationalConstant] why this is not work? Already load the PhysicalConstants package.

$\endgroup$
  • 2
    $\begingroup$ QuantityMagnitude@UnitConvert[Quantity["GravitationalConstant"]] $\endgroup$ – RunnyKine Nov 16 '13 at 3:05
  • $\begingroup$ @RunnyKine Great! $\endgroup$ – van abel Nov 16 '13 at 3:07
  • $\begingroup$ you do not need to load the PhysicalConstants package $\endgroup$ – becko Nov 27 '13 at 20:43
  • 3
    $\begingroup$ man its irritating the docs just say "physical constant functionality is built into mathematica" without providing any clue how to access. Even if you find the Quantity page it doesn't say anything about physical constants. $\endgroup$ – george2079 Apr 4 '14 at 15:58
7
$\begingroup$
QuantityMagnitude@UnitConvert[Quantity["GravitationalConstant"]] 

6.67*10^-11

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.