{"id":19938779,"url":"https://github.com/raphaelbs/phasop","last_synced_at":"2025-07-11T01:09:22.882Z","repository":{"id":57322916,"uuid":"65875740","full_name":"raphaelbs/phasop","owner":"raphaelbs","description":"Command line tools for complex numbers (phasor) operations.","archived":false,"fork":false,"pushed_at":"2016-08-17T04:29:56.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T00:34:24.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/raphaelbs.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":"2016-08-17T04:24:03.000Z","updated_at":"2016-08-17T04:24:15.000Z","dependencies_parsed_at":"2022-09-11T16:41:48.065Z","dependency_job_id":null,"html_url":"https://github.com/raphaelbs/phasop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raphaelbs/phasop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelbs%2Fphasop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelbs%2Fphasop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelbs%2Fphasop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelbs%2Fphasop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphaelbs","download_url":"https://codeload.github.com/raphaelbs/phasop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelbs%2Fphasop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264703163,"owners_count":23651908,"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":[],"created_at":"2024-11-12T23:41:57.400Z","updated_at":"2025-07-11T01:09:22.859Z","avatar_url":"https://github.com/raphaelbs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phasop\n\nCommand-line tools for complex numbers (phasor) operations.\n\nThis CLI-Tool enables fast polar and rectangular operations.\nBy definition polar points are defined like _(modulus, radius)_ and rectangular points are defined like _(x, y**i**)_ where **i** letter is mandatory; and in this README any _(modulus, radius)_ or _(x, y**i**)_ are know as **matrix**.\n\n\n## Installation\n```shell\n\u003e npm install -g phasop\n```\nMake sure to include the **-g** option\n\n---\n\n## Usage\n\nConverting Polar phasor to Retangular phasor:\n```shell\n\u003e phasop (5,53.13)\n```\n```shell\n\u003e polar form(5, 53.13 degrees)\n\u003e rectangular form(3, 4i)\n```\n\n#### radian\nYou can output any of the following [operations](#operations) in radians instead of the default degrees.\n```shell\n\u003e phasop -r add (4,3i) (3,-4i)\n```\n```shell\n\u003e (4, 3i) + (3, -4i)\n\u003e polar form(7.07, -0.14 radian)\n\u003e rectangular form(7, -1i)\n```\n\n___\n\n#### endless\nYou can also input several matrix for a single operation\n```shell\n\u003e phasop -r add (4,3i) (3,-4i) (-5, 36.87)\n```\n```shell\n\u003e (4, 3i) + (3, -4i) + (-5, 36.87d)\n\u003e polar form(5, -53.13 degrees)\n\u003e rectangular form(3, -4i)\n```\n\n---\n\n### Operations\n\n#### add\n```shell\n\u003e phasop add (4,3i) (3,-4i)\n```\n```shell\n\u003e (4, 3i) + (3, -4i)\n\u003e polar form(7.07, -8.13 degrees)\n\u003e rectangular form(7, -1i)\n```\n\n___\n\n#### sub\n```shell\n\u003e phasop sub (4,3i) (3,-4i)\n```\n```shell\n\u003e (4, 3i) - (3, -4i)\n\u003e polar form(7.07, 81.87 degrees)\n\u003e rectangular form(1, 7i)\n```\n\n___\n\n#### mult\n```shell\n\u003e phasop mult (4,3i) (3,-4i)\n```\n```shell\n\u003e (4, 3i) * (3, -4i)\n\u003e polar form(25, -16.26 degrees)\n\u003e rectangular form(24, -7i)\n```\n\n___\n\n#### div\n```shell\n\u003e phasop div (4,3i) (3,-4i)\n```\n```shell\n\u003e (4, 3i) / (3, -4i)\n\u003e polar form(1, 90 degrees)\n\u003e rectangular form(0, 1i)\n```\n\n---\n\n## Dependencies\n\ncommander\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelbs%2Fphasop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphaelbs%2Fphasop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelbs%2Fphasop/lists"}