Complex::Add Method (Complex, Complex)
.NET Framework (current version)
Adds two complex numbers and returns the result.
Assembly: System.Numerics (in System.Numerics.dll)
Parameters
- left
-
Type:
System.Numerics::Complex
The first complex number to add.
- right
-
Type:
System.Numerics::Complex
The second complex number to add.
The addition of a complex number, a + bi, and a second complex number, c + di, takes the following form:
(a + c) + (b + d)i.
If the method call results in an overflow in either the real or imaginary component, the value of the component is either Double::PositiveInfinity or Double::NegativeInfinity.
Languages that do not support custom operators can use the Add method to perform addition with complex numbers.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone
Available since 8.1
Show: