lua-users home
lua-l archive

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


No number x can solve x*x = -1, so its solution is not a number NaN...
Same with asin(2). No number x solves 2 = sin(x)

 
If that is a problem, try
        local nan_value = math.sqrt(-1)
or
        local nan_value = math.asin(2)

Math magic >.>

Reveal your secrets, wizard!