Edit

Share via


WorksheetFunction.Complex(Object, Object, Object) Method

Definition

Converts real and imaginary coefficients into a complex number of the form x + yi or x + yj.

public string Complex (object Arg1, object Arg2, object Arg3);
Public Function Complex (Arg1 As Object, Arg2 As Object, Optional Arg3 As Object) As String

Parameters

Arg1
Object

The real coefficient of the complex number.

Arg2
Object

The imaginary coefficient of the complex number.

Arg3
Object

The suffix for the imaginary component of the complex number. If omitted, suffix is assumed to be "i".

Returns

Remarks

All complex number functions accept "i" and "j" for suffix, but neither "I" nor "J". Using uppercase generates an error. All functions that accept two or more complex numbers require that all suffixes match.

If Arg1 is nonnumeric, Complex generates an error.

If Arg2 is nonnumeric, Complex generates an error.

If Arg3 is neither "i" nor "j", Complex generates an error.

Applies to