Message87974
That no unambiguous conversion between complex and int is defined is
exactly the reason for this error message. You could want the absolute
value, the real part, the imaginary part, or even the polar angle...
int(abs(z)) works as intended, giving you the absolute value of the
complex number, which is 1 for 1j**2. |
|
Date |
User |
Action |
Args |
2009-05-17 09:21:07 | georg.brandl | set | recipients:
+ georg.brandl, aletornw |
2009-05-17 09:21:07 | georg.brandl | set | messageid: <1242552067.21.0.0780606978428.issue6044@psf.upfronthosting.co.za> |
2009-05-17 09:21:05 | georg.brandl | link | issue6044 messages |
2009-05-17 09:21:05 | georg.brandl | create | |
|