summaryrefslogtreecommitdiff
path: root/1280/CH4/EX4.1/4_1.sce
blob: 7f5c5d4f157b1435988f649b74afaba254ddece3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
//initialisation of variables
d= 4 //in
p= 20 //percent
d1= 0.140
//CALCULATIONS
Gd= d-2*((100-20)*d1/100)
Gw= d1+2*(p*d1/100)
//RESULTS
printf ('Groove diameter = %.3f in',Gd)
printf (' \n Groove width = %.3f in',Gw)
printf (' \n outside diameter = %.f in',d)