Semantics of ^^

Chris Nicholson-Sauls ibisbasenji at gmail.com
Wed Dec 9 22:39:14 PST 2009


Bill Baxter wrote:
> On Tue, Dec 8, 2009 at 7:24 PM, Don <nospam at nospam.com> wrote:
>>>> * If y == 0,  x ^^ y is 1.
>>> Need to mention what happens when x is also 0.
>> No.  0^^0 is 1, as well.
> 
> Is it?  That's rather embarrassing for Wolfram Alpha, then (and
> presumably Mathematica, too) since they have it as "indeterminate":
>    http://www.wolframalpha.com/input/?i=0^0
> 

Confirmed with Mathematica.

In[2]:= 0^0
During evaluation of In[2]:= Power::indet: Indeterminate expression 0^0 encountered. >>
Out[2]= Indeterminate

-- Chris NS



More information about the Digitalmars-d mailing list