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

i^5 returns -i, but should be i #144

Open
derivitaandrew opened this issue Jul 6, 2021 · 0 comments
Open

i^5 returns -i, but should be i #144

derivitaandrew opened this issue Jul 6, 2021 · 0 comments

Comments

@derivitaandrew
Copy link

i^(4k + 1) should return i when k is a positive integer, but Algebrite returns -i instead.

For example, i^5, i^9, and i^1001, should all return i, but return -i.

There's something wrong with exponentiation, in particular, since i*i*i*i*i returns i, as it should.

ksthicke added a commit to ksthicke/Algebrite that referenced this issue Jun 23, 2023
alsamitech added a commit to alsamitech/Algebrite-als that referenced this issue Jul 10, 2024
fix davidedc#144: bug in rational powers of -1
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