Oh, it seems you better use 5.2 instead of 5.3 (or update lua code) - some functions were deprecated in 5.3 (see http://www.lua.org/manual/5.3/manual.html#8.2).
The following functions were deprecated in the mathematical library: `atan2`, `cosh`, `sinh`, `tanh`, `pow`, `frexp`, and `ldexp`. You can replace `math.pow(x,y)` with `x^y; you can replace `math.atan2` with `math.atan`, which now accepts one or two parameters; you can replace `math.ldexp(x,exp)` with `x * 2.0^exp`. For the other operations, you can either use an external library or implement them in Lua.