借助sympy.stats.WignerSemicircle()
方法,我們可以獲得代表Wigner半圓分布的連續隨機變量。
用法:sympy.stats.WignerSemicircle(name, R)
Where, R is real number.
返回:Return the continuous random variable.
範例1:
在這個例子中,我們可以通過使用sympy.stats.WignerSemicircle()
通過這種方法,我們可以獲得代表Wigner半圓分布的連續隨機變量。
# Import sympy and WignerSemicircle
from sympy.stats import WignerSemicircle, density
from sympy import Symbol, pprint
z = Symbol("z")
r = Symbol("r", positive = True)
# Using sympy.stats.WignerSemicircle() method
X = WignerSemicircle("x", r)
gfg = density(X)(z)
pprint(gfg)
輸出:
_________
/ 2 2
2*\/ r - z
————-
2
pi*r
範例2:
# Import sympy and WignerSemicircle
from sympy.stats import WignerSemicircle, density
from sympy import Symbol, pprint
z = 0.87
r = 2
# Using sympy.stats.WignerSemicircle() method
X = WignerSemicircle("x", r)
gfg = density(X)(z)
pprint(gfg)
輸出:
0.900430452616969
—————-
pi
相關用法
- Python sympy.sin()用法及代碼示例
- Python sympy.nT()用法及代碼示例
- Python sympy.Add()用法及代碼示例
- Python sympy RGS用法及代碼示例
- Python sympy.ff()用法及代碼示例
- Python sympy.tan()用法及代碼示例
- Python sympy.apart()用法及代碼示例
- Python sympy.nC()用法及代碼示例
- Python sympy.nP()用法及代碼示例
- Python sympy.Mul()用法及代碼示例
- Python sympy.S()用法及代碼示例
- Python sympy.rf()用法及代碼示例
- Python sympy.eye()用法及代碼示例
- Python sympy.csc()用法及代碼示例
- Python sympy.Pow()用法及代碼示例
- Python sympy.gcd()用法及代碼示例
- Python sympy.cot()用法及代碼示例
- Python sympy.sec()用法及代碼示例
- Python sympy.cos()用法及代碼示例
- Python sympy.ones()用法及代碼示例
注:本文由純淨天空篩選整理自Jitender_1998大神的英文原創作品 Sympy stats.WignerSemicircle() in Python。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。