Complex.Division Operator

Definition

Divides a specified number by another specified number, where at least one of them is a complex number, and the other could be a double-precision real number.

Overloads

Division(Double, Complex)

Divides a specified double-precision real number by a specified complex number.

Division(Complex, Double)

Divides a specified complex number by a specified double-precision real number.

Division(Complex, Complex)

Divides a specified complex number by another specified complex number.

Remarks

The Division operator allows performing division operations that involve complex numbers. It enables code such as the following:

Complex c1 = new Complex(2.3, 3.7);
Complex c2 = new Complex(1.4, 2.3);
Complex c3 = c1 / c2;

If the division results in an overflow in either the real or imaginary component, the value of that component is either Double.PositiveInfinity or Double.NegativeInfinity.

Languages that don't support custom operators and operator overloading can call the Divide equivalent group of method instead.

The Division operators that receive one double are more efficient than the operators that receive two Complex numbers.

Division(Double, Complex)

Source:
Complex.cs
Source:
Complex.cs
Source:
Complex.cs

Divides a specified double-precision real number by a specified complex number.

public static System.Numerics.Complex operator / (double left, System.Numerics.Complex right);

Parameters

left
Double

The double-precision real value to be divided.

right
Complex

The complex value to divide by.

Returns

The result of dividing left by right, as a complex number.

Remarks

The division of a real number (which can be regarded as the complex number a + 0i) and a complex number (c + di) takes the following form:

acc2+d2+(adc2+d2)i

Languages that don't support custom operators and operator overloading can call the Complex.Divide(Double, Complex) equivalent method instead.

See also

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

Division(Complex, Double)

Source:
Complex.cs
Source:
Complex.cs
Source:
Complex.cs

Divides a specified complex number by a specified double-precision real number.

public static System.Numerics.Complex operator / (System.Numerics.Complex left, double right);

Parameters

left
Complex

The complex value to be divided.

right
Double

The double-precision real value to divide by.

Returns

The result of dividing left by right, as a complex number.

Remarks

The division of a complex number (a + bi) and a real number (which can be regarded as the complex number c + 0i) takes the following form:

acc2+(bcc2)i

Languages that don't support custom operators and operator overloading can call the Complex.Divide(Complex, Double) equivalent method instead.

See also

Applies to

.NET 9 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9

Division(Complex, Complex)

Source:
Complex.cs
Source:
Complex.cs
Source:
Complex.cs

Divides a specified complex number by another specified complex number.

public static System.Numerics.Complex operator / (System.Numerics.Complex left, System.Numerics.Complex right);

Parameters

left
Complex

The complex value to be divided.

right
Complex

The complex value to divide by.

Returns

The result of dividing left by right.

Implements

Remarks

The division of a complex number, a + bi, and a second complex number, c + di, takes the following form:

ac+cdc2+d2+(bcadc2+d2)i

Languages that don't support custom operators and operator overloading can call the Complex.Divide(Complex, Double) equivalent method instead.

See also

Applies to

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0