Math387::Fact Function

double Fact(const int N);

Factorial N!.

#NameTypeDescription
1Nconst int

Returns: the factorial (=n!) of n.

Remarks:

First 50 numbers are precomputed. Although the argument is integer, the result is real. The result can exceed integer range. If you exceed the TSample range the function returns Inf.

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler