qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec. factorial  (  n  )[source]

The factorial $n!$ of integers.

Parameters:
narray_like

The integer numbers. Float types are cast to int types.

Returns:
n_factorialndarray

The factorials of n. Values $n < 2$ yield 1.