Partager via


complex Members

Reference

Constructors

complex

Constructs a complex number with specified real and imaginary parts or as a copy of some other complex number.

Typedefs

value_type

A type that represents the data type used to represent the real and imaginary parts of a complex number.

Member Functions

imag

Extracts the imaginary component of a complex number.

real

Extracts the real component of a complex number.

Operators

operator*=

Multiplies a target complex number by a factor, which may be complex or be the same type as are the real and imaginary parts of the complex number.

operator+=

Adds a number to a target complex number, where the number added may be complex or of the same type as are the real and imaginary parts of the complex number to which it is added.

operator-=

Subtracts a number from a target complex number, where the number subtracted may be complex or of the same type as are the real and imaginary parts of the complex number to which it is added.

operator/=

Divides a target complex number by a divisor, which may be complex or be the same type as are the real and imaginary parts of the complex number.

operator=

Assigns a number to a target complex number, where the number assigned may be complex or of the same type as are the real and imaginary parts of the complex number to which it is being assigned.

See Also

Concepts

complex Class

Thread Safety in the Standard C++ Library