{"id":28267545,"url":"https://github.com/dipto9999/ece_analysis_tools","last_synced_at":"2025-07-29T06:04:18.822Z","repository":{"id":257649897,"uuid":"858920194","full_name":"Dipto9999/ECE_Analysis_Tools","owner":"Dipto9999","description":"Analysis Tools for Electrical Engineering","archived":false,"fork":false,"pushed_at":"2025-02-18T05:56:42.000Z","size":998,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T03:48:12.349Z","etag":null,"topics":["control","hp-prime","matplotlib","phasor","python","root-locus"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Dipto9999.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}},"created_at":"2024-09-17T19:01:33.000Z","updated_at":"2025-02-18T05:56:46.000Z","dependencies_parsed_at":"2024-09-17T23:30:40.170Z","dependency_job_id":"0985f51b-16c1-4480-b7a3-81719cca8a8f","html_url":"https://github.com/Dipto9999/ECE_Analysis_Tools","commit_stats":null,"previous_names":["dipto9999/ece_plot_tools","dipto9999/ece_analysis_tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dipto9999/ECE_Analysis_Tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dipto9999%2FECE_Analysis_Tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dipto9999%2FECE_Analysis_Tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dipto9999%2FECE_Analysis_Tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dipto9999%2FECE_Analysis_Tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dipto9999","download_url":"https://codeload.github.com/Dipto9999/ECE_Analysis_Tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dipto9999%2FECE_Analysis_Tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267638695,"owners_count":24119764,"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-07-29T02:00:12.549Z","response_time":2574,"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":["control","hp-prime","matplotlib","phasor","python","root-locus"],"created_at":"2025-05-20T15:11:06.837Z","updated_at":"2025-07-29T06:04:18.800Z","avatar_url":"https://github.com/Dipto9999.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analysis Tools : Electrical and Computer Engineering\n\n## Contents\n\n* [Overview](#Overview)\n    * [HP Prime](#HP-Prime)\n    * [Poles](#Poles)\n    * [Root Locus](#Root-Locus)\n    * [Phasors](#Phasors)\n\n## Overview\n\nI wrote these **Python** scripts and **HP PPL** programs as complementary tools in courses I took as part of \u003cb\u003eThe University of British Columbia Electrical and Computer Engineering\u003c/b\u003e undergraduate program.\n\nThese made my life easier in analyzing data and producing reports. Please feel free to contribute to this repo and use these tools as part of your degree.\n\n### HP Prime\n\nThese **Computer Algebra Systems (CAS)** programs are used in the \u003ca href =\"https://en.wikipedia.org/wiki/HP_Prime\"\u003e**HP-Prime Graphing Calculator**\u003c/a\u003e to make it easier to perform circuit analysis with \u003ca href = \"https://en.wikipedia.org/wiki/Modified_nodal_analysis\"\u003e**Modified Nodal Analysis (MNA)**\u003c/a\u003e.\n\nYou can import the code in [`HP_Prime`](HP_Prime) to your virtual / physical device with the \u003ca href = \"https://www.hpcalc.org/details/8938\"\u003e**HP Connectivity Kit**\u003c/a\u003e\n\n### Poles\n\nThe [`poles.py`](Scripts/poles.py) script can be used to generate a phasor plot of a filter with `matplotlib`. The `plot_poles(poles, real_lim, imag_lim)` function can be modified with the chart limits.\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"Figures/Butterworth_Filter_Plot_Radius_10000_Poles_10000_∠_-45.0°__10000_∠_45.0°.png\" width=400 height=300 title=\"Ex : Butterworth Filter Poles Plot\"\u003e\n\u003c/div\u003e\n\n### Root Locus\n\nThe [`root_locus.py`](Scripts/root_locus.py) script can be used to generate root locus plots with `matplotlib`. The `root_locus(R, C, Am)` function can be modified with the resistance, capacitance, midband gain values.\n\nNote that this is for the predetermined transfer function below. This is implemented as part of the script, but a few changes to the underlying formulas and calculations can be used to generate plots for like transfer functions.\n\n$$ H(s) = \\frac{1}{(R \\times C)^{2} \\times s^{2} + \\frac{(3 - A_m)}{(R \\times C)} \\times s + \\frac{1}{(R \\times C)^{2}}} $$\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"Figures/Butterworth_Filter_Root_Locus_Am_1.586.png\" width=450 height=300 title=\"Ex : Butterworth Filter Root Locus Critically Damped\"\u003e\n\u003c/div\u003e\n\n### Phasors\n\nI have added a [`phasors.py`](Scripts/phasors.py) script for helping with three-phase system calculations and visualizing current-voltage relationships.\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"Figures/Three-Phase_RL_Balanced_Load_(Voltage_Phasor_Diagram)_10.0_∠_-3.4°__10.15_∠_-63.2°__10.09_∠_57.3°.png\" width=450 height=450 title=\"Ex : Series RLC Circuit (Phasor Diagram)\"\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipto9999%2Fece_analysis_tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdipto9999%2Fece_analysis_tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipto9999%2Fece_analysis_tools/lists"}