This is lmamp, an arbitrary precision library for Lua. It is based on the
MAPM library written by Michael C. Ring, formerly available at
	http://www.tc.umn.edu/~ringx004/mapm-main.html

To build the library and run a simple test, just do make.
If Lua is not installed in /usr/local, tell make:
	make LUA_TOPDIR=/var/tmp/lhf/lua-5.5.0/install

To install the library where Lua can find it, use a variant of these:
	make install
	sudo make install
	sudo make install LIBDIR=/usr/local/lib/lua/5.5

For detailed installation instructions, see
	https://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html

For the latest version of this library, see
	https://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lmapm

The library is simple and intuitive; see the summary below.
Read test.lua to see the library in action.

This code is hereby placed in the public domain and also under the MIT license.
The MAPM code in src/ has its own license. See src/README.

Please send comments, suggestions, and bug reports to lhf@tecgraf.puc-rio.br .

mapm library:
__add(x,y)	acosh(x)	digitsin(x)	log(x)		sincos(x)
__div(x,y)	add(x,y)	div(x,y)	log10(x)	sinh(x)
__eq(x,y)	asin(x)		exp(x)		mod(x,y)	sqrt(x)
__le(x,y)	asinh(x)	exponent(x)	mul(x,y)	sub(x,y)
__lt(x,y)	atan(x)		factorial(x)	neg(x)		tan(x)
__mod(x,y)	atan2(y,x)	floor(x)	new(x)		tanh(x)
__mul(x,y)	atanh(x)	gcd(x,y)	npow(x,n)	tofixed(x,[n])
__pow(x,y)	cbrt(x)		idiv(x,y)	pi		tonumber(x)
__sub(x,y)	ceil(x)		inv(x)		pow(x,y)	tostring(x,[n])
__tostring(x)	compare(x,y)	iseven(x)	quotrem(x,y)	version
__unm(x)	cos(x)		isinteger(x)	round(x)
abs(x)		cosh(x)		isodd(x)	sign(x)
acos(x)		digits([n])	lcm(x,y)	sin(x)
