WorksheetFunction.Imaginary Method
Returns the imaginary coefficient 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 Imaginary ( _
Arg1 As Object _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Object
Dim returnValue As Double
returnValue = instance.Imaginary(Arg1)
double Imaginary(
Object Arg1
)
Parameters
Arg1
Type: System.ObjectInumber - a complex number for which you want the imaginary coefficient.
Return Value
Type: System.Double
Remarks
Use Complex(Object, Object, Object) to convert real and imaginary coefficients into a complex number.