Algebrite icon indicating copy to clipboard operation
Algebrite copied to clipboard

i^5 returns -i, but should be i

Open derivitaandrew opened this issue 3 years ago • 0 comments

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.

derivitaandrew avatar Jul 06 '21 20:07 derivitaandrew