Scilab 6.1.0
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
gamma
ガンマ関数.
呼び出し手順
y = gamma(x)
引数
- x
scalar, vector, matrix, or hypermatrix of real numbers.
gamma
can be overloaded for complex numbers or of lists, tlists or mlists.- y
(xと同じ大きさの)実数ベクトルまたは行列.
説明
gamma(x)
は,
x
の全要素についてガンマ関数を計算します.
ガンマ関数は以下のように定義されます:

そして,階乗関数を実数に一般化します.
(gamma(u+1) = u*gamma(u)
).
例
// 簡単な例 gamma(0.5) gamma(6)-prod(1:5)
// [a,b]のガンマ関数のグラフ a = -3; b = 5; x = linspace(a,b,40000); y = gamma(x); clf() plot2d(x, y, style=0, axesflag=5, rect=[a, -10, b, 10]) xtitle("The gamma function on ["+string(a)+","+string(b)+"]") show_window()

参照
履歴
Version | Description |
5.4.0 | list, mlist, tlistおよびハイパー行列型のオーバーロードが 可能となりました. |
6.0.2 |
|
Report an issue | ||
<< findm | Special Functions | gammaln >> |