summaryrefslogtreecommitdiff
path: root/1364/CH4/EX4.6.1/4_6_1.sce
blob: ba0b0efb139f56e5e79dbaa647c1fa95c5875d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
//initialisation of variables
d= 8 //in
d1= 1.5 //in
Cd= 0.65
w= 62.3 //lbf.ft^3
W= 25 //tonf
u= 5 //miles/hour
u1= 20 //miles/hour
//CALCULATIONS
ds= W*2240*d1^4*Cd^2*log(u1/u)/(w*d^4*%pi*(d/24)^2)
T= W*2240*d1^4*Cd^2*((5/(u*7.33))-(20/(u1*29.35)))/(w*d^4*%pi*(d/24)^2)
//RESULTS
printf (' Distance that piston moves= %.2f ft ',ds)
printf (' \n time taken = %.4f sec ',T)