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
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
| Name | Type | Description |
|---|---|---|
x | Expression | The input expression. |
Returns
Expression — The gamma function value Γ(x).
