Math.NET Numerics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

862 lines
33 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Euclid - Math.NET Numerics Documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link type="text/css" rel="stylesheet" href="../main.css"/>
<script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../js/jquery.scrollTo-min.js"></script>
<script type="text/javascript" src="../js/navigation.js"></script>
<script type="text/javascript" src="../js/example.js"></script>
</head>
<body><div id="namespaces">
<h2 class="fixed">Namespaces</h2>
<div class="scroll">
<ul>
<li>
<a href="../MathNet.Numerics/index.htm" class="current">MathNet.Numerics</a>
</li>
<li>
<a href="../MathNet.Numerics.Differentiation/index.htm">MathNet.Numerics.Differentiation</a>
</li>
<li>
<a href="../MathNet.Numerics.Distributions/index.htm">MathNet.Numerics.Distributions</a>
</li>
<li>
<a href="../MathNet.Numerics.Financial/index.htm">MathNet.Numerics.Financial</a>
</li>
<li>
<a href="../MathNet.Numerics.IntegralTransforms/index.htm">MathNet.Numerics.IntegralTransforms</a>
</li>
<li>
<a href="../MathNet.Numerics.Integration/index.htm">MathNet.Numerics.Integration</a>
</li>
<li>
<a href="../MathNet.Numerics.Interpolation/index.htm">MathNet.Numerics.Interpolation</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra/index.htm">MathNet.Numerics.LinearAlgebra</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Complex/index.htm">MathNet.Numerics.LinearAlgebra.Complex</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Complex.Solvers/index.htm">MathNet.Numerics.LinearAlgebra.Complex.Solvers</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Complex32/index.htm">MathNet.Numerics.LinearAlgebra.Complex32</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Complex32.Solvers/index.htm">MathNet.Numerics.LinearAlgebra.Complex32.Solvers</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Double/index.htm">MathNet.Numerics.LinearAlgebra.Double</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Double.Solvers/index.htm">MathNet.Numerics.LinearAlgebra.Double.Solvers</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Factorization/index.htm">MathNet.Numerics.LinearAlgebra.Factorization</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Single/index.htm">MathNet.Numerics.LinearAlgebra.Single</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Single.Solvers/index.htm">MathNet.Numerics.LinearAlgebra.Single.Solvers</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Solvers/index.htm">MathNet.Numerics.LinearAlgebra.Solvers</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearAlgebra.Storage/index.htm">MathNet.Numerics.LinearAlgebra.Storage</a>
</li>
<li>
<a href="../MathNet.Numerics.LinearRegression/index.htm">MathNet.Numerics.LinearRegression</a>
</li>
<li>
<a href="../MathNet.Numerics.OdeSolvers/index.htm">MathNet.Numerics.OdeSolvers</a>
</li>
<li>
<a href="../MathNet.Numerics.Optimization/index.htm">MathNet.Numerics.Optimization</a>
</li>
<li>
<a href="../MathNet.Numerics.Optimization.LineSearch/index.htm">MathNet.Numerics.Optimization.LineSearch</a>
</li>
<li>
<a href="../MathNet.Numerics.Optimization.ObjectiveFunctions/index.htm">MathNet.Numerics.Optimization.ObjectiveFunctions</a>
</li>
<li>
<a href="../MathNet.Numerics.Optimization.TrustRegion/index.htm">MathNet.Numerics.Optimization.TrustRegion</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers/index.htm">MathNet.Numerics.Providers</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers.FourierTransform/index.htm">MathNet.Numerics.Providers.FourierTransform</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers.LinearAlgebra/index.htm">MathNet.Numerics.Providers.LinearAlgebra</a>
</li>
<li>
<a href="../MathNet.Numerics.Providers.SparseSolver/index.htm">MathNet.Numerics.Providers.SparseSolver</a>
</li>
<li>
<a href="../MathNet.Numerics.Random/index.htm">MathNet.Numerics.Random</a>
</li>
<li>
<a href="../MathNet.Numerics.RootFinding/index.htm">MathNet.Numerics.RootFinding</a>
</li>
<li>
<a href="../MathNet.Numerics.Statistics/index.htm">MathNet.Numerics.Statistics</a>
</li>
<li>
<a href="../MathNet.Numerics.Statistics.Mcmc/index.htm">MathNet.Numerics.Statistics.Mcmc</a>
</li>
</ul>
</div>
</div><div id="types">
<h2 class="fixed">Types in MathNet.Numerics</h2>
<div class="scroll">
<ul>
<li>
<a href="../MathNet.Numerics/AppSwitches.htm">AppSwitches</a>
</li>
<li>
<a href="../MathNet.Numerics/Combinatorics.htm">Combinatorics</a>
</li>
<li>
<a href="../MathNet.Numerics/Complex32.htm">Complex32</a>
</li>
<li>
<a href="../MathNet.Numerics/ComplexExtensions.htm">ComplexExtensions</a>
</li>
<li>
<a href="../MathNet.Numerics/Constants.htm">Constants</a>
</li>
<li>
<a href="../MathNet.Numerics/ContourIntegrate.htm">ContourIntegrate</a>
</li>
<li>
<a href="../MathNet.Numerics/Control.htm">Control</a>
</li>
<li>
<a href="../MathNet.Numerics/Differentiate.htm">Differentiate</a>
</li>
<li>
<a href="../MathNet.Numerics/DifferIntegrate.htm">DifferIntegrate</a>
</li>
<li>
<a href="../MathNet.Numerics/Distance.htm">Distance</a>
</li>
<li>
<a href="../MathNet.Numerics/Euclid.htm" class="current">Euclid</a>
</li>
<li>
<a href="../MathNet.Numerics/ExcelFunctions.htm">ExcelFunctions</a>
</li>
<li>
<a href="../MathNet.Numerics/FindMinimum.htm">FindMinimum</a>
</li>
<li>
<a href="../MathNet.Numerics/FindRoots.htm">FindRoots</a>
</li>
<li>
<a href="../MathNet.Numerics/Fit.htm">Fit</a>
</li>
<li>
<a href="../MathNet.Numerics/Generate.htm">Generate</a>
</li>
<li>
<a href="../MathNet.Numerics/GoodnessOfFit.htm">GoodnessOfFit</a>
</li>
<li>
<a href="../MathNet.Numerics/Integrate.htm">Integrate</a>
</li>
<li>
<a href="../MathNet.Numerics/Interpolate.htm">Interpolate</a>
</li>
<li>
<a href="../MathNet.Numerics/InvalidParameterException.htm">InvalidParameterException</a>
</li>
<li>
<a href="../MathNet.Numerics/IPrecisionSupport`1.htm">IPrecisionSupport&lt;T&gt;</a>
</li>
<li>
<a href="../MathNet.Numerics/MemoryAllocationException.htm">MemoryAllocationException</a>
</li>
<li>
<a href="../MathNet.Numerics/NativeInterfaceException.htm">NativeInterfaceException</a>
</li>
<li>
<a href="../MathNet.Numerics/NonConvergenceException.htm">NonConvergenceException</a>
</li>
<li>
<a href="../MathNet.Numerics/NumericalBreakdownException.htm">NumericalBreakdownException</a>
</li>
<li>
<a href="../MathNet.Numerics/Permutation.htm">Permutation</a>
</li>
<li>
<a href="../MathNet.Numerics/Polynomial.htm">Polynomial</a>
</li>
<li>
<a href="../MathNet.Numerics/Precision.htm">Precision</a>
</li>
<li>
<a href="../MathNet.Numerics/Series.htm">Series</a>
</li>
<li>
<a href="../MathNet.Numerics/SingularUMatrixException.htm">SingularUMatrixException</a>
</li>
<li>
<a href="../MathNet.Numerics/Sorting.htm">Sorting</a>
</li>
<li>
<a href="../MathNet.Numerics/SpecialFunctions.htm">SpecialFunctions</a>
</li>
<li>
<a href="../MathNet.Numerics/TestFunctions.htm">TestFunctions</a>
</li>
<li>
<a href="../MathNet.Numerics/Trig.htm">Trig</a>
</li>
<li>
<a href="../MathNet.Numerics/Window.htm">Window</a>
</li>
</ul>
</div>
</div>
<div class="header">
<p class="class"><strong>Type</strong> Euclid</p>
<p><strong>Namespace</strong> MathNet.Numerics</p>
</div>
<div class="sub-header">
<div id="summary">Integer number theory functions.
</div>
<h3 class="section">Static Functions</h3>
<ul>
<li><a href="../MathNet.Numerics/Euclid.htm#CeilingToPowerOfTwo">CeilingToPowerOfTwo</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#CeilingToPowerOfTwo">CeilingToPowerOfTwo</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#ExtendedGreatestCommonDivisor">ExtendedGreatestCommonDivisor</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#ExtendedGreatestCommonDivisor">ExtendedGreatestCommonDivisor</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#GreatestCommonDivisor">GreatestCommonDivisor</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#GreatestCommonDivisor">GreatestCommonDivisor</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#GreatestCommonDivisor">GreatestCommonDivisor</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#GreatestCommonDivisor">GreatestCommonDivisor</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#GreatestCommonDivisor">GreatestCommonDivisor</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#IsEven">IsEven</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#IsEven">IsEven</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#IsOdd">IsOdd</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#IsOdd">IsOdd</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#IsPerfectSquare">IsPerfectSquare</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#IsPerfectSquare">IsPerfectSquare</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#IsPowerOfTwo">IsPowerOfTwo</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#IsPowerOfTwo">IsPowerOfTwo</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#LeastCommonMultiple">LeastCommonMultiple</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#LeastCommonMultiple">LeastCommonMultiple</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#LeastCommonMultiple">LeastCommonMultiple</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#LeastCommonMultiple">LeastCommonMultiple</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#LeastCommonMultiple">LeastCommonMultiple</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Log2">Log2</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Modulus">Modulus</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Modulus">Modulus</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Modulus">Modulus</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Modulus">Modulus</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Modulus">Modulus</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#PowerOfTwo">PowerOfTwo</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#PowerOfTwo">PowerOfTwo</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Remainder">Remainder</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Remainder">Remainder</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Remainder">Remainder</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Remainder">Remainder</a></li>
<li><a href="../MathNet.Numerics/Euclid.htm#Remainder">Remainder</a></li>
</ul>
</div>
<h3 class="section">Public Static Functions</h3>
<div id="CeilingToPowerOfTwo" class="method">
<h4><span title="System.int">int</span> <strong>CeilingToPowerOfTwo</strong>(this <span title="System.int">int</span> number)</h4>
<div class="content">Find the closest perfect power of two that is larger or equal to the provided
32 bit integer.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.int">int</span></code> number</h6>
<p class="comments">The number of which to find the closest upper power of two. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.int">int</span></code></h6>
<p>A power of two. </p>
</div>
</div>
</div>
<div id="CeilingToPowerOfTwo" class="method">
<h4><span title="System.long">long</span> <strong>CeilingToPowerOfTwo</strong>(this <span title="System.long">long</span> number)</h4>
<div class="content">Find the closest perfect power of two that is larger or equal to the provided
64 bit integer.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.long">long</span></code> number</h6>
<p class="comments">The number of which to find the closest upper power of two. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.long">long</span></code></h6>
<p>A power of two. </p>
</div>
</div>
</div>
<div id="ExtendedGreatestCommonDivisor" class="method">
<h4><span title="System.long">long</span> <strong>ExtendedGreatestCommonDivisor</strong>(<span title="System.long">long</span> a, <span title="System.long">long</span> b, <span title="System.Int64&">Int64&amp;</span> x, <span title="System.Int64&">Int64&amp;</span> y)</h4>
<div class="content">
</div>
</div>
<div id="ExtendedGreatestCommonDivisor" class="method">
<h4><span title="System.Numerics.BigInteger">BigInteger</span> <strong>ExtendedGreatestCommonDivisor</strong>(<span title="System.Numerics.BigInteger">BigInteger</span> a, <span title="System.Numerics.BigInteger">BigInteger</span> b, <span title="System.Numerics.BigInteger&">BigInteger&amp;</span> x, <span title="System.Numerics.BigInteger&">BigInteger&amp;</span> y)</h4>
<div class="content">
</div>
</div>
<div id="GreatestCommonDivisor" class="method">
<h4><span title="System.Numerics.BigInteger">BigInteger</span> <strong>GreatestCommonDivisor</strong>(<span title="System.Numerics.BigInteger[]">BigInteger[]</span> integers)</h4>
<div class="content">Returns the greatest common divisor ( <code>gcd</code> ) of a set of big integers.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Numerics.BigInteger[]">BigInteger[]</span></code> integers</h6>
<p class="comments">List of Integers. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.Numerics.BigInteger">BigInteger</span></code></h6>
<p>Greatest common divisor <code>gcd</code> (list of integers) </p>
</div>
</div>
</div>
<div id="GreatestCommonDivisor" class="method">
<h4><span title="System.Numerics.BigInteger">BigInteger</span> <strong>GreatestCommonDivisor</strong>(<span title="System.Numerics.BigInteger">BigInteger</span> a, <span title="System.Numerics.BigInteger">BigInteger</span> b)</h4>
<div class="content">Returns the greatest common divisor ( <code>gcd</code> ) of two big integers.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Numerics.BigInteger">BigInteger</span></code> a</h6>
<p class="comments">First Integer: a. </p>
<h6><code><span title="System.Numerics.BigInteger">BigInteger</span></code> b</h6>
<p class="comments">Second Integer: b. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.Numerics.BigInteger">BigInteger</span></code></h6>
<p>Greatest common divisor <code>gcd</code> (a,b) </p>
</div>
</div>
</div>
<div id="GreatestCommonDivisor" class="method">
<h4><span title="System.long">long</span> <strong>GreatestCommonDivisor</strong>(<span title="System.long">long</span> a, <span title="System.long">long</span> b)</h4>
<div class="content">Returns the greatest common divisor ( <code>gcd</code> ) of two integers using Euclid's algorithm.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.long">long</span></code> a</h6>
<p class="comments">First Integer: a. </p>
<h6><code><span title="System.long">long</span></code> b</h6>
<p class="comments">Second Integer: b. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.long">long</span></code></h6>
<p>Greatest common divisor <code>gcd</code> (a,b) </p>
</div>
</div>
</div>
<div id="GreatestCommonDivisor" class="method">
<h4><span title="System.long">long</span> <strong>GreatestCommonDivisor</strong>(<span title="System.Collections.Generic.IList<long>">IList&lt;long&gt;</span> integers)</h4>
<div class="content">Returns the greatest common divisor ( <code>gcd</code> ) of a set of integers using Euclid's
algorithm.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Collections.Generic.IList<long>">IList&lt;long&gt;</span></code> integers</h6>
<p class="comments">List of Integers. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.long">long</span></code></h6>
<p>Greatest common divisor <code>gcd</code> (list of integers) </p>
</div>
</div>
</div>
<div id="GreatestCommonDivisor" class="method">
<h4><span title="System.long">long</span> <strong>GreatestCommonDivisor</strong>(<span title="System.Int64[]">Int64[]</span> integers)</h4>
<div class="content">Returns the greatest common divisor ( <code>gcd</code> ) of a set of integers using Euclid's algorithm.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Int64[]">Int64[]</span></code> integers</h6>
<p class="comments">List of Integers. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.long">long</span></code></h6>
<p>Greatest common divisor <code>gcd</code> (list of integers) </p>
</div>
</div>
</div>
<div id="IsEven" class="method">
<h4><span title="System.bool">bool</span> <strong>IsEven</strong>(this <span title="System.int">int</span> number)</h4>
<div class="content">Find out whether the provided 32 bit integer is an even number.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.int">int</span></code> number</h6>
<p class="comments">The number to very whether it's even. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.bool">bool</span></code></h6>
<p>True if and only if it is an even number. </p>
</div>
</div>
</div>
<div id="IsEven" class="method">
<h4><span title="System.bool">bool</span> <strong>IsEven</strong>(this <span title="System.long">long</span> number)</h4>
<div class="content">Find out whether the provided 64 bit integer is an even number.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.long">long</span></code> number</h6>
<p class="comments">The number to very whether it's even. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.bool">bool</span></code></h6>
<p>True if and only if it is an even number. </p>
</div>
</div>
</div>
<div id="IsOdd" class="method">
<h4><span title="System.bool">bool</span> <strong>IsOdd</strong>(this <span title="System.int">int</span> number)</h4>
<div class="content">Find out whether the provided 32 bit integer is an odd number.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.int">int</span></code> number</h6>
<p class="comments">The number to very whether it's odd. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.bool">bool</span></code></h6>
<p>True if and only if it is an odd number. </p>
</div>
</div>
</div>
<div id="IsOdd" class="method">
<h4><span title="System.bool">bool</span> <strong>IsOdd</strong>(this <span title="System.long">long</span> number)</h4>
<div class="content">Find out whether the provided 64 bit integer is an odd number.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.long">long</span></code> number</h6>
<p class="comments">The number to very whether it's odd. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.bool">bool</span></code></h6>
<p>True if and only if it is an odd number. </p>
</div>
</div>
</div>
<div id="IsPerfectSquare" class="method">
<h4><span title="System.bool">bool</span> <strong>IsPerfectSquare</strong>(this <span title="System.int">int</span> number)</h4>
<div class="content">Find out whether the provided 32 bit integer is a perfect square, i.e. a square of an integer.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.int">int</span></code> number</h6>
<p class="comments">The number to very whether it's a perfect square. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.bool">bool</span></code></h6>
<p>True if and only if it is a perfect square. </p>
</div>
</div>
</div>
<div id="IsPerfectSquare" class="method">
<h4><span title="System.bool">bool</span> <strong>IsPerfectSquare</strong>(this <span title="System.long">long</span> number)</h4>
<div class="content">Find out whether the provided 64 bit integer is a perfect square, i.e. a square of an integer.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.long">long</span></code> number</h6>
<p class="comments">The number to very whether it's a perfect square. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.bool">bool</span></code></h6>
<p>True if and only if it is a perfect square. </p>
</div>
</div>
</div>
<div id="IsPowerOfTwo" class="method">
<h4><span title="System.bool">bool</span> <strong>IsPowerOfTwo</strong>(this <span title="System.long">long</span> number)</h4>
<div class="content">Find out whether the provided 64 bit integer is a perfect power of two.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.long">long</span></code> number</h6>
<p class="comments">The number to very whether it's a power of two. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.bool">bool</span></code></h6>
<p>True if and only if it is a power of two. </p>
</div>
</div>
</div>
<div id="IsPowerOfTwo" class="method">
<h4><span title="System.bool">bool</span> <strong>IsPowerOfTwo</strong>(this <span title="System.int">int</span> number)</h4>
<div class="content">Find out whether the provided 32 bit integer is a perfect power of two.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.int">int</span></code> number</h6>
<p class="comments">The number to very whether it's a power of two. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.bool">bool</span></code></h6>
<p>True if and only if it is a power of two. </p>
</div>
</div>
</div>
<div id="LeastCommonMultiple" class="method">
<h4><span title="System.Numerics.BigInteger">BigInteger</span> <strong>LeastCommonMultiple</strong>(<span title="System.Numerics.BigInteger">BigInteger</span> a, <span title="System.Numerics.BigInteger">BigInteger</span> b)</h4>
<div class="content">Returns the least common multiple ( <code>lcm</code> ) of two big integers.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Numerics.BigInteger">BigInteger</span></code> a</h6>
<p class="comments">First Integer: a. </p>
<h6><code><span title="System.Numerics.BigInteger">BigInteger</span></code> b</h6>
<p class="comments">Second Integer: b. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.Numerics.BigInteger">BigInteger</span></code></h6>
<p>Least common multiple <code>lcm</code> (a,b) </p>
</div>
</div>
</div>
<div id="LeastCommonMultiple" class="method">
<h4><span title="System.Numerics.BigInteger">BigInteger</span> <strong>LeastCommonMultiple</strong>(<span title="System.Numerics.BigInteger[]">BigInteger[]</span> integers)</h4>
<div class="content">Returns the least common multiple ( <code>lcm</code> ) of a set of big integers.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Numerics.BigInteger[]">BigInteger[]</span></code> integers</h6>
<p class="comments">List of Integers. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.Numerics.BigInteger">BigInteger</span></code></h6>
<p>Least common multiple <code>lcm</code> (list of integers) </p>
</div>
</div>
</div>
<div id="LeastCommonMultiple" class="method">
<h4><span title="System.long">long</span> <strong>LeastCommonMultiple</strong>(<span title="System.long">long</span> a, <span title="System.long">long</span> b)</h4>
<div class="content">Returns the least common multiple ( <code>lcm</code> ) of two integers using Euclid's algorithm.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.long">long</span></code> a</h6>
<p class="comments">First Integer: a. </p>
<h6><code><span title="System.long">long</span></code> b</h6>
<p class="comments">Second Integer: b. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.long">long</span></code></h6>
<p>Least common multiple <code>lcm</code> (a,b) </p>
</div>
</div>
</div>
<div id="LeastCommonMultiple" class="method">
<h4><span title="System.long">long</span> <strong>LeastCommonMultiple</strong>(<span title="System.Collections.Generic.IList<long>">IList&lt;long&gt;</span> integers)</h4>
<div class="content">Returns the least common multiple ( <code>lcm</code> ) of a set of integers using Euclid's algorithm.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Collections.Generic.IList<long>">IList&lt;long&gt;</span></code> integers</h6>
<p class="comments">List of Integers. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.long">long</span></code></h6>
<p>Least common multiple <code>lcm</code> (list of integers) </p>
</div>
</div>
</div>
<div id="LeastCommonMultiple" class="method">
<h4><span title="System.long">long</span> <strong>LeastCommonMultiple</strong>(<span title="System.Int64[]">Int64[]</span> integers)</h4>
<div class="content">Returns the least common multiple ( <code>lcm</code> ) of a set of integers using Euclid's algorithm.
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.Int64[]">Int64[]</span></code> integers</h6>
<p class="comments">List of Integers. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.long">long</span></code></h6>
<p>Least common multiple <code>lcm</code> (list of integers) </p>
</div>
</div>
</div>
<div id="Log2" class="method">
<h4><span title="System.int">int</span> <strong>Log2</strong>(this <span title="System.int">int</span> number)</h4>
<div class="content">Evaluate the binary logarithm of an integer number. <blockquote class="remarks">
Two-step method using a De Bruijn-like sequence table lookup.
</blockquote>
</div>
</div>
<div id="Modulus" class="method">
<h4><span title="System.Numerics.BigInteger">BigInteger</span> <strong>Modulus</strong>(<span title="System.Numerics.BigInteger">BigInteger</span> dividend, <span title="System.Numerics.BigInteger">BigInteger</span> divisor)</h4>
<div class="content">Canonical Modulus. The result has the sign of the divisor.
</div>
</div>
<div id="Modulus" class="method">
<h4><span title="System.long">long</span> <strong>Modulus</strong>(<span title="System.long">long</span> dividend, <span title="System.long">long</span> divisor)</h4>
<div class="content">Canonical Modulus. The result has the sign of the divisor.
</div>
</div>
<div id="Modulus" class="method">
<h4><span title="System.int">int</span> <strong>Modulus</strong>(<span title="System.int">int</span> dividend, <span title="System.int">int</span> divisor)</h4>
<div class="content">Canonical Modulus. The result has the sign of the divisor.
</div>
</div>
<div id="Modulus" class="method">
<h4><span title="System.float">float</span> <strong>Modulus</strong>(<span title="System.float">float</span> dividend, <span title="System.float">float</span> divisor)</h4>
<div class="content">Canonical Modulus. The result has the sign of the divisor.
</div>
</div>
<div id="Modulus" class="method">
<h4><span title="System.double">double</span> <strong>Modulus</strong>(<span title="System.double">double</span> dividend, <span title="System.double">double</span> divisor)</h4>
<div class="content">Canonical Modulus. The result has the sign of the divisor.
</div>
</div>
<div id="PowerOfTwo" class="method">
<h4><span title="System.long">long</span> <strong>PowerOfTwo</strong>(this <span title="System.long">long</span> exponent)</h4>
<div class="content">Raises 2 to the provided integer exponent (0 <= exponent < 63).
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.long">long</span></code> exponent</h6>
<p class="comments">The exponent to raise 2 up to. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.long">long</span></code></h6>
<p>2 ^ exponent. </p>
</div>
</div>
</div>
<div id="PowerOfTwo" class="method">
<h4><span title="System.int">int</span> <strong>PowerOfTwo</strong>(this <span title="System.int">int</span> exponent)</h4>
<div class="content">Raises 2 to the provided integer exponent (0 <= exponent < 31).
<div class="parameters">
<h5>Parameters</h5>
<h6><code><span title="System.int">int</span></code> exponent</h6>
<p class="comments">The exponent to raise 2 up to. </p>
</div>
<div class="return">
<h5>Return</h5>
<h6><code><span title="System.int">int</span></code></h6>
<p>2 ^ exponent. </p>
</div>
</div>
</div>
<div id="Remainder" class="method">
<h4><span title="System.Numerics.BigInteger">BigInteger</span> <strong>Remainder</strong>(<span title="System.Numerics.BigInteger">BigInteger</span> dividend, <span title="System.Numerics.BigInteger">BigInteger</span> divisor)</h4>
<div class="content">Remainder (% operator). The result has the sign of the dividend.
</div>
</div>
<div id="Remainder" class="method">
<h4><span title="System.long">long</span> <strong>Remainder</strong>(<span title="System.long">long</span> dividend, <span title="System.long">long</span> divisor)</h4>
<div class="content">Remainder (% operator). The result has the sign of the dividend.
</div>
</div>
<div id="Remainder" class="method">
<h4><span title="System.int">int</span> <strong>Remainder</strong>(<span title="System.int">int</span> dividend, <span title="System.int">int</span> divisor)</h4>
<div class="content">Remainder (% operator). The result has the sign of the dividend.
</div>
</div>
<div id="Remainder" class="method">
<h4><span title="System.float">float</span> <strong>Remainder</strong>(<span title="System.float">float</span> dividend, <span title="System.float">float</span> divisor)</h4>
<div class="content">Remainder (% operator). The result has the sign of the dividend.
</div>
</div>
<div id="Remainder" class="method">
<h4><span title="System.double">double</span> <strong>Remainder</strong>(<span title="System.double">double</span> dividend, <span title="System.double">double</span> divisor)</h4>
<div class="content">Remainder (% operator). The result has the sign of the dividend.
</div>
</div>
<div id="footer">
<p>Based on v5.0.0.0 of MathNet.Numerics (Math.NET Numerics)</p>
<p>Generated by <a href="http://docu.jagregory.com">docu</a></p>
</div>
</body>
</html>