Added provided tube script

This commit is contained in:
Paddy Milner 2025-10-02 15:09:55 +01:00
parent 6c221d3a67
commit 5e2641231f

10
tube.py Normal file
View file

@ -0,0 +1,10 @@
## 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')