Files
cppdraft_translate/cppdraft/complex/transcendentals.md
2025-10-25 03:02:53 +03:00

7.7 KiB

[complex.transcendentals]

29 Numerics library [numerics]

29.4 Complex numbers [complex.numbers]

29.4.8 Transcendentals [complex.transcendentals]

🔗

template<class T> constexpr complex<T> acos(const complex<T>& x);

1

#

Returns: The complex arc cosine of x.

2

#

Remarks: Behaves the same as the C function cacos.

See also: ISO/IEC 9899:2024, 7.3.5.1

🔗

template<class T> constexpr complex<T> asin(const complex<T>& x);

3

#

Returns: The complex arc sine of x.

4

#

Remarks: Behaves the same as the C function casin.

See also: ISO/IEC 9899:2024, 7.3.5.2

🔗

template<class T> constexpr complex<T> atan(const complex<T>& x);

5

#

Returns: The complex arc tangent of x.

6

#

Remarks: Behaves the same as the C function catan.

See also: ISO/IEC 9899:2024, 7.3.5.3

🔗

template<class T> constexpr complex<T> acosh(const complex<T>& x);

7

#

Returns: The complex arc hyperbolic cosine of x.

8

#

Remarks: Behaves the same as the C function cacosh.

See also: ISO/IEC 9899:2024, 7.3.6.1

🔗

template<class T> constexpr complex<T> asinh(const complex<T>& x);

9

#

Returns: The complex arc hyperbolic sine of x.

10

#

Remarks: Behaves the same as the C function casinh.

See also: ISO/IEC 9899:2024, 7.3.6.2

🔗

template<class T> constexpr complex<T> atanh(const complex<T>& x);

11

#

Returns: The complex arc hyperbolic tangent of x.

12

#

Remarks: Behaves the same as the C function catanh.

See also: ISO/IEC 9899:2024, 7.3.6.3

🔗

template<class T> constexpr complex<T> cos(const complex<T>& x);

13

#

Returns: The complex cosine of x.

🔗

template<class T> constexpr complex<T> cosh(const complex<T>& x);

14

#

Returns: The complex hyperbolic cosine of x.

🔗

template<class T> constexpr complex<T> exp(const complex<T>& x);

15

#

Returns: The complex base-e exponential of x.

🔗

template<class T> constexpr complex<T> log(const complex<T>& x);

16

#

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]

17

#

Remarks: The branch cuts are along the negative real axis.

🔗

template<class T> constexpr complex<T> log10(const complex<T>& x);

18

#

Returns: The complex common (base-10) logarithm of x, defined aslog(x) / log(10).

19

#

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);

20

#

Returns: The complex power of base x raised to the yth power, defined asexp(y * log(x)).

The value returned forpow(0, 0) is implementation-defined.

21

#

Remarks: The branch cuts are along the negative real axis.

🔗

template<class T> constexpr complex<T> sin(const complex<T>& x);

22

#

Returns: The complex sine of x.

🔗

template<class T> constexpr complex<T> sinh(const complex<T>& x);

23

#

Returns: The complex hyperbolic sine of x.

🔗

template<class T> constexpr complex<T> sqrt(const complex<T>& x);

24

#

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]

25

#

Remarks: The branch cuts are along the negative real axis.

🔗

template<class T> constexpr complex<T> tan(const complex<T>& x);

26

#

Returns: The complex tangent of x.

🔗

template<class T> constexpr complex<T> tanh(const complex<T>& x);

27

#

Returns: The complex hyperbolic tangent of x.