In my program I have a section like this:
angle = abs((PI/corners[i][1]))
print angle, (z-corners[i][0])
tempz = (z-corners[i][0])**angle
The output reads like this:
2.00000000000000 0j
...
tempz = (z-corners[i][0])**angle
File "real_mpfr.pyx", line 2935, in
sage.rings.real_mpfr.RealNumber.__pow__ (sage/rings/real_mpfr.c:19030)
ZeroDivisionError: 0.0 to a negative or complex power
"angle" is clearly not negative or complex, so I cant understand why
I'm getting this error. The program is in cython compiled in the sage
notebook. corners and I think maybe z also are numpy.complex types.
Does anyone know what I am doing wrong?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---