2023-06-25 Python - math.lgamma(x):ガンマ関数で絶対値の自然対数 Python3 mathモジュール 概要 インポート 実行結果 表示イメージ 概要lgamma(x) ガンマ関数で絶対値の自然対数 mathモジュール インポート import math 実行結果 import math print(math.lgamma(1)) print(math.lgamma(2)) print(math.lgamma(3)) 表示イメージ 0.0 0.0 0.693147180559945