summaryrefslogtreecommitdiff
path: root/3863/CH16/EX16.3/Ex16_3.sce
blob: fd2ad92f45667bc3027f9db99f8d1dc43f4caa86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
//

//Given
//Variable declaration
Do=200     //Outer diameter in mm
Di=100     //Inner diameter in mm
tau=40     //Maximum shear stress in N/sq.mm

//Calculation
T=int(((%pi)/16*tau*((Do**4-Di**4)/Do)))*1e-3 //Maximum torque transmitted by the shaft in Nm


//Result
printf("\n Maximum torque transmitted by the shaft = %0.3f  Nm",T)