summaryrefslogtreecommitdiff
path: root/2084/CH16/EX16.7/16_7.sce
blob: 3c42fd537112ba5271ce650a461151bfd84fd766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 16.7
//calculation of the tunning frequency of fork B

//given data
nu1=384//tunning frequency(in Hz) of fork A
n=6//number of beats
t=2//time(in s) taken by the beats

//calculation
deltanu=n/t//frequency of beats
nu2=nu1+deltanu//frequency of fork B
nu2dash=nu1-deltanu//another frequency of fork B

printf('the tunning frequency of fork B is %d Hz or %d Hz',nu2dash,nu2)