{"id":18652921,"url":"https://github.com/elixir-nx/complex","last_synced_at":"2026-03-09T18:36:24.764Z","repository":{"id":39709437,"uuid":"46629591","full_name":"elixir-nx/complex","owner":"elixir-nx","description":"Elixir library for types and mathematical functions for complex numbers","archived":false,"fork":false,"pushed_at":"2025-01-15T11:02:36.000Z","size":94,"stargazers_count":27,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-12-13T02:53:27.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elixir-nx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2015-11-21T19:12:12.000Z","updated_at":"2025-10-14T14:05:08.000Z","dependencies_parsed_at":"2024-11-07T07:09:29.759Z","dependency_job_id":"9a6ab074-8beb-4dd6-8305-b145e6f14c41","html_url":"https://github.com/elixir-nx/complex","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/elixir-nx/complex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-nx%2Fcomplex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-nx%2Fcomplex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-nx%2Fcomplex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-nx%2Fcomplex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elixir-nx","download_url":"https://codeload.github.com/elixir-nx/complex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-nx%2Fcomplex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30307547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T17:35:44.120Z","status":"ssl_error","status_checked_at":"2026-03-09T17:35:43.707Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T07:09:24.331Z","updated_at":"2026-03-09T18:36:24.604Z","avatar_url":"https://github.com/elixir-nx.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Complex\n\n*Complex* is a library for types and mathematical functions for complex\nnumbers.\n\nEach complex number is represented as a structure holding the real and\nimaginary part.  There are functions for creation and manipulation of\nthem. Users can `use Complex.Kernel` to get operators to work on a mix\nof real and complex numbers.\n\n## Installation\n\nAdd *complex* as a dependency in your `mix.exs` file.\n\n```elixir\ndef deps do\n  [{:complex, \"~\u003e 0.4.1\"}]\nend\n```\n\nAfter you are done, run `mix deps.get` in your shell to fetch and compile\nComplex. Start an interactive Elixir shell with `iex -S mix` and try the examples\nin the [examples section](#examples).\n\n## Documentation\n\nDocumentation for the package is available online via Hex at\n[http://hexdocs.pm/complex](http://hexdocs.pm/complex).  You can also generate\nlocal docs via the mix task\n\n```elixir\nmix docs\n```\n\nThis will generate the HTML documentation and place it into the `doc` subdirectory.\n\n## Examples\n\n```elixir\niex\u003e Complex.new(3, 4)\n%Complex{im: 4.0, re: 3.0}\n\niex\u003e Complex.new(0, 1)\n%Complex{im: 1.0, re: 0.0}\n```\n\n## License\n\n   Copyright 2015 Thomas Krauss\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-nx%2Fcomplex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felixir-nx%2Fcomplex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-nx%2Fcomplex/lists"}