WorksheetFunction.ImSub Method

Returns the difference of two complex numbers 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 ImSub ( _
    Arg1 As Object, _
    Arg2 As Object _
) As String
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Object
Dim Arg2 As Object
Dim returnValue As String

returnValue = instance.ImSub(Arg1, Arg2)
string ImSub(
    Object Arg1,
    Object Arg2
)

Parameters

  • Arg1
    Type: System.Object

    Inumber1 - the complex number from which to subtract inumber2.

  • Arg2
    Type: System.Object

    Inumber2 - the complex number to subtract from inumber1.

Return Value

Type: System.String

Remarks

Use Complex(Object, Object, Object) to convert real and imaginary coefficients into a complex number.

The difference of two complex numbers is:

Figure 1: Difference of two complex numbers

Difference of two complex numbers

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace