-
Notifications
You must be signed in to change notification settings - Fork 243
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
RealScalaCheckSuite.x.pow(k).nroot(k) = x
failed
#1106
Comments
It appears to be acting on test("rational val") {
import spire.math.Fractional.RationalIsFractional
val x = Rational(2759766405657757L, SafeLong(BigInt("1532495540865888858358347027150309183618739122183602176")))
assertEquals(x.pow(3).nroot(3), x) // Rational fails at 3, Real fails at 6
} This equality fails for sqrt too if we look large enough: test("rational val") {
import spire.math.Fractional.RationalIsFractional
val x = Rational(2759766405657757L, SafeLong(BigInt(2).pow(1000)))
assertEquals(x.pow(2).nroot(2), x) // fails
}
|
Thanks for looking into this! It seems strange to make that Testing with the |
It wouldn't be the first time someone suggested I'll try getting around to a PR for these changes in the next couple days! |
https://github.com/typelevel/spire/runs/4087917370?check_suite_focus=true#step:8:1039
The text was updated successfully, but these errors were encountered: