-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Rational{IntN}(pi) are poor approximations to Pi #16513
Comments
And if Rational{64} means Int32//Int32, use Q32pi for Q64pi |
Is this operation meaningful? We have with the revised definitions
which is somewhat unfortunate. More precision is not necessarily a good thing.
|
@TotalVerb How do you get that? Please show me what you changed, how you redefined things. |
@JeffreySarnoff What I did to change the definition was:
But you can reproduce it without changing anything with
|
@TotalVerb Now I understand that. |
Apparently, not a pressing issue. I am retiring it. |
Good catch, I don't know how that happened! The problem is this line: Line 16 in dcde84d
It would be better to call rationalize(Int32, big(pi), tol=0) |
:) |
Fixes #16513. Changes generated macro to pure macro, so as to avoid breaking in future compiler changes.
Fixes #16513. Changes generated macro to pure macro, so as to avoid breaking in future compiler changes.
Fixes JuliaLang#16513. Changes generated macro to pure macro, so as to avoid breaking in future compiler changes.
These values are better approximations to Pi
Rational{Int32}(pi) = Int32(1068966896) // Int32(340262731)
Rational{Int64}(pi) = Int64(2646693125139304345) // Int64(842468587426513207)
Rational{Int128}(pi) = Int128(60728338969805745700507212595448411044) // Int128(19330430665609526556707216376512714945)
The text was updated successfully, but these errors were encountered: