-
Notifications
You must be signed in to change notification settings - Fork 226
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
pow-function pow(scalar, complex) in boost/math/cstdfloat/cstdfloat_complex_std.hpp might get wrong result #506
Comments
It seems like the suggested syntax would, in fact, improve clarity of actually raising Maybe it's dependent on certain conditions. On VC14.2 x64, I tried the following trivial program below, and it gets what seems like the correct answer.
|
Yes, for real-valued negative argument Many thanks for this good catch and your patient observation. I will fix this issue ASAP in a separate branch. |
My initial tendency is to correct this in the three regions of
That correction looks something like this:
|
I put in a few zero, inf, NaN checks and added relevant tests. |
This issue is still open with some new and relevant suggestions from the board. |
It's been a while since this issue surfaced, but now I'll try to restart work on this issue. Summary of open points as far as I understand includes:
At the moment, do not handle Cc: @jzmaddock |
At the board, it has been reported that
pow-function pow(scalar, complex) in
boost/math/cstdfloat/cstdfloat_complex_std.hpp
get wrong result.Current implementation:
I think that's correct:
The text was updated successfully, but these errors were encountered: