In article <dm03kg$ec2$> "Malcolm" <> writes:
> Probably the most important thing for the maths library is the exponential
> function, e^x. This can be expanded
>
> e^x = 1 + x + x^2/2! + x^3/3! + x^4/4! ...
>
> Now simply plug an imaginary value into the series, and you understand what
> it means to exponentiate by an imaginary power.
Oh. I would simply go for:
exp(real_part(z)) * (cos(imag_part(z)) + i * sin(imag_part(z)))
or something like that. Industrial strength and all that stuff.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland;
http://www.cwi.nl/~dik/