davidedc / Algebrite

Computer Algebra System in Javascript (Typescript)
http://algebrite.org
MIT License
966 stars 59 forks source link

i raised to exponents bigger than 4 is not calculated correctly #175

Open Sekqies opened 10 months ago

Sekqies commented 10 months ago

We came across an issue in which when algebrite tries to calculate i raised to a power "n" such as n%4 = 1 and n>1, it evaluates it incorrectly

Examples: image image

In reality, i^5 = i^2 i^2 i = -1 -1 i = 1* i = i Same goes for i^9