Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tomr-stargazer/dc69e419c732687ac39f207c6bc9d9d6 to your computer and use it in GitHub Desktop.
Save tomr-stargazer/dc69e419c732687ac39f207c6bc9d9d6 to your computer and use it in GitHub Desktop.
Thickness of 6x8 AU poster with volume of Earth
In [2]: import astropy.units as u
In [3]: import astropy.constants as c
In [4]: volume = 4/3. * np.pi*c.R_earth**3
In [5]: length = 6 * u.AU
In [6]: width = 8 * u.AU
In [7]: thickness = volume/(length*width)
In [10]: thickness.to(u.mm)
Out[10]: <Quantity 1.011760858441613 mm>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment