Can you determine the sign of the polar form of a complex number?
jr244 at kent.ac.uk
Wed Oct 17 16:17:23 CEST 2007
schaefer.mp at gmail.com wrote:
> Just to clarify what I'm after:
> If you plot (-3)^n where n is a set of negative real numbers between 0
> and -20 for example, then you get a discontinuos line due to the
> problem mentioned above with fractional exponents.
It looks like you crash-landed in imaginary space, you may want to think
again about what you're up to :-) Complex numbers are not positive or
negative, as such.
If you want to obtain a continuous curve, then take the real part of the
complex number you obtain, as in "((-3+0j)**(-x)).real", it will fit
with what you obtain for integers.
More information about the Python-list