-
Notifications
You must be signed in to change notification settings - Fork 71
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
sinpi
returns unnecessarily wide intervals
#412
Comments
But yes it should be possible to implement |
Please feel free to file the PR and we can try and find what's going wrong. |
…(sinpi(0.5..0.5)) == 0. Fixes JuliaIntervals#412.
Filed the PR. With the implementation in the PR all tests pass, but |
..oops; all tests pass on my machine, but apparently not in the CI environment, where the same stack overflow bug pops up. So there is indeed something still to fix. |
It looks like
sinpi(x)
, wherex
is an interval, is defined internally assin(x*\pi)
. Unfortunately this yields intervals that could be tightened; for instance:while it should be possible to determine that the result is exactly 0.
If
sin
were defined in terms ofsinpi
, instead of the opposite, with an implementation analogous to the current one, then this problem would disappear. I tried to submit a PR, but some tests fail because of a related issue I just reported in CRlibm (JuliaIntervals/CRlibm.jl#39).The text was updated successfully, but these errors were encountered: