numbas/Numbas — Issue #72: Powers of purely imaginary numbers
Author: BillFoster
Created: 2011-10-30 22:11:08+00:00
State: open

There is a problem with powers of i which are multiples of 4

e.g. $\simplify{{2i}^4}$ gives 160i - for some reason a 0 is inserted and an i appears incorrectly. Works ok for all powers other than multiples of 4 - wrong for power 8 as well. Seems to be ok for complex numbers which are not purely imaginary.