Please rid me of this goto

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 24 02:04:55 PDT 2016


On Friday, 24 June 2016 at 06:58:14 UTC, Martin Tschierschke 
wrote:
> On Thursday, 23 June 2016 at 23:18:03 UTC, H. S. Teoh wrote:
>> On Thu, Jun 23, 2016 at 11:14:08PM +0000, deadalnix via 
>> Digitalmars-d wrote:
>>> On Thursday, 23 June 2016 at 22:53:59 UTC, H. S. Teoh wrote:
>>> > This argument only works for discrete sets.  If n and m are 
>>> > reals, you'd need a different argument.
>>> > 
>>> 
>>> For reals, you can use limits/continuation as argument.
>>
>> The problem with that is that you get two different answers:
>>
>> 	lim  x^y = 0
>> 	x->0
>>
>> but:
>>
>> 	lim  x^y = 1
>> 	y->0
>>
>> So it's not clear what ought to happen when both x and y 
>> approach 0.
>>
>> [...]
> First: lim  x^x = 1
>        x->0
>
> Second: Just look at Wikipedia and take the IEEE floating point 
> standard:
> https://en.wikipedia.org/wiki/Exponentiation#Zero_to_the_power_of_zero

But is even more funky...

NaN^-1 = NaN
NaN^0 = 1.0
NaN^1 = NaN

Inf^-1 = 0.0
Inf^0 = 1.0
Inf^1 = Inf

:-)



More information about the Digitalmars-d mailing list