experiment-w-scripts/tube.py
2025-10-02 15:09:55 +01:00

10 lines
226 B
Python

## Exp W. Modes of long cyclinder (1D) ##
v = 343 #speed of sound
L = 0.4 #length of tube
f = [] #frequencies
for n in range(1,11):
f.append((v*n)/(2*L))
print(str(n) + ': ' + str(f[n-1]) + ' Hz')