Skip to content

Commit 498c264

Browse files
author
Dawn Perchik
committed
LWG2597 std::log misspecified for complex numbers
1 parent 03c2eae commit 498c264

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/numerics.tex

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,11 @@
11621162
\pnum
11631163
\returns
11641164
The complex natural (base-$e$) logarithm of \tcode{x}. For all \tcode{x},
1165-
\tcode{imag(log(x))} lies in the interval \crange{$-\pi$}{$\pi$}, and
1166-
when \tcode{x} is a negative real number, \tcode{imag(log(x))} is $\pi$.
1165+
\tcode{imag(log(x))} lies in the interval \crange{$-\pi$}{$\pi$}.
1166+
\begin{note}
1167+
The semantics of this function are intended to be the same in \Cpp
1168+
as they are for \tcode{clog} in C.
1169+
\end{note}
11671170

11681171
\pnum
11691172
\remarks
@@ -1240,8 +1243,10 @@
12401243
\returns
12411244
The complex square root of \tcode{x}, in the range of the right
12421245
half-plane.
1243-
If the argument is a negative real number, the
1244-
value returned lies on the positive imaginary axis.
1246+
\begin{note}
1247+
The semantics of this function are intended to be the same in \Cpp
1248+
as they are for \tcode{csqrt} in C.
1249+
\end{note}
12451250

12461251
\pnum
12471252
\remarks

0 commit comments

Comments
 (0)