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.10/Ex4_10.sce | |
parent | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff) | |
download | Scilab-TBC-Uploads-master.tar.gz Scilab-TBC-Uploads-master.tar.bz2 Scilab-TBC-Uploads-master.zip |
Diffstat (limited to '3862/CH4/EX4.10/Ex4_10.sce')
-rw-r--r-- | 3862/CH4/EX4.10/Ex4_10.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/3862/CH4/EX4.10/Ex4_10.sce b/3862/CH4/EX4.10/Ex4_10.sce new file mode 100644 index 000000000..bff9ed699 --- /dev/null +++ b/3862/CH4/EX4.10/Ex4_10.sce @@ -0,0 +1,30 @@ +clear +// If xc and yc are the coordinates of the centre of the circle, centroid also must have the coordinates xc and yc as per the condition laid down in the problem. The shaded area may be considered as a rectangle of size 200 mm × 150 mm minus a triangle of sides 100 mm × 75 mm and a circle of diameter 100 mm. + +// +//variable declaration + +Ap=200.0*150.0 //Area of plate,mm^2 +At=100.0*75.0/2.0 //Area of triangle,mm^2 +Ah=%pi*(100**2)/4.0 //Area of hole **mm^2 + +A=Ap-At-Ah + + +X1=100.0 +X2=200.0-100.0/3.0 +//X3=Xc + +Y1=75.0 +Y2=150.0-25.0 +//Y3=Yc + +A=Ap-At-Ah + +xc=(Ap*X1-At*X2)/(Ah+A) + +printf("\n xc= %0.2f mm",xc) + +yc=(Ap*Y1-At*Y2)/(Ah+A) + +printf("\n yc= %0.2f mm",yc) |