Is there a way to use the physical constants in calculations and have Mathematica 10 figure out the final unit and numerical magnitude? When I try
pcM = N[Quantity[1, "PlanckConstant"]]
I simply get 1. h
without the numerical value of Planck constant. Subsequently, using this in all further steps, keeps the answer in h and does not work out units.
However, if I define the Planck constant by hand and use it in a calculation, everything works as expected. I am curious as to why the internally defined constants do not show up with numerical values.
Thanks,
UnitConvert
for this sort of thing.In[199]:= UnitConvert[Quantity[1, "PlanckConstant"]] Out[199]= Quantity[6.626070*10^-34, ( "Kilograms" ("Meters")^2)/("Seconds")]
$\endgroup$In[647]:= UnitConvert[Quantity[1, "PlanckConstant"], "eV*s"] Out[647]= Quantity[4.135668*10^-15, "Electronvolts" "Seconds"]
$\endgroup$