28 Numerics library [numerics]

28.4 Complex numbers [complex.numbers]

28.4.8 Transcendentals [complex.transcendentals]

```template<class T> constexpr complex<T> acos(const complex<T>& x); ```
Returns: The complex arc cosine of x.
Remarks: Behaves the same as the C function cacos.
```template<class T> constexpr complex<T> asin(const complex<T>& x); ```
Returns: The complex arc sine of x.
Remarks: Behaves the same as the C function casin.
```template<class T> constexpr complex<T> atan(const complex<T>& x); ```
Returns: The complex arc tangent of x.
Remarks: Behaves the same as the C function catan.
```template<class T> constexpr complex<T> acosh(const complex<T>& x); ```
Returns: The complex arc hyperbolic cosine of x.
Remarks: Behaves the same as the C function cacosh.
```template<class T> constexpr complex<T> asinh(const complex<T>& x); ```
Returns: The complex arc hyperbolic sine of x.
Remarks: Behaves the same as the C function casinh.
```template<class T> constexpr complex<T> atanh(const complex<T>& x); ```
Returns: The complex arc hyperbolic tangent of x.
Remarks: Behaves the same as the C function catanh.
```template<class T> constexpr complex<T> cos(const complex<T>& x); ```
Returns: The complex cosine of x.
```template<class T> constexpr complex<T> cosh(const complex<T>& x); ```
Returns: The complex hyperbolic cosine of x.
```template<class T> constexpr complex<T> exp(const complex<T>& x); ```
Returns: The complex base-e exponential of x.
```template<class T> constexpr complex<T> log(const complex<T>& x); ```
Returns: The complex natural (base-e) logarithm of x.
For all x, imag(log(x)) lies in the interval [, Ï€].
[Note 1:
The semantics of this function are intended to be the same in C++ as they are for clog in C.
â€” end note]
Remarks: The branch cuts are along the negative real axis.
```template<class T> constexpr complex<T> log10(const complex<T>& x); ```
Returns: The complex common (base-10) logarithm of x, defined as log(x) / log(10).
Remarks: The branch cuts are along the negative real axis.
```template<class T> constexpr complex<T> pow(const complex<T>& x, const complex<T>& y); template<class T> constexpr complex<T> pow(const complex<T>& x, const T& y); template<class T> constexpr complex<T> pow(const T& x, const complex<T>& y); ```
Returns: The complex power of base x raised to the power, defined as exp(y * log(x)).
The value returned for pow(0, 0) is implementation-defined.
Remarks: The branch cuts are along the negative real axis.
```template<class T> constexpr complex<T> sin(const complex<T>& x); ```
Returns: The complex sine of x.
```template<class T> constexpr complex<T> sinh(const complex<T>& x); ```
Returns: The complex hyperbolic sine of x.
```template<class T> constexpr complex<T> sqrt(const complex<T>& x); ```
Returns: The complex square root of x, in the range of the right half-plane.
[Note 2:
The semantics of this function are intended to be the same in C++ as they are for csqrt in C.
â€” end note]
Remarks: The branch cuts are along the negative real axis.
```template<class T> constexpr complex<T> tan(const complex<T>& x); ```
Returns: The complex tangent of x.
```template<class T> constexpr complex<T> tanh(const complex<T>& x); ```
Returns: The complex hyperbolic tangent of x.