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

sinpi(::Rational{BigInt}) regression #48735

Closed
sostock opened this issue Feb 20, 2023 · 1 comment · Fixed by #50850
Closed

sinpi(::Rational{BigInt}) regression #48735

sostock opened this issue Feb 20, 2023 · 1 comment · Fixed by #50850
Assignees
Labels
maths Mathematical functions regression Regression in behavior compared to a previous version
Milestone

Comments

@sostock
Copy link
Contributor

sostock commented Feb 20, 2023

#41744 broke sinpi(::Rational{BigInt}), which worked in v1.6, v1.8 and v1.9-beta:

Before:

julia> sinpi(big(1//1))
0.0

After #41744:

julia> sinpi(big(1//1))
ERROR: MethodError: no method matching sinpi_kernel(::BigFloat)
[...]
@sostock sostock added the regression Regression in behavior compared to a previous version label Feb 20, 2023
@giordano giordano added the maths Mathematical functions label Feb 20, 2023
@giordano giordano added this to the 1.10 milestone Feb 20, 2023
@sostock
Copy link
Contributor Author

sostock commented Feb 21, 2023

Other Rational types have problems with overflow:

Before:

julia> sinpi(typemax(Int64)//1)
0.0

After:

julia> sinpi(typemin(Int64)//1)
ERROR: OverflowError: 2 * -9223372036854775808 overflowed for type Int64
[...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maths Mathematical functions regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants