chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Possible numbers bug


From: Tobia Conforto
Subject: Re: [Chicken-users] Possible numbers bug
Date: Wed, 1 Jun 2011 20:56:52 +0200

Hi guys,

it’s not strictly about Chicken, but a quick note about 0^0 is in order.

Dominic Pearson wrote:
Hello folks,
I am trying to compute the sum i = 0 to n where n = 1000 of n^n

Panos Stergiotis wrote:
Total[Table[i^i, {i, 1, 1000}]] + 1 yields
[...]
The + 1 is because 0^0 is not defined in mathematica

It’s more than that, 0^0 is not defined in Maths.

Simply put:

lim(0^x) for x→0 = 0
lim(x^0) for x→0 = 1

Therefore 0^0 has more than one solution -or- is undefined.

Graphical explanation: if you plot the surface z = x^y, you will see that it approaches the origin both with value constantly 1 from one direction (along the x axis, where y = 0) and with value constantly 0 from the other (along the y axis, where x = 0). Therefore, at the very origin, both 0 and 1 are solutions! Moreover, all numbers between 0 and 1 seem to be solutions too, looking at the graph. (Other numbers would be too, if you plotted the other quadrants of the surface… some of which are imaginary :-)
Cheers

Tobia

reply via email to

[Prev in Thread] Current Thread [Next in Thread]