Added provided tube script
This commit is contained in:
parent
6c221d3a67
commit
5e2641231f
1 changed files with 10 additions and 0 deletions
10
tube.py
Normal file
10
tube.py
Normal 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')
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue