{"id":15008113,"url":"https://github.com/jnndrc/lua-complex","last_synced_at":"2026-04-06T04:02:00.246Z","repository":{"id":257165268,"uuid":"852571255","full_name":"JnnDrc/lua-complex","owner":"JnnDrc","description":"A complex number library for lua made in C","archived":false,"fork":false,"pushed_at":"2024-09-14T19:15:17.000Z","size":624,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T20:00:19.339Z","etag":null,"topics":["c","complex-numbers","lua","math"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JnnDrc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-05T03:22:36.000Z","updated_at":"2024-09-14T19:20:05.000Z","dependencies_parsed_at":"2024-09-15T05:12:48.590Z","dependency_job_id":"d0264b65-6c85-41d7-bf91-012df9d8bbd3","html_url":"https://github.com/JnnDrc/lua-complex","commit_stats":null,"previous_names":["jnndrc/lua-complex"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JnnDrc%2Flua-complex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JnnDrc%2Flua-complex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JnnDrc%2Flua-complex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JnnDrc%2Flua-complex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JnnDrc","download_url":"https://codeload.github.com/JnnDrc/lua-complex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243180881,"owners_count":20249385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","complex-numbers","lua","math"],"created_at":"2024-09-24T19:15:10.501Z","updated_at":"2025-12-27T07:40:31.408Z","avatar_url":"https://github.com/JnnDrc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lua-Complex\n\nA simple complex number libray for Lua wrote in C\n\n## How to download\n\n1. Ensure dependencies\n\n   1. you need the Lua c API installed, you can move the lib to the\n      lib/{YOUR-PLATFORM} directory inside src or change the makefile to use your global installed,\n      for windows and linux users the lua54.lib and liblua54.a are already in the lib/Windows and\n      lib/Linux directories\n   2. GCC and GNU Make, (other compilers may work, but you need to change it in the Makefile)\n\n2. git clone this repo\n3. type `make install OS={YOUR-PLATFORM}`\n\n   1. Platforms:\n\n   - Windows (dependencies included)\n   - Linux (dependencies included)\n   - MacOS (dependencies need to be downloaded apart)\n   - BSD (dependencies need to be downloaded apart)\n\n   2. If your system isn't availble, you can compile the program\n      using your compilers CLI\n\n4. (OPTIONAL) type `make clean OS={YOUR-PLATFORM}` to clean the objects (if you want)\n5. copy the dynamic library to your lua project or to your lua global path/cpath\n6. require it and use :3\n\n## Documentation and Examples\n\nThe entire documentation can be found in the docs directory(WORK IN PROGRESS).  \nTest examples of all functions can be found on the tst directory.\n\n```lua\nlocal cpx = require(\"complex\")\n\nlocal z = cpx.new(2,3)\nlocal w = cpx.new(3,2)\n\nprint(cpx.to_string(z) .. \" + \" .. cpx.to_string(w) .. \" = \" .. cpx.to_string(cpx.add(z,w)))\n-- \u003e 2.0000000000 + 3.0000000000i + 3.0000000000 + 2.0000000000i = 5.0000000000 + 5.0000000000i\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnndrc%2Flua-complex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjnndrc%2Flua-complex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnndrc%2Flua-complex/lists"}