Complex number constructors [C++ Reference]
Keywords: complex,complex_constructors
Date: 2010-04-19T02:21:08-0700

[[Complex number constructors]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## Complex number constructors

Syntax:

        #include <complex>
        complex( T real = T(), T imag = T() );
        complex( complex x );

The first constructor creates a complex number from rectangular coordinates. (To create a complex number from polar coordinates, use the polar function.) The second constructor copies another complex number.

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •