Skip to content

Instantly share code, notes, and snippets.

@zachlim98
Created January 22, 2021 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachlim98/c7db638e216b7434fee565f7ecffa426 to your computer and use it in GitHub Desktop.
Save zachlim98/c7db638e216b7434fee565f7ecffa426 to your computer and use it in GitHub Desktop.
constant = np.log(2) # we use 2 since the new population size will be 2 times the old population size
R = 0.0124
doubletime = constant/R
print("%.2f years" % (doubletime))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment