9 #include <boost/math/constants/constants.hpp>
20 #define RADIANS_PER_DEGREE ( boost::math::constants::pi<lua_Number>()/180.0 )
130 #if defined(LUA_COMPAT_LOG10)
172 for (i=2; i<=
n; i++) {
186 for (i=2; i<=
n; i++) {
218 default:
return luaL_error(L,
"wrong number of arguments");
246 #if defined(LUA_COMPAT_LOG10)
static int math_abs(lua_State *L)
#define lua_isnoneornil(L, n)
static int math_asin(lua_State *L)
static int math_frexp(lua_State *L)
static int math_randomseed(lua_State *L)
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
static int math_tan(lua_State *L)
static int math_max(lua_State *L)
LUA_API int lua_gettop(lua_State *L)
LUAMOD_API int luaopen_math(lua_State *L)
static int math_exp(lua_State *L)
static int math_cosh(lua_State *L)
GLint GLint GLint GLint GLint GLint y
#define luaL_argcheck(L, cond, numarg, extramsg)
static int math_random(lua_State *L)
static int math_sinh(lua_State *L)
static int math_modf(lua_State *L)
static int math_atan2(lua_State *L)
static const luaL_Reg mathlib[]
int floor(tfloat< T, S > lhs)
static int math_pow(lua_State *L)
static int math_min(lua_State *L)
LUALIB_API lua_Number luaL_checknumber(lua_State *L, int narg)
static int math_cos(lua_State *L)
static int math_floor(lua_State *L)
static int math_log(lua_State *L)
LUA_API void lua_pushnumber(lua_State *L, lua_Number n)
#define RADIANS_PER_DEGREE
static int math_deg(lua_State *L)
LUALIB_API lua_Unsigned luaL_checkunsigned(lua_State *L, int narg)
static int math_log10(lua_State *L)
GLint GLint GLint GLint GLint x
GLdouble GLdouble GLdouble r
#define luaL_newlib(L, l)
static int math_ldexp(lua_State *L)
LUALIB_API int luaL_error(lua_State *L, const char *fmt,...)
static int math_ceil(lua_State *L)
#define luaL_checkint(L, n)
static int math_fmod(lua_State *L)
static int math_acos(lua_State *L)
static int math_rad(lua_State *L)
static int math_sqrt(lua_State *L)
LUA_API void lua_pushinteger(lua_State *L, lua_Integer n)
static int math_atan(lua_State *L)
LUA_API void lua_setfield(lua_State *L, int idx, const char *k)
static int math_tanh(lua_State *L)
static int math_sin(lua_State *L)