summaryrefslogtreecommitdiff
path: root/2084/CH16/EX16.6/16_6.sce
blob: d66be11156334dddf81f1e74c3df8c5874b0cf72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 16.6
//calculation of the distance of the piston from the open end,for tube to vibrate in its first overtone 

//given data
nu=416//frequency(in Hz) of the tunning fork
v=333//speed(in m/s) of the sound in air

//calculation
lambda=v/nu//wavelength
L=3*lambda/4//length of the tube

printf('the distance of the piston from the open end,for tube to vibrate in its first overtone is %3.1f cm',L*10^2)