Please rid me of this goto

Martin Tschierschke via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 23 23:58:14 PDT 2016


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


Regards mt.







More information about the Digitalmars-d mailing list