This is a high-precision mathematical library for Lua 5.1 providing
about 64 decimal digits. It is based on the qd library available at
	http://crd.lbl.gov/~dhbailey/mpdist/

To try the library, just edit Makefile to reflect your installation of
Lua and then run make. This will build the library and run a simple
test. For detailed installation instructions, see
	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html

There is no manual but the library is simple and intuitive; see the
summary below. Read also test.lua, which shows the library in action.

This code is hereby placed in the public domain. qd has its own license.
Please send comments, suggestions, and bug reports to lhf@tecgraf.puc-rio.br .

-------------------------------------------------------------------------------

qd library:
 __add(x,y) 		 atan2(y,x) 		 pi 
 __div(x,y) 		 atanh(x) 		 pow(x,y) 
 __eq(x,y) 		 ceil(x) 		 random() 
 __idiv(x,y) 		 compare(x,y) 		 round(x) 
 __le(x,y) 		 cos(x) 		 sin(x) 
 __lt(x,y) 		 cosh(x) 		 sincos(x) 
 __mod(x,y) 		 digits([n]) 		 sincosh(x) 
 __mul(x,y) 		 div(x,y) 		 sinh(x) 
 __pow(x,y) 		 exp(x) 		 sqr(x) 
 __sub(x,y) 		 floor(x) 		 sqrt(x) 
 __tostring(x) 		 idiv(x,y) 		 sub(x,y) 
 __unm(x) 		 ipow(x,n) 		 tan(x) 
 abs(x) 		 iroot(x,n) 		 tanh(x) 
 acos(x) 		 log(x) 		 tonumber(x) 
 acosh(x) 		 log10(x) 		 tostring(x,[n]) 
 add(x,y) 		 mod(x,y) 		 trunc(x) 
 asin(x) 		 mul(x,y) 		 version 
 asinh(x) 		 neg(x) 
 atan(x) 		 new(x) 

-------------------------------------------------------------------------------
