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

Inf becomes -Inf in rational simplifier sometimes #541

Open
shashi opened this issue Aug 14, 2023 · 0 comments
Open

Inf becomes -Inf in rational simplifier sometimes #541

shashi opened this issue Aug 14, 2023 · 0 comments

Comments

@shashi
Copy link
Member

shashi commented Aug 14, 2023

Caught by the fuzzer

Weird bug here:
d = Dict{Any, Rational{BigInt}}(a => 1//1, d => -2//1, g => -2//3, b => -1//1, e => 5//3, c => 2//1)
r = (g - a) / (2a*(b^2 - (3//5))*(e + b^2 + 2d + 1 / (a^2))) + ((-2//1)*(a^2)*(g^2)) / (a + 1 / b) + ((1//2)*c*(a^6)*(d^2)*(1 / (a^2) - b)) / (b^4)
l = (((1//2) / a) / (d + 1 / (a^2) + b^2 + d + e)) / (((b^2) - (3//5)) / (g - a)) + ((g / (-1//2))) / ((a + 1 / b + (1//2) - (1//2)) / (g / (1 / (a^2)))) + ((e - c))*(((0//1))*((a^3) - b))*(((1 / (a^2)) - (1//2 + 2//1*im)) / ((a^3) / a))*((d + (1//2 + 2//1*im)) - ((0//1) / (1 / (a^2)))) + ((1 / b)*d*c*a)*((1 / b)*d*(1//2)*(1 / b))*((a^3))*((1 / b) / (1 / (a^2)))*((1 / (a^2)) - b)
rl = 1//0 + 0//1*im
rr = -1//0
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

1 participant