[OT] 0^^0

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 23 13:06:44 PDT 2016


On 23.06.2016 21:04, H. S. Teoh via Digitalmars-d wrote:
> On Thu, Jun 23, 2016 at 08:59:07PM +0200, Timon Gehr via Digitalmars-d wrote:
> [...]
>> Unrelated comment: 0^^0 should not overflow.
>
> Says who?
>
> 	http://www.askamathematician.com/2010/12/q-what-does-00-zero-raised-to-the-zeroth-power-equal-why-do-mathematicians-and-high-school-teachers-disagree/
> ...

According to your link, it is the 'Mathematician' who says that 0^^0 = 1.
This should be even less controversial in computer science circles. It's 
the choice that works for e.g. combinatorics and type theory.

http://mathforum.org/dr.math/faq/faq.0.to.0.power.html

I would not want to use a power function that does not work for (0,0).


More information about the Digitalmars-d mailing list