lua-users home
lua-l archive

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


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