[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua minus null (-0)
- From: Patrick Donnelly <batrick@...>
- Date: Wed, 8 Jun 2011 13:57:55 -0400
On Wed, Jun 8, 2011 at 1:37 PM, Everett L Williams II
<rett@classicnet.net> wrote:
> The wiki entry also says that division by zero is only
> undefined when zero is divided by zero, and that is also false. Division by
> zero is always undefined and does not equal infinity.
batrick@neverwinter:~$ lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> = 1/0
inf
> = -1/0
-inf
> = 0/0
-nan
> = -0/0
-nan
The wiki is correct.
> As the divisor
> approaches zero, the result approaches infinity, but the function is
> discontinuous.
Stop spreading lies. All polynomial functions are continuous.
> Some idiot has been playing with the wiki entries.
Good thing you haven't tampered with it.
--
- Patrick Donnelly