ILNumerics Ultimate VSILMathfactorial Method ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Factorial, from an array of integer elements. For more details about this function, see Wikipedia - Factorial.

[ILNumerics Computing Engine]

Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

public static RetArray<double> factorial(
	InArray<int> n
)

Parameters

n
Type: ILNumericsInArrayInt32
Input array of non-negative integers.

Return Value

Type: RetArrayDouble
An array of same size as n with the factorial of each element.
Remarks

  • If the input array is empty, an empty array will be returned.
  • If an element of the array n is negative, the result will be double.NaN.
  • If any of the given points is NaN or Infinity an ArgumentException will be thrown.
  • If the input array is null, an ArgumentNullException will be thrown.
  • If the input array is empty, an empty array will be returned.

[ILNumerics Computing Engine]

See Also

Reference