# common.py from Bar import Bar def freq_from_alpha(bar:'Bar', desired_alpha): '''Returns the forcing frequency that corresponds to the desired alpha''' return desired_alpha * (bar.E / bar.density)**0.5