Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the return value range of log(x) #589

Merged
merged 2 commits into from Mar 3, 2016
Merged

Conversation

tkoeppe
Copy link
Contributor

@tkoeppe tkoeppe commented Dec 18, 2015

image

@tkoeppe tkoeppe force-pushed the imagine branch 6 times, most recently from 00f61d8 to b79267b Compare December 19, 2015 00:05
is pi.
The complex natural (base-$e$) logarithm of \tcode{x}. For all \tcode{x},
\tcode{imag(log(x))} lies in the interval \crange{$-\pi$}{$\pi$}, and
when \tcode{x} is a negative real number, \tcode{imag(log(x))} is $\pi$.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is merely an editorial and typographic reformulation of the original wording. It is unclear how to reconcole this specification of log with Annex G of C11, which requires the phase the logarithm of a negative real number to depend on the sign of the imaginary part (which can be +/-0).

zygoloid added a commit that referenced this pull request Mar 3, 2016
[complex] Clarify the return value range of log(x)
@zygoloid zygoloid merged commit 8bed954 into cplusplus:master Mar 3, 2016
@tkoeppe tkoeppe deleted the imagine branch March 7, 2016 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants