https://github.com/semyon422/luajit-complex
Arithmetic for complex numbers (moved https://github.com/semyon422/aqua)
https://github.com/semyon422/luajit-complex
complex ffi lua luajit math
Last synced: 3 months ago
JSON representation
Arithmetic for complex numbers (moved https://github.com/semyon422/aqua)
- Host: GitHub
- URL: https://github.com/semyon422/luajit-complex
- Owner: semyon422
- License: gpl-3.0
- Created: 2019-11-21T16:34:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T20:30:36.000Z (almost 5 years ago)
- Last Synced: 2025-03-17T15:15:01.935Z (11 months ago)
- Topics: complex, ffi, lua, luajit, math
- Language: Lua
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# luajit-complex
Arithmetic for complex numbers
```
local cmath = require("cmath")
assert(1i ^ 1i == math.exp(-pi / 2))
```