issue 7006 - std.math.pow (integral, integral) crashes on negative exponents

Timon Gehr timon.gehr at gmx.ch
Wed Dec 18 00:49:47 UTC 2019


On 18.12.19 01:37, Timon Gehr wrote:
> ...
> Also:
> 
> ...

Oh, and not to forget, of course exp((1.0/0.0)*log(1.0)) is NaN while 
pow(1.0,1.0/0.0) is 1, also invalidating the claim that allowing the 
implementation of pow(x,y) as exp(y*log(x)) was a goal somehow aided by 
treating pow(0.0,0.0) and pow(1.0,1.0/0.0) differently.


More information about the Digitalmars-d mailing list