[EMAIL PROTECTED] 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. -- http://mail.python.org/mailman/listinfo/python-list