Gamma

From VLECK
Jump to: navigation, search

Returns the gamma function Γ(x)

Syntax

Result = Gamma( Values);

Return Value

Sin returns the Gamma function for all the elements of the matrix or structure Values . The return value is a matrix or structure of the same shape as the argument Values .

Parameters

Values {{{2}}}


Explanation =

Gamma.png

The gamma function is defined as:

and has the recurrence characteristics Γ(x+1) = x Γ(x) = x!

The approximation formula used, is she series expansion for 1/Γ(x) (equation 6.1.34 from

M. Abramowitz and I.A. Stegun, 1972. Handbook of mathematical function. Dover, New York..


}

Remarks

Do not use the gamma function for large x

Example


A=1,2,3;

A=1,2,3:

1 2 3

R=Sin(A);

R=sin(A):

0.841471 0.909297 0.141120