[Haskell-cafe] Complex numbers and (**)
Henning Thielemann
lemming at henning-thielemann.de
Sun Aug 9 08:10:15 EDT 2009
On Sun, 9 Aug 2009, Paul Sargent wrote:
> Well, I'm an engineer rather than a mathematician, so I'm not 100% sure I followed everything
> on that page, but you seem to be saying that nth-root can't be done because we're using
> floating point, and floating point isn't accurate enough to represent 1/n.
Yes that's one problem.
> I basically agree with this, which was why I asked about nth-root functions, but for my uses
> (**) is good enough as long as complex zero works.
In NumericPrelude we have the 'root' function for that purpose.
More information about the Haskell-Cafe
mailing list