Skip to content

Instantly share code, notes, and snippets.

@littledivy
Created January 13, 2021 07:24
Show Gist options
  • Save littledivy/eeaa302bb50e181fc7bca04c9cfdd621 to your computer and use it in GitHub Desktop.
Save littledivy/eeaa302bb50e181fc7bca04c9cfdd621 to your computer and use it in GitHub Desktop.
Estimating the age of universe as dimension of time using fundamental constants. Based on Paul Dirac's large number hypothesis.
from math import pi, ceil, log10
e = 1.6 * (10**-19)
mE = 9.1 * (10**-31)
mP = 1.67 * (10**-27)
c = 3 * (10**8)
G = 6.67 * (10**-11)
x = (9 * (10**9))
n = (e**4) * (x**2)
d = (mP * (mE ** 2) * (c ** 3) * G)
T = ( n / d )
print('%.2e seconds' % T)
Ts = T/(60*60*24*365.25)
print('%.2e years' % Ts)
r = ceil(log10(Ts))
if r == 9:
print('≈ 10⁹ years')
else:
print('Constants have changed over time?! Do people still use Python3? lol')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment