I've found and updated my C99 math library for Lua: http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/lmathx.tar.gz This code extends the math library with the following functions and values: acosh exp2 ilogb log1p rint asinh expm1 infinity log2 round atanh fdim isfinite logb scalbn cbrt fma isinf nan signbit copysign fpclassify isnan nearbyint trunc erf gamma isnormal nextafter erfc hypot lgamma remainder The binding is based on this page: http://www.dinkumware.com/manuals/default.aspx?manual=compleat&page=math.html The code does compile and run in Linux and Mac OS X 10.4. I haven't tried it anywhere else. The test program does not do much. All feedback welcome. Enjoy. --lhf