From Jason Turner

[complex.transcendentals]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpp0yvku6w/{from.md → to.md} +21 -11
tmp/tmpp0yvku6w/{from.md → to.md} RENAMED
@@ -1,54 +1,60 @@
1
- ### `complex` transcendentals <a id="complex.transcendentals">[[complex.transcendentals]]</a>
2
 
3
  ``` cpp
4
  template<class T> complex<T> acos(const complex<T>& x);
5
  ```
6
 
7
  *Returns:* The complex arc cosine of `x`.
8
 
9
- *Remarks:* Behaves the same as C function `cacos`, defined in 7.3.5.1.
 
10
 
11
  ``` cpp
12
  template<class T> complex<T> asin(const complex<T>& x);
13
  ```
14
 
15
  *Returns:* The complex arc sine of `x`.
16
 
17
- *Remarks:* Behaves the same as C function `casin`, defined in 7.3.5.2.
 
18
 
19
  ``` cpp
20
  template<class T> complex<T> atan(const complex<T>& x);
21
  ```
22
 
23
  *Returns:* The complex arc tangent of `x`.
24
 
25
- *Remarks:* Behaves the same as C function `catan`, defined in 7.3.5.3.
 
26
 
27
  ``` cpp
28
  template<class T> complex<T> acosh(const complex<T>& x);
29
  ```
30
 
31
  *Returns:* The complex arc hyperbolic cosine of `x`.
32
 
33
- *Remarks:* Behaves the same as C function `cacosh`, defined in 7.3.6.1.
 
34
 
35
  ``` cpp
36
  template<class T> complex<T> asinh(const complex<T>& x);
37
  ```
38
 
39
  *Returns:* The complex arc hyperbolic sine of `x`.
40
 
41
- *Remarks:* Behaves the same as C function `casinh`, defined in 7.3.6.2.
 
42
 
43
  ``` cpp
44
  template<class T> complex<T> atanh(const complex<T>& x);
45
  ```
46
 
47
  *Returns:* The complex arc hyperbolic tangent of `x`.
48
 
49
- *Remarks:* Behaves the same as C function `catanh`, defined in 7.3.6.3.
 
50
 
51
  ``` cpp
52
  template<class T> complex<T> cos(const complex<T>& x);
53
  ```
54
 
@@ -69,12 +75,14 @@ template<class T> complex<T> exp(const complex<T>& x);
69
  ``` cpp
70
  template<class T> complex<T> log(const complex<T>& x);
71
  ```
72
 
73
  *Returns:* The complex natural (base-e) logarithm of `x`. For all `x`,
74
- `imag(log(x))` lies in the interval \[-π, π\], and when `x` is a
75
- negative real number, `imag(log(x))` is π.
 
 
76
 
77
  *Remarks:* The branch cuts are along the negative real axis.
78
 
79
  ``` cpp
80
  template<class T> complex<T> log10(const complex<T>& x);
@@ -112,12 +120,14 @@ template<class T> complex<T> sinh(const complex<T>& x);
112
  ``` cpp
113
  template<class T> complex<T> sqrt(const complex<T>& x);
114
  ```
115
 
116
  *Returns:* The complex square root of `x`, in the range of the right
117
- half-plane. If the argument is a negative real number, the value
118
- returned lies on the positive imaginary axis.
 
 
119
 
120
  *Remarks:* The branch cuts are along the negative real axis.
121
 
122
  ``` cpp
123
  template<class T> complex<T> tan(const complex<T>& x);
 
1
+ ### Transcendentals <a id="complex.transcendentals">[[complex.transcendentals]]</a>
2
 
3
  ``` cpp
4
  template<class T> complex<T> acos(const complex<T>& x);
5
  ```
6
 
7
  *Returns:* The complex arc cosine of `x`.
8
 
9
+ *Remarks:* Behaves the same as the C function `cacos`. See also: ISO C
10
+ 7.3.5.1
11
 
12
  ``` cpp
13
  template<class T> complex<T> asin(const complex<T>& x);
14
  ```
15
 
16
  *Returns:* The complex arc sine of `x`.
17
 
18
+ *Remarks:* Behaves the same as the C function `casin`. See also: ISO C
19
+ 7.3.5.2
20
 
21
  ``` cpp
22
  template<class T> complex<T> atan(const complex<T>& x);
23
  ```
24
 
25
  *Returns:* The complex arc tangent of `x`.
26
 
27
+ *Remarks:* Behaves the same as the C function `catan`. See also: ISO C
28
+ 7.3.5.3
29
 
30
  ``` cpp
31
  template<class T> complex<T> acosh(const complex<T>& x);
32
  ```
33
 
34
  *Returns:* The complex arc hyperbolic cosine of `x`.
35
 
36
+ *Remarks:* Behaves the same as the C function `cacosh`. See also: ISO C
37
+ 7.3.6.1
38
 
39
  ``` cpp
40
  template<class T> complex<T> asinh(const complex<T>& x);
41
  ```
42
 
43
  *Returns:* The complex arc hyperbolic sine of `x`.
44
 
45
+ *Remarks:* Behaves the same as the C function `casinh`. See also: ISO C
46
+ 7.3.6.2
47
 
48
  ``` cpp
49
  template<class T> complex<T> atanh(const complex<T>& x);
50
  ```
51
 
52
  *Returns:* The complex arc hyperbolic tangent of `x`.
53
 
54
+ *Remarks:* Behaves the same as the C function `catanh`. See also: ISO C
55
+ 7.3.6.3
56
 
57
  ``` cpp
58
  template<class T> complex<T> cos(const complex<T>& x);
59
  ```
60
 
 
75
  ``` cpp
76
  template<class T> complex<T> log(const complex<T>& x);
77
  ```
78
 
79
  *Returns:* The complex natural (base-e) logarithm of `x`. For all `x`,
80
+ `imag(log(x))` lies in the interval \[-π, π\].
81
+
82
+ [*Note 1*: The semantics of this function are intended to be the same
83
+ in C++ as they are for `clog` in C. — *end note*]
84
 
85
  *Remarks:* The branch cuts are along the negative real axis.
86
 
87
  ``` cpp
88
  template<class T> complex<T> log10(const complex<T>& x);
 
120
  ``` cpp
121
  template<class T> complex<T> sqrt(const complex<T>& x);
122
  ```
123
 
124
  *Returns:* The complex square root of `x`, in the range of the right
125
+ half-plane.
126
+
127
+ [*Note 2*: The semantics of this function are intended to be the same
128
+ in C++ as they are for `csqrt` in C. — *end note*]
129
 
130
  *Remarks:* The branch cuts are along the negative real axis.
131
 
132
  ``` cpp
133
  template<class T> complex<T> tan(const complex<T>& x);