-
Notifications
You must be signed in to change notification settings - Fork 157
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
Unravelling the mystery of #861 #862
Comments
So Julia 1.9 is noticeably less-accurate at competing Julia 1.9julia> imag(inv(0.00064 + 0.0064im))
-154.70297029702968
julia> x = imag(inv(big"0.00064" + big"0.0064" * im))
-154.7029702970297029702970297029702970297029702970297029702970297029702970297017
julia> x - imag(inv(0.00064 + 0.0064im))
-2.335645428439141205041715414217202970297029702970297029702970170069474548472957e-14 Julia 1.6julia> imag(inv(0.00064 + 0.0064im))
-154.7029702970297
julia> x = imag(inv(big"0.00064" + big"0.0064" * im))
-154.7029702970297029702970297029702970297029702970297029702970297029702970297017
julia> x - imag(inv(0.00064 + 0.0064im))
5.065255146012595384427816560952970297029702970297029702970298299305254515270434e-15 Diffjulia> -154.70297029702968 - -154.7029702970297
2.842170943040401e-14 |
Upstream change seems to be JuliaLang/julia#47255 |
The two julia> prevfloat(-154.70297029702968)
-154.7029702970297 so it seems unlikely that they'll revert the upstream change. I wonder if we should compute the matrix in better precision on the PowerModels side. |
#861 needed to reduce some tolerances for a
det
check. That shouldn't have been necessary because computing the matrix of a 5x5 matrix with 17 non-zeros should have 1e-5 error!This issue is just for me to track my notes while debugging.
Julia 1.6
Julia 1.9
Diffing the two vectors shows
The text was updated successfully, but these errors were encountered: