From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 278/CH4/EX4.5/ex_4_5.sce | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to '278/CH4/EX4.5/ex_4_5.sce') diff --git a/278/CH4/EX4.5/ex_4_5.sce b/278/CH4/EX4.5/ex_4_5.sce index df6edb49a..4fbee1358 100755 --- a/278/CH4/EX4.5/ex_4_5.sce +++ b/278/CH4/EX4.5/ex_4_5.sce @@ -1,16 +1,16 @@ -//find the compression of the piston rod -clc -//solution -//given -d=50//mm//diameter of rod -l=600//mm//length of rod -D=400//mm//diameter of piston -p=0.9//(N/mm^2)//maximum steam pressure -E=210*10^3//(N/mm^2)//young's modulus -pi=3.14 -A=(pi/4)*D^2//(mm^2)//area of cross section of piston -P=A*p//N//max load acting on piston -a=(pi/4)*d^2//(mm^2)//area of cross section of piston rod -//let x be the compression -x=(P*l)/(E*a)//mm + +clc +//solution +//given +d=50//mm//diameter of rod +l=600//mm//length of rod +D=400//mm//diameter of piston +p=0.9//(N/mm^2)//maximum steam pressure +E=210*10^3//(N/mm^2)//young's modulus +pi=3.14 +A=(pi/4)*D^2//(mm^2)//area of cross section of piston +P=A*p//N//max load acting on piston +a=(pi/4)*d^2//(mm^2)//area of cross section of piston rod +//let x be the compression +x=(P*l)/(E*a)//mm printf("the compression in piston rod is,%f mm",x) \ No newline at end of file -- cgit