From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3137/CH10/EX10.6/Ex10_6.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 3137/CH10/EX10.6/Ex10_6.sce (limited to '3137/CH10/EX10.6') 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) -- cgit