__builtin_cpow((0,0),(0,0))
Dave Korn
dave.korn@artimi.com
Wed Mar 16 21:37:00 GMT 2005
----Original Message----
>From: Ronny Peine
>Sent: 16 March 2005 17:34
> See for example:
> http://mathworld.wolfram.com/ExponentLaws.html
>
Ok, I did.
>Even though, gcc returns 1 for pow(0.0,0.0) in version 3.4.3 like many
>other c-compiler do. The same behaviour would be expected from cpow.
No, you're wrong (that the same behaviour would be expected from cpow).
See for example:
http://mathworld.wolfram.com/ExponentLaws.html
" Note that these rules apply in general only to real quantities, and can
give manifestly wrong results if they are blindly applied to complex
quantities. "
<g>
cheers,
DaveK
--
Can't think of a witty .sigline today....
More information about the Gcc
mailing list