Message Boards Message Boards

Avoid intermittent "dynamic bar" after unit calculations?

Posted 7 years ago

Consider the following code:

UnitSimplify[
         Quantity[Quantity[1.3040420058965703`*^-40, (
           "ReducedPlanckConstant" "Seconds")/("Meters")^5]/Sqrt[
          WolframAlphaResult[
          "FineStructureConstant", {{"Result", 1}, "Content"}]], (
          "ReducedPlanckConstant" "Seconds")/("Meters")^5]]

I'm new to Mathematica11, in process of converting my equations from Maple10...when first running, Mathematica seemed more "alive" at first. The second time started got warning about "Dynamic Content" so I disabled it and then Enabled again...but now as in the above operation the "Dynamic Bar" or whatever its called doesn't appear anymore. Before I was able to pick another option to render the proper units: kg/m^3...?

POSTED BY: David Harness
2 Replies
Posted 7 years ago

Thanks Gianluca that worked.

POSTED BY: David Harness

I don't know how to work with WolframAlphaResult, which is not documented. Is this

UnitConvert[
 Quantity[1.3040420058965703`*^-40,
   ("ReducedPlanckConstant" "Seconds")/("Meters")^5]/
  Sqrt[Quantity[1, "FineStructureConstant"]],
 "Kilograms"/("Meters")^3]

more like what you want?

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract