2
爲什麼SymPy不會將標準對數正態PDF集成到1?在sympy中集成對數正態PDF
我跑在Python 3.x的下面的代碼和SymPy 1.0.1:
from sympy.stats import density, LogNormal
from sympy import Symbol, integrate, oo
mu, sigma = 0, 1
z = Symbol('z')
X = LogNormal('x', mu, sigma)
f = density(X)(z)
integrate(f, (z, 0, oo))
應該返回1,但輸出(?):
sqrt(2)*Integral(exp(-log(z)**2/2)/z, (z, 0, oo))/(2*sqrt(pi))
沒有人知道什麼是去這裏?