Skip to main content

builtin_factorial

Function builtin_factorial 

Source
fn builtin_factorial(
    args: &[RValue],
    _: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Factorial: n! = 1 * 2 * … * n.

Uses gamma(n + 1) for non-integer and large values.

@param x numeric vector (non-negative) @return numeric vector of factorials