まぬねこの足跡。。。

備忘録+たのしさ+ひっそりと

Python - math.lgamma(x):ガンマ関数で絶対値の自然対数

概要

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