[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: native complex numbers - testers wanted
- From: David Jones <drj@...>
- Date: Fri, 8 Sep 2006 08:56:16 +0100
On 7 Sep 2006, at 21:57, Asko Kauppi wrote:
Thanks: was simply using the wrong formulas for pow.
Now, it still gives innacurate answers, but close to -1:
Lua 5.1.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio (complex)
Should something be done about this (like handling real powers
You mean you're not using <complex.h> and therefore cpow? I would
expect any respectable cpow to handle integer y separately.
And if you're rolling you're own, then yes you should.