fork download
  1. from decimal import Decimal
  2. from math import e
  3.  
  4. def f(n):
  5. numerator = Decimal(1)
  6. for i in range(n,3*n+1):
  7. numerator *= i
  8. return numerator**(1/Decimal(n)) / n / n
  9.  
  10. print f(10000)
  11. print 27/e/e
Success #stdin #stdout 0.63s 9912KB
stdin
Standard input is empty
stdout
3.657620612397226699997899693
3.65405264739