• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

MakefileH A D15-Jan-2021868 4926

READMEH A D15-Jan-20211.2 KiB3021

lcomplex.cH A D15-Jan-20213.7 KiB173152

test.luaH A D15-Jan-2021751 4227

README

1This code provides support for complex numbers in Lua 5.3 using the functions
2available in C99.
3
4To try the library, just edit Makefile to reflect your installation of Lua and
5then run make. This will build the library and run a simple test. For detailed
6installation instructions, see
7	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html
8
9There is no manual: see the summary below and a C99 reference manual, e.g.
10http://www.dinkumware.com/manuals/default.aspx?manual=compleat&page=complex2.html
11
12Read also test.lua, which shows the library in action.
13
14This code is hereby placed in the public domain.
15
16Please send comments, suggestions, and bug reports to lhf@tecgraf.puc-rio.br .
17
18-------------------------------------------------------------------------------
19
20complex library:
21 __add(z,w) 	 __unm(z) 	 atan(z) 	 log(z) 	 sqrt(z)
22 __div(z,w) 	 abs(z) 	 atanh(z) 	 new(x,y) 	 tan(z)
23 __eq(z,w) 	 acos(z) 	 conj(z) 	 pow(z,w) 	 tanh(z)
24 __mul(z,w) 	 acosh(z) 	 cos(z) 	 proj(z) 	 tostring(z)
25 __pow(z,w) 	 arg(z) 	 cosh(z) 	 real(z) 	 version
26 __sub(z,w) 	 asin(z) 	 exp(z) 	 sin(z) 	 I
27 __tostring(z) 	 asinh(z) 	 imag(z) 	 sinh(z)
28
29-------------------------------------------------------------------------------
30