{"id":32143151,"url":"https://github.com/somerandomiosdev/complex","last_synced_at":"2026-02-21T01:03:41.321Z","repository":{"id":56906420,"uuid":"240435924","full_name":"SomeRandomiOSDev/Complex","owner":"SomeRandomiOSDev","description":"Swift Complex Numbers","archived":false,"fork":false,"pushed_at":"2021-10-20T23:50:36.000Z","size":166,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T07:53:12.753Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/SomeRandomiOSDev.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}},"created_at":"2020-02-14T05:33:45.000Z","updated_at":"2024-06-28T17:12:22.000Z","dependencies_parsed_at":"2022-08-20T19:20:28.531Z","dependency_job_id":null,"html_url":"https://github.com/SomeRandomiOSDev/Complex","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/SomeRandomiOSDev/Complex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeRandomiOSDev%2FComplex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeRandomiOSDev%2FComplex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeRandomiOSDev%2FComplex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeRandomiOSDev%2FComplex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SomeRandomiOSDev","download_url":"https://codeload.github.com/SomeRandomiOSDev/Complex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SomeRandomiOSDev%2FComplex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280225806,"owners_count":26293888,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["hacktoberfest"],"created_at":"2025-10-21T07:53:16.007Z","updated_at":"2025-10-21T07:53:17.030Z","avatar_url":"https://github.com/SomeRandomiOSDev.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"Complex\n========\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d30d31c29f17449481b97a04610ff5b9)](https://app.codacy.com/app/SomeRandomiOSDev/Complex?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=SomeRandomiOSDev/Complex\u0026utm_campaign=Badge_Grade_Dashboard)\n[![License MIT](https://img.shields.io/cocoapods/l/Complex.svg)](https://cocoapods.org/pods/Complex)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Complex.svg)](https://cocoapods.org/pods/Complex) \n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) \n[![Platform](https://img.shields.io/cocoapods/p/Complex.svg)](https://cocoapods.org/pods/Complex)\n![Linux](https://img.shields.io/badge/platform-linux-lightgrey)\n[![Code Coverage](https://codecov.io/gh/SomeRandomiOSDev/Complex/branch/master/graph/badge.svg)](https://codecov.io/gh/SomeRandomiOSDev/Complex)\n\n![Swift Package](https://github.com/SomeRandomiOSDev/Complex/workflows/Swift%20Package/badge.svg)\n![Xcode Project](https://github.com/SomeRandomiOSDev/Complex/workflows/Xcode%20Project/badge.svg)\n![Cocoapods](https://github.com/SomeRandomiOSDev/Complex/workflows/Cocoapods/badge.svg)\n![Carthage](https://github.com/SomeRandomiOSDev/Complex/workflows/Carthage/badge.svg)\n\n**Complex** is a lightweight framework designed for representing and working with complex numbers for iOS, macOS, tvOS, and watchOS.\n\nInstallation\n--------\n\n**Complex** is available through [CocoaPods](https://cocoapods.org), [Carthage](https://github.com/Carthage/Carthage) and the [Swift Package Manager](https://swift.org/package-manager/). \n\nTo install via CocoaPods, simply add the following line to your Podfile:\n\n```ruby\npod 'Complex'\n```\n\nTo install via Carthage, simply add the following line to your Cartfile:\n\n```ruby\ngithub \"SomeRandomiOSDev/Complex\"\n```\n\nTo install via the Swift Package Manager add the following line to your `Package.swift` file's `dependencies`:\n\n```swift\n.package(url: \"https://github.com/SomeRandomiOSDev/Complex.git\", from: \"1.0.0\")\n```\n\nUsage\n--------\n\nFirst import **Complex** at the top of your Swift file:\n\n```swift\nimport Complex\n```\n\nAfter importing, use of complex numbers is as simple as can be:\n\n```swift\nlet input = Complex\u003cDouble\u003e(real: 4.31, imaginary: 2.0)\nlet scale = Complex\u003cDouble\u003e(real: 1.5, imaginary: 2.718)\n\nlet output = input * scale\n\n...\n```\n\nThe **Complex** type also has builtin functionality specific to complex numbers, such as conjugates and modulus/angle (for converting to polar coordinates):\n\n```swift\nlet complex = Complex\u003cDouble\u003e(real: 7.0, imaginary: -4.1)\n\n// Equal to 7.0 + 4.1i\nlet conjugate = ~complex // or complex.conjugate()\n\nlet (modulus, angle) = (complex.modulus, complex.angle)\n\n...\n```\n\nNote\n--------\n\nThe Swift library team has released their own **Complex** type as part of the Swift Numerics library. This library is likely to be archived in the future unless there is a continued need for this library to continue to be maintained. You can find more information about the new **Complex** type [here](https://swift.org/blog/numerics/#complex-numbers)\n\nContributing\n--------\n\nIf you have need for a specific feature or you encounter a bug, please open an issue. If you extend the functionality of **Complex** yourself or you feel like fixing a bug yourself, please submit a pull request.\n\nAuthor\n--------\n\nJoe Newton, somerandomiosdev@gmail.com\n\nLicense\n--------\n\n**Complex** is available under the MIT license. See the `LICENSE` file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomerandomiosdev%2Fcomplex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsomerandomiosdev%2Fcomplex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsomerandomiosdev%2Fcomplex/lists"}