I wrote these Python scripts and HP PPL programs as complementary tools in courses I took as part of The University of British Columbia Electrical and Computer Engineering undergraduate program.
These 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.
These Computer Algebra Systems (CAS) programs are used in the HP-Prime Graphing Calculator to make it easier to perform circuit analysis with Modified Nodal Analysis (MNA).
You can import the code in HP_Prime
to your virtual / physical device with the HP Connectivity Kit
The 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.
The 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.
Note 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.
I have added a phasors.py
script for helping with three-phase system calculations and visualizing current-voltage relationships.