Function reference · Math

gamma

Computes the gamma function.

Nerdamer evaluates supported integer, half-integer, and numeric arguments, using exact symbolic forms where available. Other symbolic arguments remain as gamma(x).

Gamma extends factorial through gamma(n)=(n-1)! for positive integers.

Examples

These examples use Nerdamer Notation.

Use gamma(n)=(n-1)! for a positive integer.

gamma(5)
// → 24

Use the exact half-integer value.

gamma(1/2)
// → pi^(1/2)

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

gamma(arg1)

nerdamer.gamma

Call the operation through the default nerdamer import.

nerdamer.gamma(x: Expression): Expression

Parameters

NameTypeDescription
xExpressionThe input expression.

Returns

Expression — The gamma function value Γ(x).

Browse the nerdamer API →

← Back to Reference