The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function Factorial (argument: integer): extended;

The function Factorial calculates the factorial of the parameter argument. Please note that, despite the inherent integer nature of the factorial, the function Factorial returns the result as an extended floating point number to allow for large arguments. The argument may take values between 0 and 1000, values outside of this interval raise an exception.

Hint: The unit UnivConst offers the natural logarithms of the factorials between 0 and 1000 as an array of constants (uc_LnFactorial).

Last Update: 2012-Oct-20