How to calculate the natural logarithm of the absolute value of the gamma function at N in Python

1 Answer

0 votes
import math

print("math.lgamma(0.9) = ", math.lgamma(0.9))
print("math.lgamma(10) = ", math.lgamma(10))
print("math.lgamma(0.5) = ", math.lgamma(0.5))
print("math.lgamma(1) = ", math.lgamma(1))


'''
run:

math.lgamma(0.9) =  0.0663762397347431
math.lgamma(10) =  12.801827480081467
math.lgamma(0.5) =  0.5723649429247004
math.lgamma(1) =  0.0

'''

 



answered Oct 17, 2017 by avibootz
...