Skip to content

factorial

Factorial

factorial(A)

  • It returns the factorial of each element of A.
  • A should be an array of non-negative integers.
  • A should not contain NaN.
  • For a number larger than 20, it returns an approximated value.
  • For a number larger than 170, it returns inf.