blob: 01a1347684cea19e5ce516dff85d38c82c811b21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
//Input data
s=0.005//Delay in sec
d=30//Bore in cm
N=600//Speed in r.p.m
dx=[10,15,20]//Bore diameters in cm
//Calculations
t=(s/d)*dx//Time of delay in sec. In textbook, t(2) is given wrong as 0.00025 sec instead of 0.0025 sec
//Output
printf('The delay time for %i cm diameter bore is %3.5f sec \n The delay time for %i cm diameter bore is %3.5f sec \n The delay time for %i cm diameter bore is %3.5f sec',dx(1),t(1),dx(2),t(2),dx(3),t(3))
|