Does anyone know of an approximation to raising a negative base to a
fractional exponent? For example, (-3)^-4.1 since this cannot be
computed without using imaginary numbers. Any help is appreciated.
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 17, 4:05 am, Ken Schutte <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Does anyone know of an approximation to raising a negative base to a
> > fractional exponent? For example, (-3)^-4.1 since this cannot be
> > computed without using imaginary numbers. Any help is appreciat
To compute the absolute value of a negative base raised to a
fractional exponent such as:
z = (-3)^4.5
you can compute the real and imaginary parts and then convert to the
polar form to get the correct value:
real_part = ( 3^-4.5 ) * cos( -4.5 * pi )
imag_part = ( 3^-4.5 ) * sin( -4.5 * pi )
|z
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. However, you can
compute what the correct absolute value of the the missing poi