-
Notifications
You must be signed in to change notification settings - Fork 9
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
fails on bigfloats
#39
Comments
Sorry I didn't see this before. |
So I guess that should just error. |
Thanks! Then I guess the issue is with IntervalArithmetic.jl, because |
Where do you see that? It seems to work for me:
|
I confirm I can replicate it on my machine. Ubuntu Linux 20.04, JuliaPro v1.5.0, CRlibm v0.8.0.
|
I meant where do you see that But now I see that |
Ah I see, it was to define methods with arguments specifying the rounding mode, like |
|
with @fph we were debugging an issue with our package InvariantMeasures.jl. In other words, my installation of CRlibm was shadowing MPFR:
Once I ran:
things started working. |
I don't understand what is going on here.
And which OS? Did you try in a new Julia session? |
Hi, I'm on Ubuntu 20.10, CRlibm 1.0.1. I think I found the reason: in CRlibm.jl line 152 we have
so, no fallback MPFR function is defined for sinpi and cospi. Adding them to the list gives rise to an error in the test, seems like the output of MPFR is not tight enough. |
Thanks. I think the problem is that MPFR does not seem to have a |
Yes, it is true; when calling sinpi on BigFloat an helper function is called
The function above assumes RoundToNearest when reducing x to x/pi and x/pi to [-1, 1]. I think this may be the reason why
is defined as
|
sinpi
fails on BigFloats:The text was updated successfully, but these errors were encountered: