diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3137/CH10/EX10.6/Ex10_6.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3137/CH10/EX10.6/Ex10_6.sce')
-rwxr-xr-x | 3137/CH10/EX10.6/Ex10_6.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3137/CH10/EX10.6/Ex10_6.sce b/3137/CH10/EX10.6/Ex10_6.sce new file mode 100755 index 000000000..ab0ac44e5 --- /dev/null +++ b/3137/CH10/EX10.6/Ex10_6.sce @@ -0,0 +1,26 @@ +//Initilization of variables
+theta=75 //degrees
+alpha=(150*%pi)/180 //rad
+r=1
+theta1=30 //degrees
+lhor=14 //in
+//calculations
+a=((2*r)/alpha)*sind(theta) //in
+y=-a*sind(90-theta) //in
+//Length of arc
+l=r*alpha //in
+//Slope length calculations
+DF=7 //in
+AB=DF //in
+BC=1 //in
+BF=BC*cosd(theta1) //in
+FC=BC*sind(theta1) //in
+DC=DF+FC //in
+EC=DC/cosd(theta1) //in
+//Centroid of EC is at G
+yslope=0.5*EC*sind(theta1)+BF //in
+//Y of composite figure
+Y=((2*l*y)+14*-1+(2*EC*yslope))/(2*l+lhor+2*EC) //in
+//Result
+clc
+printf('The centroid is at Y=%f in',Y)
|