gamma - Maple Help

MTM

 gamma
 Gamma function

 Calling Sequence gamma(M)

Parameters

 M - array or expression

Description

 • The Gamma function is defined for the real part of z greater than zero by

$\mathrm{\Gamma }\left(z\right)={{\int }}_{0}^{\mathrm{\infty }}{ⅇ}^{-t}{t}^{z-1}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}t$

and is extended to the rest of the complex plane, less the non-positive integers, by analytic continuation. Gamma has a simple pole at each of the points z=0,-1,-2,....

 • The gamma(M) function computes the elementwise gamma of M.  The result, R, is formed as R[i,j] = gamma(M[i,j]).

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $M≔\mathrm{Matrix}\left(2,3,'\mathrm{fill}'=-3.6\right):$
 > $\mathrm{\gamma }\left(M\right)$
 $\left[\begin{array}{ccc}{0.2468571430}& {0.2468571430}& {0.2468571430}\\ {0.2468571430}& {0.2468571430}& {0.2468571430}\end{array}\right]$ (1)