[yt-dev] Splitting a compound unit into its atoms

John ZuHone jzuhone at gmail.com
Tue Sep 30 07:38:12 PDT 2014


This should be obvious to me, but I can't seem to figure it out. 

Is there a way to take a compound units expression like:

dyne*cm**2/g**2

and split it into its constituent parts, so that I have a list like this:

[dyne, cm, g]

and maybe even containing the information about the powers?



More information about the yt-dev mailing list