Looks like there might be something wrong with the algorithm... I have no idea where, but I bet it has to do with that cube root algorithm again!
I will try it out again and remove that code that determines which cube root's angle is closest to the original complex input.
|