Skip to content

Instantly share code, notes, and snippets.

@munro
Created October 3, 2014 23:31
Show Gist options
  • Select an option

  • Save munro/bbd8116d2e19fa99076a to your computer and use it in GitHub Desktop.

Select an option

Save munro/bbd8116d2e19fa99076a to your computer and use it in GitHub Desktop.
number_of_atoms = 10e80 -- quantity
size_of_universe = 46e9 * 3.15569e7 -- light years to seconds
smallest_distance = 5.3910632e-44 -- seconds
speed_of_light = 299792458
bits_in_universe = (
{- x -} log(size_of_universe / smallest_distance) / log(2)
{- y -} + log(size_of_universe / smallest_distance) / log(2)
{- z -} + log(size_of_universe / smallest_distance) / log(2)
{- velocity -} + log(speed_of_light / smallest_distance) / log(2)
) * number_of_atoms -- 7.840935551475915e83 bits
-- 9.80117e70 tb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment