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

Failing unit test in illumos (OpenIndiana) #1932

Open
rikardn opened this issue Sep 25, 2022 · 3 comments
Open

Failing unit test in illumos (OpenIndiana) #1932

rikardn opened this issue Sep 25, 2022 · 3 comments

Comments

@rikardn
Copy link
Contributor

rikardn commented Sep 25, 2022

The evaluation of log(exp(-1)*pi/sin(I*sqrt(5))) in test_eval_double.cpp fails in the illumos OpenIndiana distribution.

The cause is a problem in the calculation of cpow in the illumos libc.

I opened an issue for illumos here: https://www.illumos.org/issues/15015

@bjodah
Copy link
Contributor

bjodah commented Oct 3, 2022

I guess this is patched in openlibm (which I believe has its roots in Sun's libm)?

@rikardn
Copy link
Contributor Author

rikardn commented Oct 3, 2022

Perhaps. It works fine in Julia at least:

julia> base = 4.62479554547*im
0.0 + 4.62479554547im

julia> exp = -1
-1

julia> base ^ exp
0.0 - 0.2162257747760337im

julia>

@isuruf
Copy link
Member

isuruf commented Oct 3, 2022

Wow, that's a pretty serious libc bug. How did that go unnoticed?

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

No branches or pull requests

3 participants