As part of my university course, I had the opportunity to deviate from the standard path and undertake my own computation/simulation task.
In this task, I decided to compute the current response of a linear circuit to an arbitrary voltage waveform.


Written report

A linear circuit is one which only includes ideal resistors, capacitors and inductors. By Fourier decomposing the input voltage, linear AC circuit analysis can be applied to each constituent sinusoid.
Find below my report on the project, for which I was awarded full marks.
I note that the python code was adapted from that used by Fourier decomposition of closed loops (spirograph).