Re: [pure-lang-users] math.pure
Status: Beta
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-08-23 11:48:32
|
Albert Graef wrote: > Well, my definition of complex (^) of course computes all powers in > polar representation (and then converts them back to rectangular if > needed). This is actually overkill, so I'm just using the plain ol' x^y = exp(ln x*y) now (after converting x to complex if necessary), that works just fine, computes the principle values and also treats the corner cases correctly. Problem solved. :) Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |