Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский -
Scilabヘルプ >> Special Functions > gamma

gamma

ガンマ関数.

呼び出し手順

y = gamma(x)

引数

x

実数ベクトルまたは行列

y

(xと同じ大きさの)実数ベクトルまたは行列.

説明

gamma(x) は, xの全要素についてガンマ関数を計算します. ガンマ関数は以下のように定義されます:

そして,階乗関数を実数に一般化します. (gamma(n+1) = n!).

// 簡単な例
gamma(0.5)
gamma(6)-prod(1:5)
// [a,b]のガンマ関数のグラフ
a = -3; b = 5;
x = linspace(a,b,40000)';
y = gamma(x);
clf()
c=xget("color")
xset("color",2)
plot2d(x, y, style=0, axesflag=5, rect=[a, -10, b, 10])
xset("color",c)
xtitle("The gamma function on ["+string(a)+","+string(b)+"]")
show_window()

参照

  • gammaln — ガンマ関数の対数.
  • dlgamma — ガンマ関数, psi関数の微分

履歴

バージョン記述
5.4.0 list, mlist, tlistおよびハイパー行列型のオーバーロードが 可能となりました.
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:35:27 CEST 2016