issue 7006 - std.math.pow (integral, integral) crashes on negative exponents
Timon Gehr
timon.gehr at gmx.ch
Tue Dec 17 20:43:20 UTC 2019
On Tuesday, 17 December 2019 at 19:53:06 UTC, Ola Fosheim Grøstad
wrote:
> On Tuesday, 17 December 2019 at 19:41:22 UTC, Timon Gehr wrote:
>> That's precisely why it is funny that the two cases are
>> handled differently!
>
> I wish I could see the humour in this. I want to laugh as
> well... :-/
>
> ...
pow(1-ε,∞) is 0.
pow(1+ε,∞) is ∞.
pow is unstable at ∞ as much as at 0. It's plain weird to think
0.0 is rounded garbage but 1.0 is not, as 1.0+0.0 = 1.0.
More information about the Digitalmars-d
mailing list