Skip to content

fact

Factorial.

v = fact(number)

Returns n! — the product of all integers from 1 to number. number must be a non-negative integer; the fractional part is truncated.

fact(5) % 120
fact(10) % 3628800
  • factdouble — Double factorial.
  • combin — Number of unordered selections (combinations) of k from n.
  • permut — Number of ordered selections (permutations) of k from n.
  • multinomial — Multinomial coefficient.