tmp/tmp2inc_3o5/{from.md → to.md}
RENAMED
|
@@ -11,17 +11,17 @@ template<class T> constexpr T imag(const complex<T>& x);
|
|
| 11 |
```
|
| 12 |
|
| 13 |
*Returns:* `x.imag()`.
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
-
template<class T> T abs(const complex<T>& x);
|
| 17 |
```
|
| 18 |
|
| 19 |
*Returns:* The magnitude of `x`.
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
-
template<class T> T arg(const complex<T>& x);
|
| 23 |
```
|
| 24 |
|
| 25 |
*Returns:* The phase angle of `x`, or `atan2(imag(x), real(x))`.
|
| 26 |
|
| 27 |
``` cpp
|
|
@@ -35,20 +35,20 @@ template<class T> constexpr complex<T> conj(const complex<T>& x);
|
|
| 35 |
```
|
| 36 |
|
| 37 |
*Returns:* The complex conjugate of `x`.
|
| 38 |
|
| 39 |
``` cpp
|
| 40 |
-
template<class T> complex<T> proj(const complex<T>& x);
|
| 41 |
```
|
| 42 |
|
| 43 |
*Returns:* The projection of `x` onto the Riemann sphere.
|
| 44 |
|
| 45 |
*Remarks:* Behaves the same as the C function `cproj`. See also: ISO C
|
| 46 |
7.3.9.5
|
| 47 |
|
| 48 |
``` cpp
|
| 49 |
-
template<class T> complex<T> polar(const T& rho, const T& theta = T());
|
| 50 |
```
|
| 51 |
|
| 52 |
*Preconditions:* `rho` is non-negative and non-NaN. `theta` is finite.
|
| 53 |
|
| 54 |
*Returns:* The `complex` value corresponding to a complex number whose
|
|
|
|
| 11 |
```
|
| 12 |
|
| 13 |
*Returns:* `x.imag()`.
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
+
template<class T> constexpr T abs(const complex<T>& x);
|
| 17 |
```
|
| 18 |
|
| 19 |
*Returns:* The magnitude of `x`.
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
+
template<class T> constexpr T arg(const complex<T>& x);
|
| 23 |
```
|
| 24 |
|
| 25 |
*Returns:* The phase angle of `x`, or `atan2(imag(x), real(x))`.
|
| 26 |
|
| 27 |
``` cpp
|
|
|
|
| 35 |
```
|
| 36 |
|
| 37 |
*Returns:* The complex conjugate of `x`.
|
| 38 |
|
| 39 |
``` cpp
|
| 40 |
+
template<class T> constexpr complex<T> proj(const complex<T>& x);
|
| 41 |
```
|
| 42 |
|
| 43 |
*Returns:* The projection of `x` onto the Riemann sphere.
|
| 44 |
|
| 45 |
*Remarks:* Behaves the same as the C function `cproj`. See also: ISO C
|
| 46 |
7.3.9.5
|
| 47 |
|
| 48 |
``` cpp
|
| 49 |
+
template<class T> constexpr complex<T> polar(const T& rho, const T& theta = T());
|
| 50 |
```
|
| 51 |
|
| 52 |
*Preconditions:* `rho` is non-negative and non-NaN. `theta` is finite.
|
| 53 |
|
| 54 |
*Returns:* The `complex` value corresponding to a complex number whose
|