Complex.Division Operator
Definition
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.
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;
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.
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);
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:
$\frac{ac}{c^2 + d^2} + (\frac{ad}{c^2 + d^2})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
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);
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:
$\frac{ac}{c^2} + (\frac{bc}{c^2})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
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);
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:
$\frac{ac + cd}{c^2 + d^2} + (\frac{bc - ad}{c^2 + d^2})i$
Languages that don't support custom operators and operator overloading can call the Complex.Divide(Complex, Double) equivalent method instead.