{"id":19190315,"url":"https://github.com/seigtm/complex","last_synced_at":"2025-04-20T07:34:22.844Z","repository":{"id":47006254,"uuid":"358986390","full_name":"seigtm/Complex","owner":"seigtm","description":"A simple complex numbers class that supports all basic operations.","archived":true,"fork":false,"pushed_at":"2021-11-28T09:27:05.000Z","size":3767,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T03:46:52.948Z","etag":null,"topics":["complex-number","complex-numbers","cpp","homework","homework-assignments"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/seigtm.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}},"created_at":"2021-04-17T21:30:54.000Z","updated_at":"2024-02-22T15:38:32.000Z","dependencies_parsed_at":"2022-09-02T22:23:51.942Z","dependency_job_id":null,"html_url":"https://github.com/seigtm/Complex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seigtm%2FComplex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seigtm%2FComplex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seigtm%2FComplex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seigtm%2FComplex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seigtm","download_url":"https://codeload.github.com/seigtm/Complex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249864403,"owners_count":21336738,"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":["complex-number","complex-numbers","cpp","homework","homework-assignments"],"created_at":"2024-11-09T11:33:43.052Z","updated_at":"2025-04-20T07:34:22.624Z","avatar_url":"https://github.com/seigtm.png","language":"CMake","readme":"# Complex number C++ class\n\n\u003e In mathematics, a complex number is a number that can be expressed in the form a + bi, where a and b are real numbers, and i is a symbol called the imaginary unit, and satisfying the equation i^2 = -1.  \n\u003e (https://en.wikipedia.org/wiki/Complex_number)\n\n---\n\n## Constructors:\n\nDefault constructor without parameters:\n\n```c++\nComplex();\n```\n\nConstructor with parameters:\n\n```c++\n// double r is real number.\n// double i is imaginary unit.\nComplex(double r, double i = 0);\n```\n\n---\n\n## List of supported operators and functions:\n\n- get real and imaginary units;\n- unary;\n- addition;\n- substraction;\n- multiplication;\n- division;\n- exponentiation (using [de Moivre's formula](https://en.wikipedia.org/wiki/De_Moivre%27s_formula));\n- nth root (using power);\n- trigonometric (sine, cosine and magnitude(abs));\n- comparison (equality);\n- bitwise (for std::cin and std::cout).\n\n## Cloning the repository:\n\n```bash\nbash\u003e git clone https://github.com/seigtm/Complex\n```\n\n---\n\n## Build requirements:\n\n- [cmake](https://cmake.org/) to configure the project (minimum required version is **3.5**).\n- [conan](https://conan.io/) to download all application dependencies.  \n  You can install **conan** by giving a command to **pip**:\n  ```bash\n  bash\u003e pip install --user conan\n  ```\n  To use **pip** you need to install the **python** interpreter. I highly recommend to install **python3**-based versions in order to avoid unexpected results when using **conan**.\n\n---\n\n## Configuring and build with conan and cmake:\n\nTo install with `conan`, execute the commands:\n\n```bash\nbash\u003e cd Complex\nbash\u003e conan install . -if build --build missing\n```\n\nTo build and run the project with `cmake`, execute:\n\n```bash\nbash\u003e cd build\nbash\u003e cmake ..\n```\n\nTo install and run the application, execute:\n\n```bash\nbash\u003e make\nbash\u003e cd bin\nbash\u003e ./main\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseigtm%2Fcomplex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseigtm%2Fcomplex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseigtm%2Fcomplex/lists"}