Function factorial

Source
pub fn factorial(x: f64) -> f64
Expand description

Wrapper function to calculate factorial of a function. Returns simple factorial of x if the number can be converted to integer without loss. Returns gamma of x if the number cannot be converted to integer without loss.

ยงArguments

  • x - the number to find factorial of.