WorksheetFunction.ImLog2 Method
Returns the base-2 logarithm of a complex number in x + yi or x + yj text format.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function ImLog2 ( _
Arg1 As Object _
) As String
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Object
Dim returnValue As String
returnValue = instance.ImLog2(Arg1)
string ImLog2(
Object Arg1
)
Parameters
Arg1
Type: System.ObjectInumber - a complex number for which you want the base-2 logarithm.
Return Value
Type: System.String
Remarks
Use Complex(Object, Object, Object) to convert real and imaginary coefficients into a complex number.
The base-2 logarithm of a complex number can be calculated from the natural logarithm as follows:
Figure 1: Equation for base-2 logarithm of a complex number