Complex.Division Operator
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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. |
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;
let c1 = Complex(2.3, 3.7)
let c2 = Complex(1.4, 2.3)
let c3 = c1 / c2
Dim c1 As New Complex(2.3, 3.7)
Dim c2 As New Complex(1.4, 2.3)
Dim c3 As Complex = 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.
- 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);
public static System.Numerics.Complex operator / (double left, System.Numerics.Complex right);
static member ( / ) : double * System.Numerics.Complex -> System.Numerics.Complex
Public Shared Operator / (left As Double, right As Complex) As Complex
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:
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 |
- 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);
public static System.Numerics.Complex operator / (System.Numerics.Complex left, double right);
static member ( / ) : System.Numerics.Complex * double -> System.Numerics.Complex
Public Shared Operator / (left As Complex, right As Double) As Complex
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:
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 |
- 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);
public:
static System::Numerics::Complex operator /(System::Numerics::Complex left, System::Numerics::Complex right) = System::Numerics::IDivisionOperators<System::Numerics::Complex, System::Numerics::Complex, System::Numerics::Complex>::op_Division;
public static System.Numerics.Complex operator / (System.Numerics.Complex left, System.Numerics.Complex right);
static member ( / ) : System.Numerics.Complex * System.Numerics.Complex -> System.Numerics.Complex
Public Shared Operator / (left As Complex, right As Complex) As Complex
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:
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: