Condividi tramite


<complex> Members

Reference

Functions

abs

Calculates the modulus of a complex number.

arg

Extracts the argument from a complex number.

conj

Returns the complex conjugate of a complex number.

cos

Returns the cosine of a complex number.

cosh

Returns the hyperbolic cosine of a complex number.

exp

Returns the exponential function of a complex number.

imag

Extracts the imaginary component of a complex number.

log

Returns the natural logarithm of a complex number.

log10

Returns the base 10 logarithm of a complex number.

norm

Extracts the norm of a complex number.

polar

Returns the complex number, which corresponds to a specified modulus and argument, in Cartesian form.

pow

Evaluates the complex number obtained by raising a base that is a complex number to the power of another complex number.

real

Extracts the real component of a complex number.

sin

Returns the sine of a complex number.

sinh

Returns the hyperbolic sine of a complex number.

sqrt

Returns the square root of a complex number.

tan

Returns the tangent of a complex number.

tanh

Returns the hyperbolic tangent of a complex number.

Operators

operator!=

Tests for inequality between two complex numbers, one or both of which may belong to the subset of the type for the real and imaginary parts.

operator*

Multiplies two complex numbers, one or both of which may belong to the subset of the type for the real and imaginary parts.

operator+

Adds two complex numbers, one or both of which may belong to the subset of the type for the real and imaginary parts.

operator-

Subtracts two complex numbers, one or both of which may belong to the subset of the type for the real and imaginary parts.

operator/

Divides two complex numbers, one or both of which may belong to the subset of the type for the real and imaginary parts.

operator<<

A template function that inserts a complex number into the output stream.

operator==

Tests for equality between two complex numbers, one or both of which may belong to the subset of the type for the real and imaginary parts.

operator>>

A template function that extracts a complex value from the input stream.

Classes

complex<double>

The explicitly specialized template class describes an object that stores an ordered pair of objects both of type double, first representing the real part of a complex number and the second representing the imaginary part.

complex<float>

The explicitly specialized template class describes an object that stores an ordered pair of objects both of type float, first representing the real part of a complex number and the second representing the imaginary part.

complex<long double>

The explicitly specialized template class describes an object that stores an ordered pair of objects both of type long double, first representing the real part of a complex number and the second representing the imaginary part.

complex

The template class describes an object used to represent the complex number system and perform complex arithmetic operations.

See Also

Reference

<complex>

Thread Safety in the Standard C++ Library