blob: 23541ca6b5c5645d0d94a8e02d5aef7238a44117 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clear
//variable declaration
p=(2) //internal pressure, N/mm^2
t=12 //thickness of thin cylinder,mm
D=(1000) //internal diameter,mm
f=(p*D)/(2*t) //Hoop stress,N/mm^2
printf("\n Hoop stress f= %0.2f N/mm^2",f)
|