[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] mathx -- C99 math functions for Lua
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 23 Apr 2008 11:49:31 -0300
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