Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,907 questions

51,839 answers

573 users

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
...