Calculates the factorial of an integer number.

View versions (2)

Interface

#include <codecogs/maths/combinatorics/arithmetic/factorial.h>

using namespace Maths::Combinatorics::Arithmetic;

This function returns the factorial of an integer number:

$$f(x)=x!$$
(1)

Parameters

n
the number to compute the factorial of

Returns

the factorial of n
GPL Licence — free for non commercial use. See Licence details.

Interactive Calculator

n
Result