◐ Shell
clean mode source ↗

std::complex::operator+(unary), operator-(unary) — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

template< class T > complex<T> operator+( const complex<T>& val );

(1)

template< class T > complex<T> operator-( const complex<T>& val );

(2)

Met en œuvre les analogues des opérateurs arithmétiques unaires pour les nombres complexes .

Original:

Implements the analogs of the unary arithmetic operators for complex numbers.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

1)

Retourne la valeur de son argument

Original:

Returns the value of its argument

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

Nie l'argument

Original:

Negates the argument

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Paramètres

val -

l'argument nombre complexe

Original:

the complex number argument

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Retourne la valeur

1)

une copie de l'argument, complex<T>(val)

Original:

a copy of the argument, complex<T>(val)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

nié argument, complex<T>(-val.real(), -val.imag())

Original:

negated argument, complex<T>(-val.real(), -val.imag())

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Voir aussi

effectue l'arithmétique sur les nombres complexes deux valeurs complexes ou d'un complexe et un scalaire

Original:

performs complex number arithmetics on two complex values or a complex and a scalar

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(fonction générique) [edit]