Skip to content

Instantly share code, notes, and snippets.

Created February 4, 2014 11:47
Show Gist options
  • Save anonymous/8802249 to your computer and use it in GitHub Desktop.
Save anonymous/8802249 to your computer and use it in GitHub Desktop.
import math.*
import scipy.optimize.*
def k2t(k):
f = lambda t : gamma(1/t)*gamma(5/t)/gamma(3/t)**2-k-3
return fsolve(f,2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment