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/CH3 | |
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/CH3')
-rwxr-xr-x | 3137/CH3/EX3.1/Ex3_1.sce | 27 | ||||
-rwxr-xr-x | 3137/CH3/EX3.10/Ex3_10.sce | 36 | ||||
-rwxr-xr-x | 3137/CH3/EX3.11/Ex3_11.sce | 18 | ||||
-rwxr-xr-x | 3137/CH3/EX3.12/Ex3_12.sce | 23 | ||||
-rw-r--r-- | 3137/CH3/EX3.13/Ex3_13.sce | 20 | ||||
-rwxr-xr-x | 3137/CH3/EX3.14/Ex3_14.sci | 24 | ||||
-rwxr-xr-x | 3137/CH3/EX3.2/Ex3_2.sce | 21 | ||||
-rwxr-xr-x | 3137/CH3/EX3.3/Ex3_3.sce | 17 | ||||
-rwxr-xr-x | 3137/CH3/EX3.4/Ex3_4.sce | 22 | ||||
-rwxr-xr-x | 3137/CH3/EX3.5/Ex3_5.sce | 19 | ||||
-rwxr-xr-x | 3137/CH3/EX3.6/Ex3_6.sce | 14 | ||||
-rwxr-xr-x | 3137/CH3/EX3.7/Ex3_7.sce | 19 | ||||
-rwxr-xr-x | 3137/CH3/EX3.8/Ex3_8.sce | 19 | ||||
-rwxr-xr-x | 3137/CH3/EX3.9/Ex3_9.sce | 40 |
14 files changed, 319 insertions, 0 deletions
diff --git a/3137/CH3/EX3.1/Ex3_1.sce b/3137/CH3/EX3.1/Ex3_1.sce new file mode 100755 index 000000000..db66a1994 --- /dev/null +++ b/3137/CH3/EX3.1/Ex3_1.sce @@ -0,0 +1,27 @@ +//Initilization of variables
+F1=150 //lb
+F2=200 //lb
+F3=80 //lb
+F4=180 //lb
+theta1=((30*%pi)/180) //radians
+theta2=((150*%pi)/180) //radians
+theta3=((240*%pi)/180) //radians
+theta4=((315*%pi)/180) //radians
+//Calculations
+F1x=F1*cos(theta1) //lb
+F1y=F1*sin(theta1) //lb
+F2x=F2*cos(theta2) //lb
+F2y=F2*sin(theta2) //lb
+F3x=F3*cos(theta3) //lb
+F3y=F3*sin(theta3) //lb
+F4x=F4*cos(theta4) //lb
+F4y=F4*sin(theta4) //lb
+Fx=F1x+F2x+F3x+F4x //lb
+Fy=F1y+F2y+F3y+F4y //lb
+R=sqrt(Fx^2+Fy^2) //lb
+theta=((atan(Fy/Fx))*180)/%pi //degrees
+theta_R=360+theta //degrees
+//Result
+clc
+printf('The resultant of the force system is:%f lb\n',R) //lb
+printf('The resultant is at :%f degrees',theta_R) //degrees
diff --git a/3137/CH3/EX3.10/Ex3_10.sce b/3137/CH3/EX3.10/Ex3_10.sce new file mode 100755 index 000000000..669d0c68b --- /dev/null +++ b/3137/CH3/EX3.10/Ex3_10.sce @@ -0,0 +1,36 @@ +//Initilization of variables
+F1=100 //lb
+F2=80 //lb
+F3=120 //lb
+F4=150 //lb
+theta1=((60*%pi)/180) //radians
+theta2=((45*%pi)/180) //radians
+theta3=((90*%pi)/180) //radians
+theta4=((75*%pi)/180) //radians
+//Distance from point O
+x1=-5 //ft
+y1=20 //ft
+x2=10 //ft
+y2=10 //ft
+x3=25 //ft
+y3=25 //ft
+x4=35 //ft
+y4=15 //ft
+//Calculations
+Fx=F1*cos(theta1)+F2*cos(theta2)+F4*cos(theta4) //lb
+Fy=-F1*sin(theta1)+F2*sin(theta2)-F3-F4*sin(theta4) //lb
+R=sqrt(Fx^2+Fy^2) //lb
+theta=atan(Fy/Fx) //radians
+theta_x=(theta*180)/%pi //degrees
+M_O=-(F1*cos(theta1)*y1)+(-x1)*(F1*sin(theta1))-(x2)*(F2*cos(theta2))+(y2)*(F2*sin(theta2))-(x3*F3)-(y4*F4*cos(theta4))-(x4*F4*sin(theta4)) //lb-ft
+//Applying varignons theorem
+x=M_O/Fy //ft
+y=-M_O/Fx //ft
+//Results
+clc
+printf('The resultant of the force system is:%f lb\n',R) //lb
+printf('The resultant acts at %f degrees with respect to X-Axis \n',theta_x) //degrees
+printf('The moment about point O is:%f lb-ft \n',M_O) //lb-ft
+printf('The x intercept of resultant is:%f ft\n',x) //ft
+printf('The y intercept of resultant is:%f ft\n',y) //ft
+//Answer for angle should be negative which has not been mentioned in the tectbook but a schematic shows the angle in fourth quadrant to clarify the doubt
diff --git a/3137/CH3/EX3.11/Ex3_11.sce b/3137/CH3/EX3.11/Ex3_11.sce new file mode 100755 index 000000000..20ed04db3 --- /dev/null +++ b/3137/CH3/EX3.11/Ex3_11.sce @@ -0,0 +1,18 @@ +//Initilization of variables
+F1=150 //lb
+F2=80 //lb
+F3=100 //lb
+F4=50 //lb
+theta1=((45*%pi)/180) //radians
+r=3 //units
+//Calculations
+Fh=F1-F3*cos(theta1) //lb
+Fv=F4-F2-F3*sin(theta1) //lb
+R=sqrt(Fh^2+Fv^2) //lb
+//Applying the Varignons Theorem
+a=(F4*r-F1*r+F2*r-F3*r)/R //units
+//Result
+clc
+printf('The resultant of the force system is:%f lb \n',R) //lb
+printf('The resultant acts at %f units form the point O',a) //units
+//Negative sign indicates a negative moment caused by the resultant
diff --git a/3137/CH3/EX3.12/Ex3_12.sce b/3137/CH3/EX3.12/Ex3_12.sce new file mode 100755 index 000000000..e969be3b2 --- /dev/null +++ b/3137/CH3/EX3.12/Ex3_12.sce @@ -0,0 +1,23 @@ +//Initilization of variables
+F1=150 //lb
+F2=200 //lb
+F3=200 //lb
+F4=225 //lb
+M=900 //lb-ft
+Theta1=(45*%pi)/180 //radians
+Theta2=(30*%pi)/180 //radians
+x1=3 //ft
+x2=15 //ft
+x3=12 //ft
+x4=6 //ft
+//Calculations
+Fx=F1*cos(Theta1)+F2-F4*cos(Theta2) //Applying sum of all forces equal to zero in X direction
+Fy=F1*sin(Theta1)-F4*sin(Theta2)+F2 //Applying sum of all forces equal to zero in Y direction
+R=sqrt(Fx^2+Fy^2) //lb
+theta=atand(Fy/Fx) //degrees
+M_o=x1*F2-x2*F1*cos(Theta1)+x3*F1*sin(Theta1)-x4*F2+M+x4*F4*cos(Theta2)-x1*F4*sin(Theta2) //Moment about point O
+x=M_o/Fy //Varignons Theorem
+//Result
+clc
+printf('The x intercept of resultant position is %f\n',x)
+printf('The Resultant is %f lb and acts at an angle of %f degrees',R,theta)
diff --git a/3137/CH3/EX3.13/Ex3_13.sce b/3137/CH3/EX3.13/Ex3_13.sce new file mode 100644 index 000000000..5fe8fea04 --- /dev/null +++ b/3137/CH3/EX3.13/Ex3_13.sce @@ -0,0 +1,20 @@ +//Initilization Of Variables
+a=0 //Lower Limit oF the Integral
+b=6 //Upper Limit of the Integral
+n=10 //Interval of the integral
+l=20 //lb/ft
+//Calculation
+//Using Trapezoidal Rule for Intergration
+R=(b-a)*l
+function[I2]=Trap_Composite2(f1,a,b,n)
+ h=(b-a)/n
+ t=linspace(a,b,n+1)
+ I2=(h/2)*((2*sum(f1(t)))-f1(t(1))-f1(t(n+1)))
+endfunction
+deff('[y1]=f1(t)','y1=20*t')
+d=Trap_Composite2(f1,a,b,n)/R //ft
+//Result
+clc
+printf('The value of R is:%i lb\n',R)
+printf('The value of d is:%i ft',d)
+
diff --git a/3137/CH3/EX3.14/Ex3_14.sci b/3137/CH3/EX3.14/Ex3_14.sci new file mode 100755 index 000000000..e2331fed4 --- /dev/null +++ b/3137/CH3/EX3.14/Ex3_14.sci @@ -0,0 +1,24 @@ +//Initilization Of Variables
+a=0 //Lower Limit oF the Integral
+b=9 //Upper Limit of the Integral
+n=10 //Interval of the integral
+//Calculation
+//Using Trapezoidal Rule for Intergration
+function[I1]=Trap_Composite1(f,a,b,n)
+ h=(b-a)/n
+ t=linspace(a,b,n+1)
+ I1=(h/2)*((2*sum(f(t)))-f(t(1))-f(t(n+1)))
+endfunction
+deff('[y]=f(t)','y=(t/9)*30') //y defined as a function of t and not x
+function[I2]=Trap_Composite2(f1,a,b,n)
+ h=(b-a)/n
+ t=linspace(a,b,n+1)
+ I2=(h/2)*((2*sum(f1(t)))-f1(t(1))-f1(t(n+1)))
+endfunction
+deff('[y1]=f1(t)','y1=(t^2/9)*30')
+d=Trap_Composite2(f1,a,b,n)/Trap_Composite1(f,a,b,n) //m
+//Result
+clc
+printf('The value of d is:%f m\n',d) //m
+printf('The value of R is %f N',Trap_Composite1(f,a,b,n)) //N
+
diff --git a/3137/CH3/EX3.2/Ex3_2.sce b/3137/CH3/EX3.2/Ex3_2.sce new file mode 100755 index 000000000..d262aaf64 --- /dev/null +++ b/3137/CH3/EX3.2/Ex3_2.sce @@ -0,0 +1,21 @@ +//Initilization of variables
+F1=50 //N
+F2=100 //N
+F3=30 //N
+//Calculation
+//The book has a misprint for squareroot of 1^2
+F1x=F1/sqrt(2) //N
+F1y=F1/sqrt(2) //N
+F2x=-(F2*3)/sqrt(10) //N
+F2y=(-F2)/sqrt(10) //N
+F3x=F3/sqrt(5) //N
+F3y=(-F3*2)/sqrt(5) //N
+Fx=F1x+F2x+F3x //N
+Fy=F1y+F2y+F3y //N
+R=sqrt(Fx^2+Fy^2) //N
+theta=atan(Fy/Fx) //radians
+theta_x=180+(theta*180)/%pi //degrees
+//Result
+clc
+printf('The resultant is:%f N\n',R) //N
+printf('The resultant makes an angle of:%f degrees',theta_x) //degrees
diff --git a/3137/CH3/EX3.3/Ex3_3.sce b/3137/CH3/EX3.3/Ex3_3.sce new file mode 100755 index 000000000..8aa60849c --- /dev/null +++ b/3137/CH3/EX3.3/Ex3_3.sce @@ -0,0 +1,17 @@ +//Initilization of variables
+F1=70 //lb
+F2=100 //lb
+F3=125 //lb
+theta1=0 //radians
+theta2=((10*%pi)/180) //radians
+theta3=((30*%pi)/180) //radians
+//Calculations
+Fx=F1-(F2*cos(theta3))-(125*sin(theta2)) //lb
+Fy=125*cos(theta2)-(100*sin(theta3)) //lb
+R=sqrt(Fx^2+Fy^2) //lb
+theta=atan(Fy/Fx) //radians
+theta_x=180+(theta*180)/%pi //degrees
+//Result
+clc
+printf('The resultant of the force system is:%f lb\n',R) //lb
+printf('The resultant is at %f with respect to the X-Axis degrees',theta_x) //degrees
diff --git a/3137/CH3/EX3.4/Ex3_4.sce b/3137/CH3/EX3.4/Ex3_4.sce new file mode 100755 index 000000000..ba329cd29 --- /dev/null +++ b/3137/CH3/EX3.4/Ex3_4.sce @@ -0,0 +1,22 @@ +//Initilization of variables
+F1=-20 //N
+F2=30 //N
+F3=5 //N
+F4=-40 //N
+//Distances with respect to point O
+x1=6 //m
+x2=0 //m
+x3=8 //m
+x4=13 //m
+//Calculations
+R=F1+F2+F3+F4 //N
+//Applying moment about point O equal to zero
+M_O=-(F1*x1)+(F2*x2)+(F3*x3)+(F4*x4) //N-m
+//Applying moment about point O equal to R*x
+x=M_O/R //m
+//Result
+clc
+printf('The resultant of force system is:%f N\n',R) //N
+printf('The moment about point O is:%f N-m\n',M_O) //N-m
+printf('The resultant of moment acts at %f meters from point O',x) //m
+
diff --git a/3137/CH3/EX3.5/Ex3_5.sce b/3137/CH3/EX3.5/Ex3_5.sce new file mode 100755 index 000000000..2ff383b51 --- /dev/null +++ b/3137/CH3/EX3.5/Ex3_5.sce @@ -0,0 +1,19 @@ +//Initilization of variables
+F1=-100 //lb
+F2=200 //lb
+F3=-200 //lb
+F4=400 //lb
+F5=-300 //lb
+//Distance with respect to point O
+x1=0 //ft
+x2=2 //ft
+x3=5 //ft
+x4=9 //ft
+x5=11 //ft
+//Calculation
+R=F1+F2+F3+F4+F5 //lb
+M_O=(F1*x1)+(F2*x2)+(F3*x3)+(F4*x4)+(F5*x5) //N-m
+//Result
+clc
+printf('The resultant of the force system is:%i lb \n',R) //lb
+printf('The moment about point O is:%i lb-ft',M_O) //lb-ft
diff --git a/3137/CH3/EX3.6/Ex3_6.sce b/3137/CH3/EX3.6/Ex3_6.sce new file mode 100755 index 000000000..24301e8c6 --- /dev/null +++ b/3137/CH3/EX3.6/Ex3_6.sce @@ -0,0 +1,14 @@ +//Initilization of variables
+F1=20 //lb
+F2=20 //lb
+F3=-40 //lb
+//Distance from point O
+x1=3 //ft
+x2=3 //ft
+//Calculations
+R=F1+F2+F3 //lb
+M_O=-(F1*x1)+(F2*x2) //lb-ft
+//Results
+clc
+printf('The resultant of the force system is:%i lb\n',R) //lb
+printf('The Moment about point O is:%i lb-ft',M_O) //lb-ft
diff --git a/3137/CH3/EX3.7/Ex3_7.sce b/3137/CH3/EX3.7/Ex3_7.sce new file mode 100755 index 000000000..53db5d371 --- /dev/null +++ b/3137/CH3/EX3.7/Ex3_7.sce @@ -0,0 +1,19 @@ +//Initilization of variables
+F1=500 //N
+F2=-400 //N
+F3=-200 //N
+C=1500 //N-m
+//Distance from point O
+x1=2 //m
+x2=4 //m
+x3=6 //m
+//Calculations
+R=F1+F2+F3 //N
+M_O=(F1*x1)+(F2*x2)+(F3*x3)+C //N-m
+//Applying Varignons theorem
+x=M_O/R //m
+//Result
+clc
+printf('The resultant of the force system is:%i N\n',R) //N
+printf('The moment about point O is:%i N-m\n',M_O) //N-m
+printf('The resultant acts at %i meters from point O m',x) //m
diff --git a/3137/CH3/EX3.8/Ex3_8.sce b/3137/CH3/EX3.8/Ex3_8.sce new file mode 100755 index 000000000..fa93732d5 --- /dev/null +++ b/3137/CH3/EX3.8/Ex3_8.sce @@ -0,0 +1,19 @@ +//Initilization of variables
+F1=50 //lb
+F2=100 //lb
+theta1=((45*%pi)/180) //radians
+//Distance from point O
+x1=5 //ft
+x2=4 //ft
+//Calculation
+F_x=F1-(F2*cos(theta1)) //lb
+F_y=F1-(F2*sin(theta1)) //lb
+R=sqrt(F_x^2+F_y^2) //lb
+M_O=F1*x1-(x2*F1) //lb-ft
+//Applying Varignons Theorem
+x=M_O/R //ft
+//Result
+clc
+printf('The resultant of the force system is:%f lb\n',R) //lb
+printf('The Moment about point O is:%f lb-ft\n',M_O) //lb-ft
+printf('The Resultant acts at %f feet from point O ft',x) //ft
diff --git a/3137/CH3/EX3.9/Ex3_9.sce b/3137/CH3/EX3.9/Ex3_9.sce new file mode 100755 index 000000000..41fb56554 --- /dev/null +++ b/3137/CH3/EX3.9/Ex3_9.sce @@ -0,0 +1,40 @@ +//Initilization of variables
+A=80 //N
+B=120 //N
+C=100 //N
+D=50 //N
+thetaA=((90*%pi)/180) //radians
+thetaB=((150*%pi)/180) //radians
+thetaC=((45*%pi)/180) //radians
+thetaD=((340*%pi)/180) //radians
+//Calculations
+Ax=A*cos(thetaA) //N
+Ay=A*sin(thetaA) //N
+Bx=B*cos(thetaB) //N
+By=B*sin(thetaB) //N
+Cx=C*cos(thetaC) //N
+Cy=C*sin(thetaC) //N
+Dx=D*cos(thetaD) //N
+Dy=D*sin(thetaD) //N
+M_Ax=0 //N-m
+M_Ay=0 //N-m
+M_Bx=-Bx*5 //N-m
+M_By=By*8 //N-m
+M_Cx=-Cx*1 //N-m
+M_Cy=Cy*1 //N-m
+M_Dx=-Dx*-1 //N-m
+M_Dy=Dy*8 //N-m
+Fx=Ax+Bx+Cx+Dx //N
+Fy=Ay+By+Cy+Dy //N
+R=sqrt(Fx^2+Fy^2) //N
+M_O=M_Dx+M_Dy+M_Cx+M_Cy+M_Bx+M_By+M_Ax+M_Ay //N-m
+theta=atan(Fy/Fx) //radians
+theta_x=(theta*180)/%pi //degrees
+//Appliying Varignons theorem
+x=M_O/R //m
+//Result
+clc
+printf('The resultant of the force system is:%f N\n',R) //N
+printf('The moment about point O is:%f N\n',M_O) //N
+printf('The resultant acts at and angle of %f degrees with respect to X-Axis degrees\n',theta_x) //degrees
+printf('The resultant of the force system acts at %f meters from point O',x) //m
|