Recent changes to 70: Contrib: Calculate gain, phase of transfer functionhttps://sourceforge.net/p/maxima/feature-requests/70/2009-09-21T00:23:27ZContrib: Calculate gain, phase of transfer function2009-09-21T00:23:27Z2009-09-21T00:23:27Zdsimchahttps://sourceforge.net/u/dsimcha/https://sourceforge.netfe65bac9fb888536fed7d79aa708a62d14fdd059Here's some code for calculating the gain and phase of a function in sinusoidal steady state. It works with both time-domain functions with sine/cosine terms and transient terms \(By taking the Laplace transform and removing the sinuosidal term in the Laplace domain\) and with transfer functions in the Laplace domain, assuming that t -> infinity.
It might make sense to simply roll these functions into some larger package, to avoid excessively fine grained packages.