Click or drag to resize

EuclidLog2 Method

Evaluate the binary logarithm of an integer number.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static int Log2(
	this int number
)

Parameters

number  Int32
The number whose binary logarithm is evaluated.

Return Value

Int32
The binary logarithm of number.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Int32. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Two-step method using a De Bruijn-like sequence table lookup.
See Also