5
$\begingroup$

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

$\endgroup$
4
  • 2
    $\begingroup$ QuantityMagnitude@UnitConvert[Quantity["GravitationalConstant"]] $\endgroup$
    – RunnyKine
    Commented Nov 16, 2013 at 3:05
  • $\begingroup$ @RunnyKine Great! $\endgroup$
    – van abel
    Commented Nov 16, 2013 at 3:07
  • $\begingroup$ you do not need to load the PhysicalConstants package $\endgroup$
    – a06e
    Commented Nov 27, 2013 at 20:43
  • 4
    $\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
    Commented Apr 4, 2014 at 15:58

1 Answer 1

9
$\begingroup$
QuantityMagnitude@UnitConvert[Quantity["GravitationalConstant"]] 

6.67*10^-11

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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