We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i^(4k + 1) should return i when k is a positive integer, but Algebrite returns -i instead.
i^(4k + 1)
i
-i
For example, i^5, i^9, and i^1001, should all return i, but return -i.
i^5
i^9
i^1001
There's something wrong with exponentiation, in particular, since i*i*i*i*i returns i, as it should.
i*i*i*i*i
The text was updated successfully, but these errors were encountered:
fix davidedc#144: bug in rational powers of -1
3b8607d
Merge pull request #1 from ksthicke/powerbug
061b687
No branches or pull requests
i^(4k + 1)
should returni
when k is a positive integer, but Algebrite returns-i
instead.For example,
i^5
,i^9
, andi^1001
, should all returni
, but return-i
.There's something wrong with exponentiation, in particular, since
i*i*i*i*i
returnsi
, as it should.The text was updated successfully, but these errors were encountered: