Version

Factor Method

Returns a Vector containing the prime factors of n.
Syntax
'Declaration
 
Public Shared Function Factor( _
   ByVal n As Double _
) As Vector
public static Vector Factor( 
   double n
)

Parameters

n
A double.

Return Value

The prime factors of n.
Remarks
If n is not an integer, NaN is returned as a unitary Vector. If n is negative, the first element of the result is -1. For integer-valued n: n == Product(Factors(n));
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also