### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Miscellaneous routines (`scipy.misc`) »

# scipy.misc.factorialk

`scipy.misc.``factorialk`(n, k, exact=1)

  n(!!...!) = multifactorial of order k k times

  Parameters : | n : int, array_like Calculate multifactorial. Arrays are only supported with exact set to False. If n < 0, the return value is 0. exact : bool, optional If exact is set to True, calculate the answer exactly using integer arithmetic.
  Returns : | val : int Multi factorial of n.
  Raises : | NotImplementedError : Raises when exact is False

  Examples

      >>> sc.factorialk(5, 1, exact=True)
      120L
      >>> sc.factorialk(5, 3, exact=True)
      10L

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Miscellaneous routines (`scipy.misc`) »