diff options
author | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
commit | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch) | |
tree | 449d555969bfd7befe906877abab098c6e63a0e8 /3862/CH4/EX4.6/Ex4_6.sce | |
parent | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff) | |
download | Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2 Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip |
Diffstat (limited to '3862/CH4/EX4.6/Ex4_6.sce')
-rw-r--r-- | 3862/CH4/EX4.6/Ex4_6.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/3862/CH4/EX4.6/Ex4_6.sce b/3862/CH4/EX4.6/Ex4_6.sce new file mode 100644 index 000000000..c52f5dddc --- /dev/null +++ b/3862/CH4/EX4.6/Ex4_6.sce @@ -0,0 +1,25 @@ +clear +//variable declaration + +A1=100.0*20 //Area of 1 ,mm^2 +A2=100.0*20.0 //Area of 2,mm^2 +A3=150.0*30.0 //Area of 3,mm^2 + +//Selecting the coordinate system, due to symmetry centroid must lie on y axis, + +X1=0 +X2=0 + +Y1=30+100+20/2 +Y2=30+100/2 +Y3=30/2 + +A=A1+A2+A3 + + +yc=(A1*Y1+A2*Y2+A3*Y3)/A + +printf("\n yc= %0.2f mm",yc) + +printf("\n Thus, the centroid is on the symmetric axis at a distance 59.71 mm from the bottom") + |