Click or drag to resize
sqx

SQXFactorial Method

Function [float] Factorial([int] n)
(Mathematics)

Namespace:  sqx
Assembly:  SQX (in SQX.dll) Version: 1.0.2.6 (1.0.2.6)
Syntax
C#
public static SqlDouble Factorial(
	SqlInt32 n
)

Parameters

n
Type: System.Data.SqlTypesSqlInt32
[int]

Return Value

Type: SqlDouble
[float]
Remarks
Factorial n! function.
Examples
SQL
select a.Value N, sqx.Factorial(a.Value) [N!], sqx.RecFactorial(a.Value) [1/N!]
from sqx.NTable(0,170) a
See Also