Factor Method (NumberToFactor, Factor1, Factor2)
Cove - A Practical Quantum Computer Programming Framework
Factor Method (NumberToFactor, Factor1, Factor2)
NamespacesCove.BaseIQuantumAlgorithmsFactor(Int32, Int32%, Int32%)
Factor a number using Shor's algorithm.
Declaration Syntax
C#Visual BasicVisual C++
bool Factor(
	int NumberToFactor,
	out int Factor1,
	out int Factor2
)
Function Factor ( _
	NumberToFactor As Integer, _
	<OutAttribute> ByRef Factor1 As Integer, _
	<OutAttribute> ByRef Factor2 As Integer _
) As Boolean
bool Factor(
	int NumberToFactor, 
	[OutAttribute] int% Factor1, 
	[OutAttribute] int% Factor2
)
Parameters
NumberToFactor (Int32)
The number to factor
Factor1 ( Int32 %)
The first factor of the number
Factor2 ( Int32 %)
The second factor of the number
Return Value
False if the number could not be factored. In this case the two output variables will be 0.

Assembly: Cove.Base (Module: Cove.Base) Version: 1.0.0.0 (1.0.0.0)