diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /278/CH4/EX4.5/ex_4_5.sce | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '278/CH4/EX4.5/ex_4_5.sce')
-rwxr-xr-x | 278/CH4/EX4.5/ex_4_5.sce | 30 |
1 files changed, 15 insertions, 15 deletions
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 |