6 lines
216 B
Python
6 lines
216 B
Python
# 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 |