Skip to content

factorial

specfun · scripts/specfun/factorial.m

: f = factorial (n)

Factorial of the non-negative integers in n, evaluated element by element. Results are correctly rounded doubles (exact up to 22!), Inf beyond 170!. For integer classes the result has the same class and saturates at the largest representable value.