summaryrefslogtreecommitdiff
path: root/3862/CH4/EX4.5
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3862/CH4/EX4.5
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip
Added new codeHEADmaster
Diffstat (limited to '3862/CH4/EX4.5')
-rw-r--r--3862/CH4/EX4.5/Ex4_5.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3862/CH4/EX4.5/Ex4_5.sce b/3862/CH4/EX4.5/Ex4_5.sce
new file mode 100644
index 000000000..60a719ee0
--- /dev/null
+++ b/3862/CH4/EX4.5/Ex4_5.sce
@@ -0,0 +1,24 @@
+clear
+//variable declaration
+
+A1=150.0*12.0 //Area of 1 ,mm^2
+A2=(200.0-12.0)*12.0 //Area of 2,mm^2
+
+X1=75
+X2=6
+
+Y1=6
+Y2=12+(200-12)/2
+
+A=A1+A2
+
+xc=(A1*X1+A2*X2)/A
+
+printf("\n xc= %0.2f ",xc)
+
+yc=(A1*Y1+A2*Y2)/A
+
+printf("\n yc= %0.2f mm",yc)
+
+printf("\nThus, the centroid is at x = 36.62 mm and y = 61.62 mm ")
+