summaryrefslogtreecommitdiff
path: root/Engineering_Mechanics_by_Tayal_A.K.
diff options
context:
space:
mode:
authorhardythe12015-07-03 12:23:43 +0530
committerhardythe12015-07-03 12:23:43 +0530
commit5a86a20b9de487553d4ef88719fb0fd76a5dd6a7 (patch)
treedb67ac5738a18b921d9a8cf6e86f402703f30bdf /Engineering_Mechanics_by_Tayal_A.K.
parent37d315828bbfc0f5cabee669d2b9dd8cd17b5154 (diff)
downloadPython-Textbook-Companions-5a86a20b9de487553d4ef88719fb0fd76a5dd6a7.tar.gz
Python-Textbook-Companions-5a86a20b9de487553d4ef88719fb0fd76a5dd6a7.tar.bz2
Python-Textbook-Companions-5a86a20b9de487553d4ef88719fb0fd76a5dd6a7.zip
add/remove books
Diffstat (limited to 'Engineering_Mechanics_by_Tayal_A.K.')
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./appendix.ipynb1002
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter02.ipynb792
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter03.ipynb598
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter04.ipynb138
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter05.ipynb285
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter06.ipynb279
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter07.ipynb551
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter08.ipynb311
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter09.ipynb669
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter10.ipynb378
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter11.ipynb22
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter12.ipynb411
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter13.ipynb121
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter14.ipynb1056
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter15.ipynb775
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter16.ipynb471
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter17.ipynb342
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter18.ipynb620
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter19.ipynb262
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter20.ipynb546
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter21.ipynb658
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter22.ipynb282
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter23.ipynb74
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter24.ipynb349
-rwxr-xr-xEngineering_Mechanics_by_Tayal_A.K./chapter25.ipynb217
25 files changed, 11209 insertions, 0 deletions
diff --git a/Engineering_Mechanics_by_Tayal_A.K./appendix.ipynb b/Engineering_Mechanics_by_Tayal_A.K./appendix.ipynb
new file mode 100755
index 00000000..cf97f900
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./appendix.ipynb
@@ -0,0 +1,1002 @@
+{
+ "metadata": {
+ "name": "appendix.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Appendix"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-1,Page No:638"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "#Initilization of variables\n",
+ "\n",
+ "P=[-5,2,14] #Point co-ordinates\n",
+ "\n",
+ "#Calculations\n",
+ "r=(P[0]**2+P[1]**2+P[2]**2)**0.5 #Magnitude of the poistion vector\n",
+ "\n",
+ "#Direction cosines\n",
+ "l=P[0]/r \n",
+ "m=P[1]/r\n",
+ "n=P[2]/r\n",
+ "\n",
+ "\n",
+ "#Unit Vector calculations\n",
+ "\n",
+ "r_unit=[l,m,n]\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The unit vector in the direction of r is \",round(r_unit[0],2),\"i +\",round(r_unit[1],3),\"j +\",round(r_unit[2],3),\"k\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The unit vector in the direction of r is -0.33 i + 0.133 j + 0.933 k\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-2,Page No:639"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilizatin of variable\n",
+ "F=10 #N\n",
+ "P_1=[2,4,3] \n",
+ "P_2=[1,-5,2]\n",
+ "\n",
+ "#Calculations\n",
+ "d_x=P_2[0]-P_1[0] \n",
+ "d_y=P_2[1]-P_1[1]\n",
+ "d_z=P_2[2]-P_1[2]\n",
+ "d=(d_x**2+d_y**2+d_z**2)**0.5\n",
+ "Fx=(F/d)*d_x #N\n",
+ "Fy=(F/d)*d_y #N\n",
+ "Fz=(F/d)*d_z #N\n",
+ "#Direction cosines\n",
+ "l=Fx/F\n",
+ "m=Fy/F\n",
+ "n=Fz/F\n",
+ "#Angles\n",
+ "theta_x=arccos(l)*(180/pi) #degrees\n",
+ "theta_y=arccos(m)*(180/pi) #degrees\n",
+ "theta_z=arccos(n)*(180/pi) #degrees\n",
+ "\n",
+ "#Result\n",
+ "\n",
+ "print\"The force in vector notation is \",round(Fx,1),\"i \",round(Fy,2),\"j \",round(Fz,1),\"k\"\n",
+ "print\"Thetax=\",round(theta_x,1),\" degrees\",\"\", \"Thetay=\",round(theta_y,2),\"degrees\",\"\", \"Thetaz=\",round(theta_z,1), \"degrees\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force in vector notation is -1.1 i + -9.88 j + -1.1 k\n",
+ "Thetax= 96.3 degrees Thetay= 171.07 degrees Thetaz= 96.3 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-3,Page No:640"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initiliation of variables\n",
+ "T=2500 #N\n",
+ "\n",
+ "#Co-ordinates\n",
+ "Q=[40,0,-30]\n",
+ "P=[0,80,0]\n",
+ "\n",
+ "#Calculations\n",
+ "mag_QP=sqrt((P[0]-Q[0])**2+(P[1]-Q[1])**2+(P[2]-Q[2])**2) #Magnitude\n",
+ "QP=[(P[0]-Q[0]),(P[1]-Q[1]),(P[2]-Q[2])] \n",
+ "F=(T*mag_QP**-1)*QP #N\n",
+ "thetax=arccos(F[0]/T)*(180/pi) #degrees\n",
+ "thetay=arccos(F[1]/T)*(180/pi) #degrees\n",
+ "thetaz=arccos(F[2]/T)*(180/pi) #degrees\n",
+ "\n",
+ "#Result\n",
+ "\n",
+ "print\"The force vector is \",round(F[0]),\"i +\",round(F[1]),\"j +\",round(F[2]),\"k\"\n",
+ "\n",
+ "#Answer in the textbook is printed as 1600 which is incorrect\n",
+ "print\"The angles are thetax=\",round(thetax,1),\"degrees\",\"\",\"thetay=\",round(thetay),\" degrees\",\"\",\" thetaz=\",round(thetaz,1),\" degrees\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force vector is -40.0 i + 80.0 j + 30.0 k\n",
+ "The angles are thetax= 180.0 degrees thetay= 90.0 degrees thetaz= 90.0 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-4,Page No:642"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initilization of variables\n",
+ "\n",
+ "A=[2,-1,1]\n",
+ "B=[1,1,2]\n",
+ "C=[3,-2,4]\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "R=[A[0]+B[0]+C[0],A[1]+B[1]+C[1],A[2]+B[2]+C[2]] #Resultant\n",
+ "R1=[R[0],R[1],R[2]]\n",
+ "mag=sqrt(R[0]**2+R[1]**2+R[2]**2)\n",
+ "\n",
+ "#Unit vector\n",
+ "U=R1/mag \n",
+ "\n",
+ "#Result\n",
+ "\n",
+ "print\"The unit vector is \",round(U[0],3),\"i\",round(U[1],3),\"j +\",round(U[2],2),\"k\"\n",
+ "#Answer for k part is incorrect in the textbook\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The unit vector is 0.636 i -0.212 j + 0.74 k\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-5,Page No:642"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initilization of variables\n",
+ "A=[2,-6,-3]\n",
+ "B=[4,3,-1] \n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "AdotB=A[0]*B[0]+A[1]*B[1]+A[2]*B[2] \n",
+ "magA=sqrt(A[0]**2+A[1]**2+A[2]**2) \n",
+ "magB=sqrt(B[0]**2+B[1]**2+B[2]**2)\n",
+ "theta=arccos(AdotB/(magA*magB))*(180/pi) #degrees\n",
+ "\n",
+ "#Result\n",
+ "\n",
+ "print\"The product of both the vectors is \",round(AdotB)\n",
+ "print\"The angle between them is \",round(theta,1),\"degrees\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The product of both the vectors is -7.0\n",
+ "The angle between them is 101.3 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-6,Page No:643"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initilization of variables\n",
+ "\n",
+ "A=[4,-3,1]\n",
+ "P=[2,3,-1]\n",
+ "Q=[-2,-4,3]\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "B=[Q[0]-P[0],Q[1]-P[1],Q[2]-P[2]]\n",
+ "AdotB=A[0]*B[0]+A[1]*B[1]+A[2]*B[2]\n",
+ "magB=sqrt(B[0]**2+B[1]**2+B[2]**2)\n",
+ "A_costheta=AdotB/magB\n",
+ "\n",
+ "#Result\n",
+ "\n",
+ "print\"The value of A_costheta is \",round(A_costheta)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " The value of A_costheta is 1.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-7,Page No:643"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "F=[5,10,-15]\n",
+ "a=[1,0,3]\n",
+ "b=[3,-1,-6]\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "d=[b[0]-a[0],b[1]-a[1],b[2]-a[2]]\n",
+ "\n",
+ "Work_done=(F[0]*d[0])+(F[1]*d[1])+(F[2]*d[2])\n",
+ "\n",
+ "#Result\n",
+ "\n",
+ "print\"The work done is \",round(Work_done)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The work done is 135.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-8,Page No:644"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initilization of variables\n",
+ "A=[2,-6,-3]\n",
+ "B=[4,3,-1]\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "AcrossB=[(A[1]*B[2]-B[1]*A[2]),A[2]*B[0]-A[0]*B[2],A[0]*B[1]-A[1]*B[0]]\n",
+ "mag=sqrt(AcrossB[0]**2+AcrossB[1]**2+AcrossB[2]**2)\n",
+ "n=AcrossB/mag\n",
+ "magA=(A[0]**2+A[1]**2+A[2]**2)**0.5\n",
+ "magB=(B[0]**2+B[1]**2+B[2]**2)**0.5\n",
+ "theta=arcsin(mag/(magA*magB))*(180/pi)\n",
+ "\n",
+ "#Result\n",
+ "\n",
+ "print\"The cross prcoduct of the two vectors is \",AcrossB[0],\"i\",AcrossB[1],\"j\",AcrossB[2],\"k\"\n",
+ "print\"The angle between the two is \",round(theta,1),\"degrees\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The cross prcoduct of the two vectors is 15 i -10 j 30 k\n",
+ "The angle between the two is 78.7 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-9,Page No:645"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilizatin of variable\n",
+ "omega=2 # rad/second\n",
+ "A=[0,1,2] \n",
+ "B=[1,3,-2]\n",
+ "P=[3,6,4]\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "# Point co-ordinates of axis of rotation is \n",
+ "S=[1,2,-4]\n",
+ "R=sqrt(S[0]**2+S[1]**2+S[2]**2) # magnitude of position vector\n",
+ "# Unit vector calculations along axis of rotation\n",
+ "R_unit=S/R\n",
+ "w=omega*R_unit\n",
+ "# Position vector calculations\n",
+ "r=(P[0]-A[0])+(P[1]-A[1])+(P[2]-A[2])\n",
+ "v=w*r\n",
+ "# Magnitude of v \n",
+ "v_mag=sqrt(v[0]**2+v[1]**2+v[2]**2)\n",
+ "\n",
+ "#Result\n",
+ "\n",
+ "print\"The linear velocity of point P is \",round(v_mag)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The linear velocity of point P is 20.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 51
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-10,Page No:647"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initialization\n",
+ "\n",
+ "O=[-2,3,5]\n",
+ "F=[4,4,-1]\n",
+ "P=[1,-2,4]\n",
+ "Q=[5,2,3]\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "r1=[P[0]-O[0],P[1]-O[1],P[2]-O[2]]\n",
+ "\n",
+ "moment=[(r1[1]*F[2]-r1[2]*F[1]),(r1[2]*F[0]-r1[0]*F[2]),(r1[0]*F[1]-r1[1]*F[0])] #momentum\n",
+ "\n",
+ "r2=[Q[0]-O[0],Q[1]-O[1],Q[2]-O[2]]\n",
+ "\n",
+ "moment1=[(r2[1]*F[2]-r2[2]*F[1]),(r2[2]*F[0]-r2[0]*F[2]),(r2[0]*F[1]-r2[1]*F[0])]#momentum\n",
+ "\n",
+ "#result\n",
+ "\n",
+ "print\"The moment about point O is \",round(moment[0],3),\"i\",round(moment[1],3),\"j +\",round(moment[2],3),\"k\"\n",
+ "print\"The moment about point O is \",round(moment1[0],3),\"i\",round(moment1[1],3),\"j +\",round(moment1[2],3),\"k\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The moment about point O is 9.0 i -1.0 j + 32.0 k\n",
+ "The moment about point O is 9.0 i -1.0 j + 32.0 k\n"
+ ]
+ }
+ ],
+ "prompt_number": 62
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-11,Page No:647"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initialization\n",
+ "\n",
+ "F=[3,2,-4]\n",
+ "P=[1,-1,2]\n",
+ "O=[2,-1,3]\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "r=[P[0]-O[0],P[1]-O[1],P[2]-O[2]]\n",
+ "\n",
+ "M=[(r[1]*F[2]-r[2]*F[1]),(r[2]*F[0]-r[0]*F[2]),(r[0]*F[1]-r[1]*F[0])]\n",
+ "\n",
+ "#Result\n",
+ "\n",
+ "print\"The moment of force about point O is \",round(M[0]),\"i\",round(M[1]),\"j +\",round(M[2]),\"k\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The moment of force about point O is 2.0 i -7.0 j + -2.0 k\n"
+ ]
+ }
+ ],
+ "prompt_number": 64
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-12,Page No:648"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initiaization\n",
+ "\n",
+ "A=[4,-1,7]\n",
+ "O=[1,-3,2]\n",
+ "V=[9,6,-2]\n",
+ "\n",
+ "#Clalculation\n",
+ "\n",
+ "mag_v=sqrt(V[0]**2+V[1]**2+V[2]**2)\n",
+ "\n",
+ "F=[(22/mag_v)*V[0],(22/mag_v)*V[1],(22/mag_v)*V[2]]\n",
+ "\n",
+ "r=[A[0]-O[0],A[1]-O[1],A[2]-O[2]]\n",
+ "\n",
+ "M=[r[1]*F[2]-F[1]*r[2],r[0]*F[2]-r[2]*F[0],r[0]*F[1]-r[1]*F[0]]\n",
+ "\n",
+ "#result\n",
+ "\n",
+ "print\"\",round(M[0]),\"i\",\"+\",round(M[1]),\"j\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " -68.0 i + -102.0 j\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-13,Page No:648"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initialization\n",
+ "\n",
+ "F=[50,-80,30]\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#unit vector in u direction\n",
+ "u=[cos(30*(pi/180)),cos(60*(pi/180)),cos(90*(pi/180))]\n",
+ "#unit vector in v direction\n",
+ "v=[1*cos(120*(pi/180)),1*cos(30*(pi/180)),1*cos(90*(pi/180))]\n",
+ "#unit vector in w direction\n",
+ "w=[1*cos(90*(pi/180)),1*cos(90*(pi/180)),1*cos(0*(pi/180))]\n",
+ "\n",
+ "#component of force F\n",
+ "\n",
+ "U=F[0]*u[0]+F[1]*u[1]+F[2]*u[2] #component force along u\n",
+ "V=F[0]*v[0]+F[1]*v[1]+F[2]*v[2] #component force along v\n",
+ "W=F[0]*w[0]+F[1]*w[1]+F[2]*w[2] #component force along w\n",
+ "\n",
+ "\n",
+ "#Result\n",
+ "print\"the component force along u is \",round(U,1)\n",
+ "print\"the component force along v is \",round(V,2)\n",
+ "print\"the component force along w is \",round(W,1)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the component force along u is 3.3\n",
+ "the component force along v is -94.28\n",
+ "the component force along w is 30.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 90
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-14,Page No:649"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initialization\n",
+ "\n",
+ "\n",
+ "F_v=100 #N\n",
+ "A=[0,0,0]\n",
+ "B=[0.5,0,0]\n",
+ "C=[0.5,0,1]\n",
+ "D=[0,0,1]\n",
+ "E=[0,0.5,0]\n",
+ "F=[0.5,0.5,0]\n",
+ "G=[0.5,0.5,1]\n",
+ "H=[0,0.5,1]\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "F_vec=F_v/sqrt((F[0]-C[0])**2+(F[1]-C[1])**2+(F[2]-C[2])**2)\n",
+ "F_x=(F[0]-C[0])*F_vec\n",
+ "F_y=(F[1]-C[1])*F_vec\n",
+ "F_z=(F[2]-C[2])*F_vec\n",
+ "\n",
+ "F=[F_x,F_y,F_z]\n",
+ "\n",
+ "#moment about point E\n",
+ "\n",
+ "#taking position vector r directed from E on force F\n",
+ "r_ec=[C[0]-E[0],C[1]-E[1],C[2]-E[2]]\n",
+ "\n",
+ "#M_e=r_ec*F\n",
+ "\n",
+ "M_e=[(r_ec[1]*F[2]-r_ec[2]*F[1]),(r_ec[0]*F[2]-r_ec[2]*F[0]),(r_ec[0]*F[1]-r_ec[1]*F[0])]\n",
+ "\n",
+ "#unit vector in direction AE is n_ae\n",
+ "\n",
+ "n_ae=[0,1,0]\n",
+ "\n",
+ "#moment about axis AE\n",
+ "#M_ae=M_e*n_ae\n",
+ "\n",
+ "M_ae=[M_e[0]*n_ae[0],M_e[1]*n_ae[1],M_e[2]*n_ae[2]] \n",
+ "\n",
+ "#result\n",
+ "\n",
+ "print\"moment of force about E is \",round(M_e[0]),\"i\",round(M_e[1]),\"j +\",round(M_e[2]),\"k\" #answer given in book is wrong \n",
+ "print\"moment of force about axis AE is \",round(M_ae[0]),\"i\",round(M_ae[1]),\"j +\",round(M_ae[2]),\"k\" #answer given in book is wrong "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "moment of force about E is 0.0 i -45.0 j + 22.0 k\n",
+ "moment of force about axis AE is 0.0 i -45.0 j + 0.0 k\n"
+ ]
+ }
+ ],
+ "prompt_number": 103
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-15,Page No:652"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initialization\n",
+ "F_1=5 #kN\n",
+ "F_2=7.5 #kN\n",
+ "F_3=10 #kN\n",
+ "A=[0,0,0]\n",
+ "E=[0,1,0]\n",
+ "D=[0,0,2]\n",
+ "F=[3,1,0]\n",
+ "G=[3,1,2]\n",
+ "H=[0,1,2]\n",
+ "#calculation\n",
+ "\n",
+ "F1=[F_1*3**-1*(F[0]-E[0]),F_1/3*(F[1]-E[1]),F_1/3*(F[2]-E[2])] #5/sqrt(9)=5/3\n",
+ "F2=[F_2*(H[0]),F_2*-H[1],F_2*0] #force is only acting in the y direction\n",
+ "F3=[F_3/3.6*(G[0]-E[0]),F_3/3.6*(G[1]-E[1]),F_3/3.6*(G[2]-E[2])] #10/sqrt(13)=10/3.6\n",
+ "\n",
+ "#resultant force R\n",
+ "\n",
+ "#R=F1+F2+F3\n",
+ "R=[F1[0]+F2[0]+F3[0],F1[1]+F2[1]+F3[1],F1[2]+F2[2]+F3[2]]\n",
+ "\n",
+ "#resultant force along axis AE\n",
+ "\n",
+ "r_ae=[E[0]-A[0],E[1]-A[1],E[2]-A[2]]\n",
+ "\n",
+ "r_ad=[D[0]-A[0],D[1]-A[1],D[2]-A[2]]\n",
+ "\n",
+ "#moments of force about A\n",
+ "\n",
+ "#M_ra=r_ae*F1+r_ae*F2+r_ae*F3\n",
+ "\n",
+ "M_ra1=[(r_ae[1]*F1[2]-r_ae[2]*F1[1]),(r_ae[0]*F1[2]-r_ae[2]*F1[0]),(r_ae[0]*F1[1]-r_ae[1]*F1[0])] #r_ae*F1\n",
+ "M_ra2=[(r_ad[1]*F2[2]-r_ad[2]*F2[1]),(r_ad[0]*F2[2]-r_ad[2]*F2[0]),(r_ad[0]*F2[1]-r_ad[1]*F2[0])] #r_ae*F2\n",
+ "M_ra3=[(r_ae[1]*F3[2]-r_ae[2]*F3[1]),(r_ae[0]*F3[2]-r_ae[2]*F3[0]),(r_ae[0]*F3[1]-r_ae[1]*F3[0])] #r_ae*F3\n",
+ "\n",
+ "M_ra=[M_ra1[0]+M_ra2[0]+M_ra3[0],M_ra1[1]+M_ra2[1]+M_ra3[1],M_ra1[2]+M_ra2[2]+M_ra3[2]]\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"resultant force R\",round(R[0],2),\"i\",round(R[1],2),\"j +\",round(R[2],2),\"k\"\n",
+ "print\"moments of all forces about A\",round(M_ra[0],3),\"i +\",round(M_ra[1]),\"j\",round(M_ra[2],3),\"k\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "resultant force R 13.33 i -7.5 j + 5.56 k\n",
+ "moments of all forces about A 20.556 i + 0.0 j -13.333 k\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-16,Page No:654"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initialization\n",
+ "\n",
+ "F=20 #kN\n",
+ "M_x=76 #kNm\n",
+ "M_y=82 #kNm\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "#Force shifted to P by distance x\n",
+ "x=M_x*F**-1\n",
+ "\n",
+ "#Force shifted to P by distance z\n",
+ "z=M_y*F**-1\n",
+ "\n",
+ "#result\n",
+ "\n",
+ "print\"the force shifted to P by distance x\",round(x,2),\"m\"\n",
+ "print\"the force shited to P by distance y\",round(z,2),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the force shifted to P by distance x 3.8 m\n",
+ "the force shited to P by distance y 4.1 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 109
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-17,Page No:655"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#initialization\n",
+ "\n",
+ "A=[0,4.5,0]\n",
+ "B=[2.8,0,0]\n",
+ "C=[0,0,-2.4]\n",
+ "D=[-2.6,0,1.8]\n",
+ "\n",
+ "#calculations\n",
+ "\n",
+ "#tension in cable AB\n",
+ "x=(B[0]**2+A[1]**2)**0.5\n",
+ "T_ab=[(B[0]-A[0])/x,(B[1]-A[1])/x,(B[2]-A[2])/x]\n",
+ "\n",
+ "#tension in cable AC\n",
+ "y=(C[2]**2+A[1]**2)**0.5\n",
+ "T_ac=[(C[0]-A[0])/y,(C[1]-A[1])/y,(C[2]-A[2])/y]\n",
+ "\n",
+ "#tension in cable AD\n",
+ "z=(D[0]**2+D[2]**2+A[1]**2)**0.5\n",
+ "T_ad=[[(D[0]-A[0])/z,(D[1]-A[1])/z,(D[2]-A[2])/z]]\n",
+ "\n",
+ "#weight acting vertically downwards \n",
+ "W=[0*5000,1*5000,0*5000]\n",
+ "\n",
+ "#Solving using equations of equlibrium\n",
+ "import math\n",
+ "import numpy as np\n",
+ "A=np.array([[0.528,-0.473,0],[0,-0.327,0.47],[0.85,0.818,0.88]])\n",
+ "B=np.array([0,0,5000])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "#result\n",
+ "print \"T_AB =\",round(C[0],1),\"N\",\"T_AD =\",round(C[1]),\"N\",\"T_AC\",round(C[2],1),\"N\" \n",
+ "#answer varies due to decimal accuracy in python\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "T_AB = 2043.7 N T_AD = 2281.0 N T_AC 1587.2 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-18,Page No:656"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "P=5 # kN\n",
+ "Q=3 # kN\n",
+ "C=5 # kNm # couple\n",
+ "# ref fig.20 # Notations have been assumed\n",
+ "z1=1.5 # m\n",
+ "z2=0.625 # m\n",
+ "z3=0.5 # m\n",
+ "x1=3.5 # m\n",
+ "x2=0.625 # m\n",
+ "# Calculations\n",
+ "# sum M_x=0\n",
+ "R_A=((P*z2)+(Q*z3)+C)*z1**-1 # kN\n",
+ "# M_z=0\n",
+ "R_C=((Q*x1)+(P*x2))*x1**-1 # kN\n",
+ "# sum F_y=0\n",
+ "R_B=P+Q-R_A-R_C # kN\n",
+ "# Results\n",
+ "\n",
+ "print\"The reactions are: \",round(R_A,3),\"kN\",round(R_C,3),\"kN\",round(R_B,2),\"kN\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reactions are: 6.417 kN 3.893 kN -2.31 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 26.26-19,Page No:657"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "# Initilization of variables\n",
+ "F=2 # kN\n",
+ "W=1 # kN\n",
+ "# Co-ordinates as matrices\n",
+ "A=[0,0,0]\n",
+ "C=[0,0,1.2]\n",
+ "B=[0,0,2.5]\n",
+ "D=[-1,1,0]\n",
+ "E=[1,1,0]\n",
+ "F=[0,0,1]\n",
+ "G=[0,0,2]\n",
+ "# Force vector\n",
+ "f=[0,-2,0]\n",
+ "# Weight vector\n",
+ "w=[0,-1,0]\n",
+ "# Calculations\n",
+ "# we have 5 unknowns: A_x,A_y,A_z,T_FE & T_GD\n",
+ "# we define and solve eqn's 1,2,3,4&5 using matrix as,\n",
+ "P=np.array([[1,0,0,0.58,-0.41],[0,1,0,0.58,0.41],[0,0,1,-0.58,-0.82],[0,0,0,0.58,0.82],[0,0,0,0.58,-0.82]])\n",
+ "Q=np.array([0,3,0,6.25,0])\n",
+ "X=np.linalg.solve(P,Q)\n",
+ "\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The components of reaction at A are: A_x=\",round(X[0],2),\" kN \",\" A_y=\",round(X[1],2),\" kN \",\"and A_z=\",round(X[2],2),\" kN\"\n",
+ "print\"The tensions in the cable are: T_FE=\",round(X[3],2),\" kN \",\"and T_GD=\",round(X[4],1), \"kN \"\n",
+ "# The solution in the textbook is incorrect and yeilds singularity in matrix calculation.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The components of reaction at A are: A_x= -1.56 kN A_y= -1.69 kN and A_z= 6.25 kN\n",
+ "The tensions in the cable are: T_FE= 5.39 kN and T_GD= 3.8 kN \n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter02.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter02.ipynb
new file mode 100755
index 00000000..eba2a295
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter02.ipynb
@@ -0,0 +1,792 @@
+{
+ "metadata": {
+ "name": "chapter2.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 2:Concurrent Forces in A Plane"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-1, Page No:10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "P=50 #N\n",
+ "Q=100 #N\n",
+ "beta=150 #degree # angle between P & the horizontal\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "R=(P**2+Q**2-(2*P*Q*cos(beta*(pi/180))))**0.5 # using the Trignometric solution\n",
+ "Alpha=(arcsin(((sin(beta*(pi/180))*Q)/R)))*(180/pi)+15 #Angle in degrees\n",
+ "\n",
+ "#Result\n",
+ "print \"The magnitude of resultant is\",round(R,2),\"N\"\n",
+ "print \"The direction of resultant is\",round(Alpha,2),\"degrees\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-2,Page No:16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "P=50 #N\n",
+ "Q=100 #N\n",
+ "beta=15 #degree # angle between P& the horizontal\n",
+ "theta=45 #degree # angle between the resultant (R) & the horizontal\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Rx=P*cos(beta*(pi/180))+Q*cos(theta*(pi/180)) #N\n",
+ "Ry=P*sin(beta*(pi/180))+Q*sin(theta*(pi/180)) #N\n",
+ "R=((Rx**2)+(Ry**2))**0.5 #N\n",
+ "alpha=arctan(Ry/Rx)*(180/pi) #degree\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The magnitude of the resultant is \",round(R,2),\"N\"\n",
+ "print\"The ange of the resultant with x-axis is\",round(alpha,2),\"degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The magnitude of the resultant is 145.47 N\n",
+ "The ange of the resultant with x-axis is 35.1 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-4,Page No:19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "Tac=3.5 #kN\n",
+ "Tbc=3.5 #kN\n",
+ "alpha=20 #degree #angle made by Tac with -ve X axis\n",
+ "beta=50 #degree #angle made by Tbc with +ve X axis\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=(arctan(((Tac*sin(alpha*(pi/180)))+(Tbc*sin(beta*(pi/180))))/((Tac*cos(alpha*(pi/180)))-(Tbc*cos(beta*(pi/180))))))*(180/pi) #degree\n",
+ "P=Tac*(cos(alpha*(pi/180))-cos(beta*(pi/180)))/(cos(theta*(pi/180))) #kN # from eq'n 1\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The maximum force that can be applied is \",round(P,1),\"kN\"\n",
+ "print\"The direction of applied force is \",round(theta,2),\"degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum force that can be applied is 4.0 kN\n",
+ "The direction of applied force is 75.0 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-8,Page No:25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "lAB=0.4 #m\n",
+ "lBC=0.3 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "alpha=arctan(lAB/lBC)*(180/pi) #degree\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The angle which the force should make with the horizontal to keep the edge AB of the body vertical is \",round(alpha,2),\"degrees\" #here alpha=theta"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The angle which the force should make with the horizontal to keep the edge AB of the body vertical is 53.13 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-9,Page No:28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "F=1000 #N\n",
+ "lAB=0.5 #m\n",
+ "lDC=0.25 #m #length of the perpendicular drawn from point C to AB\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "lAC=((0.3)**2+(0.25)**2)**0.5 #m\n",
+ "lBC=((0.20)**2+(0.25)**2)**0.5 #m\n",
+ "Sac=(lAC*F)/(lAB) #N #by law of concurrent forces\n",
+ "Sbc=(lBC*F)/(lAB) #N #by law of concurrent forces\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The axial force in the bar AC(by aw of concurrent forces) is \",round(Sac),\"N\" #the answer in textbook is wrong by 1 N \n",
+ "print\"The axial force in the bar BC(by aw of concurrent forces) is \",round(Sbc),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The axial force in the bar AC(by aw of concurrent forces) is 781.0 N\n",
+ "The axial force in the bar BC(by aw of concurrent forces) is 640.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-10,Page No:30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "#Initilization of variables\n",
+ "\n",
+ "F3=500 #N\n",
+ "alpha=60 #degree #angle made by F3 with F2\n",
+ "beta=40 #degree #angle made by F1 with F3\n",
+ "theta=80 #degree #angle made by F1 with F2\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "# Solving by using law of sines\n",
+ "\n",
+ "F1=(F3*sin(alpha*(pi/180))/sin(theta*(pi/180))) #N #by law of sines\n",
+ "F2=(F3*sin(beta*(pi/180))/sin(theta*(pi/180))) #N #by law of sines\n",
+ "\n",
+ "#Resuts\n",
+ "\n",
+ "print\"The force F1 is \",round(F1,1),\"N\"\n",
+ "print\"The force F2 is \",round(F2,1),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force F1 is 439.7 N\n",
+ "The force F2 is 326.4 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-11,Page No:31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "P=5000 #N\n",
+ "lAB=5 #m\n",
+ "lOB=1.443 # m\n",
+ "alpha=30 #degree #angle made by force P with the beam\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=arctan(lOB/lAB)*(180/pi) #degree # eq'n 1\n",
+ "Xa=(P*cos(alpha*(pi/180))) #N #using eq'n 4\n",
+ "Ya=Xa*tan(theta*(pi/180)) #N #from eq'n 3 & 4\n",
+ "Rb=(P*sin(alpha*(pi/180)))-Ya # N # substuting value of Ya in eq'n 5\n",
+ "Ra=((Xa**2)+(Ya**2))**0.5 #N\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction at support A is \",round(Ra,1),\"N\"\n",
+ "print\"The reaction at support B is \",round(Rb),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at support A is 4506.8 N\n",
+ "The reaction at support B is 1250.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 46
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-12,Page No:32"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "W=1000 #N\n",
+ "OD=0.4 #m\n",
+ "AD=0.3 #m\n",
+ "AO=0.5 #m #AO=sqrt((0.4)^2+(0.3)^2)\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Ra=W*AO/OD #N\n",
+ "Rc=W*AD/OD #N\n",
+ "alpha=arctan(OD/AD)*(180/pi) #degree\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction at support A is \",round(Ra),\"N\" # answer in textbook is wrong by 50 N\n",
+ "print\"The reaction at support B is \",round(Rc),\"N\"\n",
+ "print\"The angle that Rc makes with horizontal \",round(alpha,1),\"degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at support A is 1250.0 N\n",
+ "The reaction at support B is 750.0 N\n",
+ "The angle that Rc makes with horizontal 53.1 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 49
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-13,Page No:33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "W=2500 #N #This load acts at point B and C.\n",
+ "alpha=30 #degree # angle made by T1 with +ve y-axis & T2 with +ve x-axis\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "T2=W-(((cos(alpha*(pi/180)))**2/(sin(alpha*(pi/180))))-(sin(alpha*(pi/180)))) # N # substuting eq'n 1 in 2\n",
+ "T1=(T2*cos(30*(pi/180)))/(sin(30*(pi/180))) #N # using eq'n 1\n",
+ "T3=T2 #N # By equilibrium eq'n at point C(sumFx=0)\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"Tension in portion AB is \",round(T1),\"N\" #due to decimal variance the answer varies by 2.0 N\n",
+ "print\"Tension in portion BC is \",round(T2),\"N\" #due to decimal variance the answer varies by 1.0 N\n",
+ "print\"Tension in portion CD is \",round(T3),\"N\" #due to decimal variance the answer varies by 1.0 N"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Tension in portion AB is 4328.0 N\n",
+ "Tension in portion BC is 2499.0 N\n",
+ "Tension in portion CD is 2499.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 55
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-15,Page No:35"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "d=0.6 #m #diameter of the wheel\n",
+ "r=0.3 #m #radius of the wheel\n",
+ "W=1000 #N #weight of the wheel\n",
+ "h=0.15 #m #height of rectangular block\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=arctan(((h)**0.5)/((d-h)**0.5))\n",
+ "P=(W*tan(theta)) #N # dividing eq'n 1 & 2\n",
+ "\n",
+ "#Resuts\n",
+ "\n",
+ "print\"The force P so that the wheel is just to roll over the block is \",round(P),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force P so that the wheel is just to roll over the block is 577.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 56
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-16,Page No:36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "Soa=1000 #N (tension)\n",
+ "alpha=45 #degree #where alpha=(360/8)\n",
+ "theta=67.5 #degree #angle made by bar AO with AB &AH\n",
+ "\n",
+ "#Calcultions\n",
+ "\n",
+ "Sab=Soa*(sin(theta*(pi/180))/sin(alpha*(pi/180))) # N # Using law of sines\n",
+ "Sah=Sab #N\n",
+ "Sob=(Sab*sin((180-2*(theta))*(pi/180)))/sin(theta*(pi/180)) #N\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The axial force in the bar AB is \",round(Sab,1),\"N\" #Compression\n",
+ "print\"The axial force in the bar OB is \",round(Sob),\"N\" #Tension"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The axial force in the bar AB is 1306.6 N\n",
+ "The axial force in the bar OB is 1000.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 60
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-17,Page No:37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "W=500 #N #weight of cylinder\n",
+ "alpha=25 #degree #angle made by OA with horizontal\n",
+ "beta=65 #degree #angle made by OB with horizontal\n",
+ "theta=90 #degree # theta=(alpha+beta)\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Ra=(W*sin(beta*(pi/180)))/sin(theta*(pi/180)) #N #from equilibrium eq'n\n",
+ "Rb=(W*sin(alpha*(pi/180)))/sin(theta*(pi/180)) #N #from equilibrium eqn's\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction at A is \",round(Ra,1),\"N\"\n",
+ "print\"The reaction at B is \",round(Rb,1),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at A is 453.2 N\n",
+ "The reaction at B is 211.3 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 62
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-18,Page No:38"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "Wa=1000 #N #weight of sphere A\n",
+ "Wb=400 #N #weight of sphere B\n",
+ "Ra=0.09 #m #radius of sphere A\n",
+ "Rb=0.05 #m #radius of sphere B\n",
+ "theta=33.86 #degree #angle made by Rq with Wb\n",
+ "alpha=60 #degree #angle made by Rl with horizontal\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Rq=Wb/cos(theta*(pi/180)) #N #using sum Fy=0 for sphere B\n",
+ "Rp=Rq*sin(theta*(pi/180)) #N #using sum Fx=0 for sphere B\n",
+ "Rl=(Rq*sin(theta*(pi/180)))/sin(alpha*(pi/180)) #N #using sum Fx=0 for sphere A\n",
+ "Rn=((Wa)+(Rq*cos(theta*(pi/180)))-(Rl*cos(alpha*(pi/180)))) #N\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction at point P is \",round(Rp,1),\"N\"\n",
+ "print\"The reaction at point L is \",round(Rl),\"N\"\n",
+ "print\"The reaction at point N is \",round(Rn,1),\"N\" # the answer in textbook is wrong by 3.2 N"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at point P is 268.4 N\n",
+ "The reaction at point L is 310.0 N\n",
+ "The reaction at point N is 1245.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 65
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-19,Page No:39"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "P=50 #N\n",
+ "Q=100 #N\n",
+ "alpha=30 #degree #angle made by Rq with +ve Y-axis\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta_r=arctan((P*((cos(alpha*(pi/180)))/(sin(alpha*(pi/180))))-Q*tan(alpha*(pi/180)))/(P+Q)) #radians\n",
+ "theta=theta_r*(180/pi)\n",
+ "T=Q/(cos(theta*(pi/180))*(cos(alpha*(pi/180)))/(sin(alpha*(pi/180)))-sin(theta*(pi/180))) #N\n",
+ "\n",
+ "#Results\n",
+ "print\"The tension in the string is \",round(T,1),\"N\"\n",
+ "print\"The angle wich the string makes with the horizontal when the system is in equilibrium is \",round(theta,1),\"degrees\" \n",
+ "#Note:The decimal accuracy in python causes discrepancy in answers"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The tension in the string is 66.1 N\n",
+ "The angle wich the string makes with the horizontal when the system is in equilibrium is 10.9 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-20,Page No:41"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "theta1=50.5 #degree #is the angle made between BC & and BE\n",
+ "theta2=36.87 #degree #is te angle ade between BA &BE \n",
+ "g=9.81 #m/s^2\n",
+ "Wa=15*g #N\n",
+ "Wb=40*g #N\n",
+ "Wc=20*g #N\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "R2=Wc/(sin(theta1*(pi/180))) #N #from F.B.D of cylinder C(sum Fy=0)\n",
+ "R4=(Wb+R2*sin(theta1*(pi/180)))/sin(theta2*(pi/180)) #N #from F.B.D of cylinder B(sum Fy=0)\n",
+ "R6=R4*cos(theta2*(pi/180)) #N #from F.B.D of cylinder A(sum Fx=0)\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction between the cylinder A and the wall of the channel is \",round(R6,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction between the cylinder A and the wall of the channel is 784.8 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 70
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-21,Page No:50"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilazation of variables\n",
+ "\n",
+ "F=1000 #N\n",
+ "theta=30 #degree #angle made by the force with the beam AB\n",
+ "Lab=3 #m\n",
+ "Lae=2 #m\n",
+ "Lce=1 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Re=(F*Lab*sin(theta*(pi/180)))/Lae #N #Taking moment at A\n",
+ "Rd=(Re*Lce)/(Lab*sin(theta*(pi/180))) #N #Taking moment about C\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction at D due to force of 1000 N acting at B is \",round(Rd,2),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at D due to force of 1000 N acting at B is 500.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 71
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2-23,Page No:51"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "W=1000 #N\n",
+ "r=0.30 #m #radius of the wheel\n",
+ "h=0.15 #m #height of the obstacle\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=arcsin(1)*(180/pi) #degree #P is mini when sin(theta)=1 from eq'n of P\n",
+ "Pmini=(W*((2*r*h)-(h**2))**0.5)/(r*sin(theta*(pi/180))) #N\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The least force required to just turn the wheel over the block is \",round(Pmini),\"N\"\n",
+ "print\"The angle wich should be made by Pmini with AC is \",round(theta,2),\"degrees\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The least force required to just turn the wheel over the block is 866.0 N\n",
+ "The angle wich should be made by Pmini with AC is 90.0 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter03.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter03.ipynb
new file mode 100755
index 00000000..cdcc5a68
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter03.ipynb
@@ -0,0 +1,598 @@
+{
+ "metadata": {
+ "name": "chapter3.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 3 : Parallel Forces In A Plane"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-1,Page No:64"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "W=1000 #N\n",
+ "Lab=1 #m\n",
+ "Lac=0.6 #m\n",
+ "theta=60 #degree #angle made by the beam with the horizontal\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Q=(W*Lac*cos(theta*(pi/180)))/(Lab*cos(theta*(pi/180))) #N # from eq'n 2\n",
+ "P=W-Q #N # from eq'n 1\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The load taken by man P is \",round(P),\"N\"\n",
+ "print\"The load taken by man Q is \",round(Q),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The load taken by man P is 400.0 N\n",
+ "The load taken by man Q is 600.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-2,Page No:64"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "F=1000 #N\n",
+ "Lab=1 #m\n",
+ "Lbc=0.25 #m\n",
+ "Lac=1.25 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Rb=(F*Lac)/Lab #N # from eq'n 2\n",
+ "Ra=Rb-F #N # fom eq'n 1\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction (downwards)at support A is \",round(Ra),\"N\"\n",
+ "print\"The reaction (upwards)at support B is \",round(Rb),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction (downwards)at support A is 250.0 N\n",
+ "The reaction (upwards)at support B is 1250.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-3,Page No:65"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Inilitization of variables\n",
+ "\n",
+ "Lab=12 #m\n",
+ "Mc=40 #kN-m \n",
+ "Md=10 #kN-m\n",
+ "Me=20 #kN-m\n",
+ "Fe=20 #kN #force acting at point E\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Xa=-(Fe) #kN #take sum Fx=0\n",
+ "a=Me+Md-Mc #N #take moment at A\n",
+ "Rb=a*(Lab)**-1\n",
+ "Ya=-Rb #N #take sum Fy=0\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The vertical reaction (upwards) at A is \",round(Ya,3),\"kN\"\n",
+ "print\"The horizontal reaction (towards A) is \",round(Xa,2),\"kN\"\n",
+ "print\"The reaction (downwards) at B is \",round(Rb,3),\"kN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The vertical reaction (upwards) at A is 0.833 kN\n",
+ "The horizontal reaction (towards A) is -20.0 kN\n",
+ "The reaction (downwards) at B is -0.833 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-5,Page No:66"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "W=1000 #N\n",
+ "Lad=7.5 #m\n",
+ "Lae=1.5 #m\n",
+ "La1=3.75 #m #distance of 1st 1000N load from pt A\n",
+ "La2=5 #m #distance of 2nd 1000N load from pt A\n",
+ "La3=6 #m # distance of 3rd 1000N load from pt A\n",
+ "\n",
+ "# Calculations (part1)\n",
+ "\n",
+ "#using matrix to solve the given eqn's 1 & 2\n",
+ "\n",
+ "A=np.array([[1 ,-2.5],[3.5 ,-5]])\n",
+ "B=np.array([1000,7250])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "#Resuts\n",
+ "\n",
+ "print\"The reaction at F i.e Rf is \",round(C[0]),\"N\"\n",
+ "print\"The reaction at D i.e Rd is \",round(C[1]),\"N\"\n",
+ "\n",
+ "#Calculations (part 2)\n",
+ "#Consider combined F.B.D of beams AB,BC &CD. Take moment at A\n",
+ "\n",
+ "Re=((W*La1)+(W*La2)+(W*La3)+(C[1]*Lad)-(C[0]*La3))/Lae #N\n",
+ "Ra=C[1]-Re-C[0]+(3*W) #N #Taking sum of forces in Y direction\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction at pt E i.e Re is \",round(Re),\"N\"\n",
+ "print\"The reaction at pt A i.e Ra is \",round(Ra),\"N\" #acting vertically downwards"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at F i.e Rf is 3500.0 N\n",
+ "The reaction at D i.e Rd is 1000.0 N\n",
+ "The reaction at pt E i.e Re is 833.0 N\n",
+ "The reaction at pt A i.e Ra is -333.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-7,Page No:69"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "Ws=2 #kN #weight of scooter\n",
+ "Wd=0.5 #kN #weight of driver\n",
+ "Lab=1 #m\n",
+ "Led=0.8 #m\n",
+ "Leg=0.1 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Rc=((2*Leg)+(Wd*Led))/Lab #kN #take moment at E\n",
+ "Ra=(2+Wd-Rc)/2 #kN # as Ra=Rb,(Ra+Rb=2*Ra)\n",
+ "Rb=Ra # kN\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction at wheel A is \",round(Ra,2),\"kN\"\n",
+ "print\"The reaction at wheel B is \",round(Rb,2),\"kN\"\n",
+ "print\"The reaction at wheel C is \",round(Rc,2),\"kN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at wheel A is 0.95 kN\n",
+ "The reaction at wheel B is 0.95 kN\n",
+ "The reaction at wheel C is 0.6 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-8,Page No:69"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "W1=15 #N #up\n",
+ "W2=60 #N #down\n",
+ "W3=10 #N #up\n",
+ "W4=25 #N #down\n",
+ "Lab=1.2 #m\n",
+ "Lac=0.4 #m\n",
+ "Lcd=0.3 #m\n",
+ "Ldb=0.5 #m\n",
+ "Lad=0.7 #m\n",
+ "Leb=0.417 #m #Leb=Lab-x\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#(a) A single force\n",
+ "\n",
+ "Ry=W1-W2+W3-W4 #N #take sum Fy=0\n",
+ "x=((-W2*Lac)+(W3*Lad)-(W4*Lab))/(Ry) #m\n",
+ "\n",
+ "#(b) Single force moment at A\n",
+ "\n",
+ "Ma=(Ry*x) #N-m\n",
+ "\n",
+ "# Single force moment at B\n",
+ "\n",
+ "Mb=W2*Leb #N-m\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction for single force (a) is \",round(Ry,2),\"N\"\n",
+ "print\"The distance of Ry from A is \",round(x,3),\"m\"\n",
+ "print\"The moment at A is \",round(Ma,2),\"N-m\"\n",
+ "print\"The moment at B is \",round(Mb,2),\"N-m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction for single force (a) is -60.0 N\n",
+ "The distance of Ry from A is 0.783 m\n",
+ "The moment at A is -47.0 N-m\n",
+ "The moment at B is 25.02 N-m\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-9,Page No:71"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "Ra=5000 #N\n",
+ "Ma=10000 #Nm\n",
+ "alpha=60 #degree #angle made by T1 with the pole\n",
+ "beta=45 #degree #angle made by T2 with the pole\n",
+ "theta=30 #degree #angle made by T3 with the pole\n",
+ "Lab=6 #m\n",
+ "Lac=1.5 #m\n",
+ "Lcb=4.5 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "T3=Ma/(4.5*sin(theta*(pi/180))) #N #take moment at B\n",
+ "\n",
+ "# Now we use matrix to solve eqn's 1 & 2 simultaneously,\n",
+ "\n",
+ "A=np.array([[-0.707, 0.866],[0.707, 0.5]])\n",
+ "B=np.array([2222.2,8848.8])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"Tension in wire 1 i.e T1 is \",round(C[1],1),\"N\" #answer may vary due to decimal variance\n",
+ "print\"Tension in wire 2 i.e T2 is \",round(C[0],1),\"N\"\n",
+ "print\"Tension in wire 3 i.e T3 is \",round(T3,1),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Tension in wire 1 i.e T1 is 8104.7 N\n",
+ "Tension in wire 2 i.e T2 is 6784.2 N\n",
+ "Tension in wire 3 i.e T3 is 4444.4 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-10,Page No:76"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "w=2000 #N/m\n",
+ "Lab=3 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "W=w*Lab/2 #N# Area under the curve\n",
+ "Lac=(0.6666)*Lab #m#centroid of the triangular load system\n",
+ "Rb=(W*Lac)/Lab #N #sum of moment at A\n",
+ "Ra=W-Rb #N\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The resultant of the distibuted load lies at \",round(Lac),\"m\"\n",
+ "print\"The reaction at support A is \",round(Ra),\"N\"\n",
+ "print\"The reaction at support B is \",round(Rb),\"N\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The resultant of the distibuted load lies at 2.0 m\n",
+ "The reaction at support A is 1000.0 N\n",
+ "The reaction at support B is 2000.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-12,Page No:78"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "w1=1.5 #kN/m # intensity of varying load at the starting point of the beam\n",
+ "w2=4.5 #kN/m # intensity of varying load at the end of the beam\n",
+ "l=6 #m # ength of the beam\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The varying load distribution is divided into a rectangle and a right angled triangle\n",
+ "\n",
+ "W1=w1*l #kN # where W1 is the area of the load diagram(rectangle ABED)\n",
+ "x1=l/2 #m # centroid of the rectangular load system\n",
+ "W2=(w2-w1)*l/2 #kN # where W1 is the area of the load diagram(triangle DCE)\n",
+ "x2=2*l/3 #m # centroid of the triangular load system\n",
+ "W=W1+W2 #kN # W is the resultant\n",
+ "x=((W1*x1)+(W2*x2))/W #m # where x is the distance where the resultant lies\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The resultant of the distributed load system is \",round(W),\"kN\"\n",
+ "print\"The line of action of the resulting load is \",round(x,1),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The resultant of the distributed load system is 18.0 kN\n",
+ "The line of action of the resulting load is 3.5 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-13,Page No:78"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initiization of variables\n",
+ "\n",
+ "W1=10 #kN #point load acting at D\n",
+ "W2=20 #kN # point load acting at C at an angle of 30 degree\n",
+ "W3=5 #kN/m # intensity of udl acting on span EB of 4m\n",
+ "W4=10 #kN/m # intensity of varying load acting on span BC of 3m\n",
+ "M=25 #kN-m # moment acting at E\n",
+ "theta=30 #degree # angle made by 20 kN load with the beam\n",
+ "Lad=2 #m\n",
+ "Leb=4 #m\n",
+ "Laf=6 #m #distance between the resultant of W3 & point A\n",
+ "Lac=11 #m\n",
+ "Lag=9 #m #distance between the resultant of W4 and point A\n",
+ "Lbc=3 #m\n",
+ "Lab=8 #m\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "Xa=20*cos(theta*(pi/180)) #kN # sum Fx=0\n",
+ "Rb=((W1*Lad)+(-M)+(W3*Leb*Laf)+(W2*sin(theta*(pi/180))*Lac)+((W4*Lbc*Lag)/2))/Lab #kN # taking moment at A\n",
+ "Ya=W1+(W2*sin(theta*(pi/180)))+(W3*Leb)+(W4*Lbc/2)-Rb #kN # sum Fy=0\n",
+ "Ra=(Xa**2+Ya**2)**0.5 #kN # resultant at A\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The horizontal reaction at A i.e Xa is \",round(Xa,2),\"kN\"\n",
+ "print\"The vertical reaction at A i.e Ya is \",round(Ya),\"kN\"\n",
+ "print\"The reaction at A i.e Ra is \",round(Ra),\"kN\"\n",
+ "print\"The reaction at B i.e Rb is \",round(Rb),\"kN\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The horizontal reaction at A i.e Xa is 17.32 kN\n",
+ "The vertical reaction at A i.e Ya is 10.0 kN\n",
+ "The reaction at A i.e Ra is 20.0 kN\n",
+ "The reaction at B i.e Rb is 45.0 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3-14,Page No:79"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "h=4 #m #height of the dam wall\n",
+ "rho_w=1000 # kg/m^3 # density of water\n",
+ "rho_c=2400 # kg/m^3 # density of concrete\n",
+ "g=9.81 # m/s^2\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "P=(rho_w*g*h**2)/2 # The resultant force due to water pressure per unit length of the dam\n",
+ "x=(0.6666)*h #m # distance at which the resutant of the triangular load acts \n",
+ "b=((2*P*h)/(3*h*rho_c*g))**0.5 # m # eq'n required to find the minimum width of the dam\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The minimum width which is to be provided to the dam to prevent overturning about point B is \",round(b,3),\"m\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The minimum width which is to be provided to the dam to prevent overturning about point B is 1.491 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter04.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter04.ipynb
new file mode 100755
index 00000000..e5d35c61
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter04.ipynb
@@ -0,0 +1,138 @@
+{
+ "metadata": {
+ "name": "chapter4.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 4 : Centroid , Centre Of Mass And Centre Of Gravity"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4-8,Page No:100"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "b1=20 #cm # width of top flange\n",
+ "t1=5 #cm # thickness of top flange\n",
+ "b2=5 #cm # width of web\n",
+ "t2=15 #cm # thickness or height of the web\n",
+ "b3=30 #cm # width of bottom flange\n",
+ "t3=5 #cm # thickness of bottom flange\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "A1=b1*t1 #cm^2 # area of bottom flange\n",
+ "A2=b2*t2 #cm^2 # area of the web\n",
+ "A3=b3*t3 #cm^2 # area of top flange\n",
+ "y1=t3+t2+(t1*0.5) #cm # y co-ordinate of the centroid of top flange\n",
+ "y2=t3+(t2*0.5) #cm # y co-ordinate of the centroid of the web\n",
+ "y3=t3*0.5 #cm # y co-ordinate of the centroid of the bottom flange\n",
+ "y_c=((A1*y1)+(A2*y2)+(A3*y3))/(A1+A2+A3) #cm # where y_c is the centroid of the un-symmetrycal I-section\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The centroid of the un equal I-section is \",round(y_c,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The centroid of the un equal I-section is 10.96 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4-9,Page No:101"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "# The given section is Z-section which is un-symmetrycal about both the axis\n",
+ "\n",
+ "b1=20 #cm # width of bottom flange \n",
+ "t1=5 #cm # thickness of the bottom flange\n",
+ "b2=2.5 #cm # thickness of the web of the flange\n",
+ "t2=15 #cm # depth of the web\n",
+ "b3=10 #cm # width of the top flange\n",
+ "t3=2.5 #cm # thickness of the top flange\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Respective areas\n",
+ "\n",
+ "A1=b1*t1 # cm^2 # area of the bottom flange\n",
+ "A2=b2*t2 # cm^2 # area of the web\n",
+ "A3=b3*t3 # cm^2 # area of the top-flange\n",
+ "\n",
+ "# first we calculate the x co-ordinate of the centroid\n",
+ "\n",
+ "x1=b3-b2+(b1*0.5) #cm # for the bottom flange\n",
+ "x2=b3-(b2*0.5) #cm # for the web\n",
+ "x3=b3*0.5 #cm # for the top flange\n",
+ "x_c=((A1*x1)+(A2*x2)+(A3*x3))/(A1+A2+A3) #cm\n",
+ "\n",
+ "# secondly we calculate the y co-ordinate of the centroid\n",
+ "\n",
+ "y1=t1*0.5 #cm # for the bottom flange\n",
+ "y2=t1+(t2*0.5) #cm # for the web\n",
+ "y3=t1+t2+(t3*0.5) #cm # for the top flange\n",
+ "y_c=((A1*y1)+(A2*y2)+(A3*y3))/(A1+A2+A3) # cm\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The centroid of the cross-sectional area of a Z-section about x-axis is \",round(x_c,2),\"cm\"\n",
+ "print\"The centroid of the cross-sectional area of a Z-section about y-axis is \",round(y_c,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The centroid of the cross-sectional area of a Z-section about x-axis is 13.56 cm\n",
+ "The centroid of the cross-sectional area of a Z-section about y-axis is 7.69 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter05.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter05.ipynb
new file mode 100755
index 00000000..efb681de
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter05.ipynb
@@ -0,0 +1,285 @@
+{
+ "metadata": {
+ "name": "chapter5.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 5: General Case Of Forces In Plane"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5-2,Page No:111"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Inilization of variables\n",
+ "\n",
+ "W=2000 #N\n",
+ "Lab=2 #m #length of the member from the vertical to the 1st load of 2000 N\n",
+ "Lac=5 #m #length of the member from the vertical to the 2nd load of 2000 N\n",
+ "Lpq=3.5 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Rq=((W*Lab)+(W*Lac))/Lpq #N #take moment abt. pt P\n",
+ "Xp=Rq #N #sum Fx=0\n",
+ "Yp=2*W #N #sum Fy=0\n",
+ "Rp=(Xp**2+Yp**2)**0.5 #N\n",
+ "\n",
+ "#Resuts\n",
+ "\n",
+ "print\"The reaction at P is \",round(Rp,1),\"N\"\n",
+ "print\"The reaction at Q is \",round(Rq),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at P is 5656.9 N\n",
+ "The reaction at Q is 4000.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5-3,Page No:112"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "#Initilization of vaiables\n",
+ "\n",
+ "W=25 #N # self weight of the ladder\n",
+ "M=75 #N # weight of the man standing o the ladder\n",
+ "theta=63.43 #degree # angle which the ladder makes with the horizontal\n",
+ "alpha=30 #degree # angle made by the string with the horizontal\n",
+ "Loa=2 #m # spacing between the wall and the ladder\n",
+ "Lob=4 #m #length from the horizontal to the top of the ladder touching the wall(vertical)\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "#Using matrix to solve the simultaneous eqn's 3 & 4\n",
+ "\n",
+ "A=np.array([[2 ,-4],[1, -0.577]])\n",
+ "B=np.array([100,100])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction at A i.e Ra is \",round(C[0],2),\"N\"\n",
+ "print\"The reaction at B i.e Rb is \",round(C[1],2),\"N\"\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "T=C[1]/cos(alpha*(pi/180)) #N # from (eqn 1)\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The required tension in the string is \",round(T,2),\"N\"\n",
+ "\n",
+ "#answer may vary due to decimal variance"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at A i.e Ra is 120.27 N\n",
+ "The reaction at B i.e Rb is 35.14 N\n",
+ "The required tension in the string is 40.57 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5-4,Page No:113"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "W=100 #N\n",
+ "theta=60 #degree #angle made by the ladder with the horizontal\n",
+ "alpha=30 #degree #angle made by the ladder with the vertical wall\n",
+ "Lob=4 #m # length from the horizontal to the top of the ladder touching the wall(vertical)\n",
+ "Lcd=2 #m # length from the horizontal to the centre of the ladder where the man stands\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "Lab=Lob*(1/cos(alpha*(pi/180))) #m #length of the ladder\n",
+ "Lad=Lcd*tan(alpha*(pi/180)) #m\n",
+ "Rb=(W*Lad)/Lab #N #take moment at A\n",
+ "Xa=Rb*sin(theta*(pi/180)) #N # From eq'n 1\n",
+ "Ya=W+Rb*cos(theta*(pi/180)) #N #From eq'n 2\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The reaction at B i.e Rb is \",round(Rb),\"N\"\n",
+ "print\"The horizontal reaction at A i.e Xa is \",round(Xa,2),\"N\"\n",
+ "print\"The vertical reaction at A i.e Ya is \",round(Ya,1),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at B i.e Rb is 25.0 N\n",
+ "The horizontal reaction at A i.e Xa is 21.65 N\n",
+ "The vertical reaction at A i.e Ya is 112.5 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5-5,Page No:114"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "W=100 #N #self weight of the man\n",
+ "alpha=30 #degree # angle made by the ladder with the wall\n",
+ "Lob=4 #m # length from the horizontal to the top of the ladder touching the wall(vertical)\n",
+ "Lcd=2 #m\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "# using the equiblirium equations\n",
+ "\n",
+ "Ya=W #N # From eq'n 2\n",
+ "Lad=Lcd*tan(alpha*(pi/180)) #m #Lad is the distance fom pt A to the point where the line from the cg intersects the horizontal\n",
+ "Rb=(W*Lad)/Lob #N # Taking sum of moment abt A\n",
+ "Xa=Rb #N # From eq'n 1\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The horizontal reaction at A i.e Xa is \",round(Xa,2),\"N\"\n",
+ "print\"The vertical reaction at A i.e Ya is \",round(Ya),\"N\"\n",
+ "print\"The reaction at B i.e Rb is \",round(Rb,2),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The horizontal reaction at A i.e Xa is 28.87 N\n",
+ "The vertical reaction at A i.e Ya is 100.0 N\n",
+ "The reaction at B i.e Rb is 28.87 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5-6,Page No:115"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "d=0.09 #m #diametre of the right circular cylinder\n",
+ "h=0.12 #m #height of the cyinder\n",
+ "W=10 #N # self weight of the bar\n",
+ "l=0.24 #m #length of the bar\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "theta=arctan(h/d)*(180/pi) # angle which the bar makes with the horizontal\n",
+ "Lad=(d**2+h**2)**0.5 #m # Lad is the length of the bar from point A to point B\n",
+ "Rd=(W*h*cos(theta*(pi/180)))/Lad #N # Taking moment at A\n",
+ "Xa=Rd*sin(theta*(pi/180)) #N # sum Fx=0.... From eq'n 1\n",
+ "Ya=W-(Rd*cos(theta*(pi/180))) #N # sum Fy=0..... From eq'n 2\n",
+ "Ra=(Xa**2+Ya**2)**0.5 #resultant of Xa & Ya\n",
+ "\n",
+ "#Results\n",
+ "\n",
+ "print\"The horizontal reaction at A i.e Xa is \",round(Xa,2),\"N\"\n",
+ "print\"The vertical reaction at A i.e Ya is \",round(Ya,2),\"N\"\n",
+ "print\"Therefore the reaction at A i.e Ra is \",round(Ra,2),\"N\"\n",
+ "print\"The reaction at D i.e Rd is \",round(Rd,2),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The horizontal reaction at A i.e Xa is 3.84 N\n",
+ "The vertical reaction at A i.e Ya is 7.12 N\n",
+ "Therefore the reaction at A i.e Ra is 8.09 N\n",
+ "The reaction at D i.e Rd is 4.8 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter06.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter06.ipynb
new file mode 100755
index 00000000..a0feab39
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter06.ipynb
@@ -0,0 +1,279 @@
+{
+ "metadata": {
+ "name": "chapter6.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 6: Friction"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6-1,Page No:126"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m=5 #kg # mass of the bock\n",
+ "g=9.81 # m/s^2 # acceleration due to gravity\n",
+ "theta=15 # degree # angle made by the forces (P1 & P2) with the horizontal of the block\n",
+ "mu=0.4 #coefficient of static friction\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "# Case 1. Where P1 is the force required to just pull the bock\n",
+ "\n",
+ "# Solving eqn's 1 & 2 using matrix\n",
+ "A=np.array([[cos(theta*(pi/180)), -mu],[sin(theta*(pi/180)), 1]])\n",
+ "B=np.array([0,(m*g)])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "# Calculations \n",
+ "\n",
+ "# Case 2. Where P2 is the force required to push the block\n",
+ "\n",
+ "# Solving eqn's 1 & 2 using matrix\n",
+ "P=np.array([[-cos(theta*(pi/180)), mu],[-sin(theta*(pi/180)) ,1]])\n",
+ "Q=np.array([0,(m*g)])\n",
+ "R=np.linalg.solve(P,Q)\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The required pull force P1 is \",round(C[0],2),\"N\" #answer in textbook is wrong\n",
+ "print\"The required push force P2 is \",round(R[0]),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The required pull force P1 is 18.35 N\n",
+ "The required push force P2 is 23.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6-4,Page No:129"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W1=50 # N # weight of the first block\n",
+ "W2=50 # N # weight of the second block\n",
+ "mu_1=0.3 # coefficient of friction between the inclined plane and W1\n",
+ "mu_2=0.2 # coefficient of friction between the inclined plane and W2\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# On adding eq'ns 1&3 and substuting the values of N1 & N2 from eqn's 2&4 in this and on solving for alpha we get,\n",
+ "\n",
+ "alpha=(arctan(((mu_1*W1)+(mu_2*W2))/(W1+W2)))*(180/pi) # degrees\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The inclination of the plane is \",round(alpha),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The inclination of the plane is 14.0 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6-7,Page No:133"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "M=2000 # kg # mass of the car\n",
+ "mu=0.3 # coefficient of static friction between the tyre and the road\n",
+ "g=9.81 # m/s^2 # acc. due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Divide eqn 1 by eqn 2, We get\n",
+ "theta=arctan(mu)*(180/pi) #degree\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The angle of inclination is \",round(theta,1),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The angle of inclination is 16.7 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6-9,Page No:135"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "# Initilization of variabes\n",
+ "\n",
+ "Wa=1000 #N # weight of block A\n",
+ "Wb=500 #N # weight of block B\n",
+ "theta=15 # degree # angle of the wedge\n",
+ "mu=0.2 # coefficient of friction between the surfaces in contact\n",
+ "phi=7.5 # degrees # used in case 2\n",
+ "\n",
+ "# Caculations \n",
+ "\n",
+ "# CASE (a)\n",
+ "\n",
+ "# consider the equilibrium of upper block A\n",
+ "# rearranging eq'ns 1 &2 and solving them using matrix for N1 & N2\n",
+ "A=np.array([[1 ,-0.4522],[-0.2 ,0.914]])\n",
+ "B=np.array([0,1000])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "# Now consider the equilibrium of lower block B\n",
+ "# From eq'n 4\n",
+ "N3=Wb+(C[1]*cos(theta*(pi/180)))-(mu*C[1]*sin(theta*(pi/180))) #N\n",
+ "# Now from eq'n 3\n",
+ "P=(mu*N3)+(mu*C[1]*cos(theta*(pi/180)))+(C[1]*sin(theta*(pi/180))) # N\n",
+ "\n",
+ "# CASE (b)\n",
+ "\n",
+ "# The eq'n for required coefficient for the wedge to be self locking is,\n",
+ "mu_req=(theta*pi)/360 # multiplying with (pi/180) to convert it into radians\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The minimum horizontal force (P) which should be applied to raise the block is \",round(P),\"N\"\n",
+ "print\"The required coefficient for the wedge to be self locking is \",round(mu_req,4) #answer in textbook is wrong\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The minimum horizontal force (P) which should be applied to raise the block is 871.0 N\n",
+ "The required coefficient for the wedge to be self locking is 0.1309\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6-13.Page No:141"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "P=100 #N # force acting at 0.2 m from A\n",
+ "Q=200 #N # force acting at any distance x from B\n",
+ "l=1 #m # length of the bar\n",
+ "theta=45 #degree #angle made by the normal reaction at A&B with horizontal\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "#solving eqn's 1 & 2 using matrix for Ra & Rb,\n",
+ "A=np.array([[1, -1],[sin(theta*(pi/180)) ,sin(theta*(pi/180))]])\n",
+ "B=np.array([0,(P+Q)])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "# Now take moment about B\n",
+ "x=((C[0]*l*sin(theta*(pi/180)))-(P*(l-0.2)))/200 #m # here 0.2 is the distance where 100 N load lies from A\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The minimum value of x at which the load Q=200 N may be applied before slipping impends is \",round(x,2),\"m\" \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The minimum value of x at which the load Q=200 N may be applied before slipping impends is 0.35 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter07.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter07.ipynb
new file mode 100755
index 00000000..aae60e42
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter07.ipynb
@@ -0,0 +1,551 @@
+{
+ "metadata": {
+ "name": "chapter7.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 7: Application Of Friction"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7-1,Page No:152"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "d1=24 # cm # diameter of larger pulley\n",
+ "d2=12 # cm # diameter of smaller pulley\n",
+ "d=30 #cm # seperation betweem 1st & the 2nd pulley\n",
+ "pie=3.14\n",
+ "\n",
+ "# Calcuations\n",
+ "\n",
+ "r1=d1*0.5 #cm # radius of 1st pulley #1/2=0.5\n",
+ "r2=d2*0.5 #cm # radius of 2nd pulley #1/2=0.5\n",
+ "theta=(arcsin((r1-r2)/d))*(180/pi) #degrees \n",
+ "\n",
+ "# Angle of lap\n",
+ "beta_1=180+(2*theta) #degree # for larger pulley\n",
+ "beta_2=180-(2*theta) #degree # for smaller pulley\n",
+ "L=pie*(r1+r2)+(2*d)+((r1-r2)**(2/d)) #cm # Length of the belt\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The angle of lap for the larger pulley is \",round(beta_1,2),\"degree\"\n",
+ "print\"he angle of lap for the smaller pulley is \",round(beta_2,2),\"degree\"\n",
+ "print\"he length of pulley required is \",round(L,2),\"cm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The angle of lap for the larger pulley is 203.07 degree\n",
+ "he angle of lap for the smaller pulley is 156.93 degree\n",
+ "he length of pulley required is 117.52 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7-2,Page No:153"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "d1=0.6 #m # diameter of larger pulley\n",
+ "d2=0.3 #m diameter of smaller pulley\n",
+ "d=3.5 #m #separation between the pulleys\n",
+ "pie=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "r1=d1*0.5 #m # radius of larger pulley #1/2=0.5\n",
+ "r2=d2*0.5 #m # radius of smaller pulley #1/2=0.5\n",
+ "theta=arcsin((r1+r2)/d)*(180/pi) #degree\n",
+ "\n",
+ "# Angle of lap for both the pulleys is same, i.e\n",
+ "\n",
+ "beta=180+(2*theta) # degree\n",
+ "L=((pie*(r1+r2))+(2*d)+(((r1+r2)**2)/d)) #cm # Length of the belt\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The angle of lap for the pulley is \",round(beta,1),\"degree\"\n",
+ "print\"The length of pulley required is \",round(L,3),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The angle of lap for the pulley is 194.8 degree\n",
+ "The length of pulley required is 8.471 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7-4,Page No:161"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W1=1000 #N\n",
+ "mu=0.25 #coefficient of friction\n",
+ "pie=3.14\n",
+ "beta=pie\n",
+ "T1=W1 # Tension in the 1st belt carrying W1\n",
+ "e=2.718 #constant\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "T2=T1/(e**(mu*beta)) #N # Tension in the 2nd belt\n",
+ "W2=T2 #N\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The minimum weight W2 to keep W1 in equilibrium is \",round(W2),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The minimum weight W2 to keep W1 in equilibrium is 456.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7-5,Page No:162"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "mu=0.5 # coefficient of friction between the belt and the wheel\n",
+ "W=100 #N\n",
+ "theta=45 #degree\n",
+ "e=2.718\n",
+ "Lac=0.75 #m # ength of the lever\n",
+ "Lab=0.25 #m\n",
+ "Lbc=0.50 #m\n",
+ "r=0.25 #m\n",
+ "pie=3.14 # constant\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "beta=((180+theta)*pie)/180 # radian # angle of lap\n",
+ "\n",
+ "# from eq'n 2\n",
+ "T1=(W*Lbc)/Lab #N \n",
+ "T2=T1/(e**(mu*beta)) #N # from eq'n 1\n",
+ "\n",
+ "# consider the F.B.D of the pulley and take moment about its center, we get Braking Moment (M)\n",
+ "M=r*(T1-T2) #N-m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The braking moment (M) exerted by the vertical weight W is \",round(M,2),\"N-m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The braking moment (M) exerted by the vertical weight W is 42.97 N-m\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7-6,Page No:163"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initiization of variables\n",
+ "\n",
+ "W= 1000 #N # or 1kN\n",
+ "mu=0.3 # coefficient of friction between the rope and the cylinder\n",
+ "e=2.718 # constant\n",
+ "pie=3.14 # constant\n",
+ "alpha=90 # degree # since 2*alpha=180 egree\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "beta=2*pie*3 # radian # for 3 turn of the rope\n",
+ "\n",
+ "# Here T1 is the larger tension in that section of the rope which is about to slip\n",
+ "T1=W #N\n",
+ "F=W/e**(mu*(1/(sin(alpha*(pi/180))))*(beta)) #N # Here T2=F\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The force required to suport the weight of 1000 N i.e 1kN is \",round(F,1),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force required to suport the weight of 1000 N i.e 1kN is 3.5 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7-7,Page No:163"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "Pw=50 #kW\n",
+ "T_max=1500 #N\n",
+ "v=10 # m/s # velocity of rope\n",
+ "w=4 # N/m # weight of rope\n",
+ "mu=0.2 # coefficient of friction \n",
+ "g=9.81 # m/s^2 # acceleration due to gravity\n",
+ "e=2.718 # constant\n",
+ "pie=3.14 # constant\n",
+ "alpha=30 # degree # since 2*alpha=60 \n",
+ "\n",
+ "# Calcuations\n",
+ "\n",
+ "beta=pie # radian # angle of lap\n",
+ "T_e=(w*v**2)/g # N # where T_e is the centrifugal tension\n",
+ "T1=(T_max)-(T_e) #N\n",
+ "T2=T1/(e**(mu*(1/sin(alpha*(pi/180)))*(beta))) #N # From eq'n T1/T2=e^(mu*cosec(alpha)*beta)\n",
+ "P=(T1-T2)*v*(10**-3) #kW # power transmitted by a single rope\n",
+ "N=Pw/P # Number of ropes required\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The number of ropes required to transmit 50 kW is \",round(N),\"Nos\"\n",
+ "# approx no of ropes is 5\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The number of ropes required to transmit 50 kW is 5.0 Nos\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7-8,Page No:164"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "d1=0.45 #m # diameter of larger pulley\n",
+ "d2=0.20 #m # diameter of smaller pulley\n",
+ "d=1.95 #m # separation between the pulley's\n",
+ "T_max=1000 #N # or 1kN which is the maximum permissible tension\n",
+ "mu=0.20 # coefficient of friction\n",
+ "N=100 # r.p.m # speed of larger pulley\n",
+ "e=2.718 # constant\n",
+ "pie=3.14 # constant\n",
+ "T_e=0 #N # as the data for calculating T_e is not given we assume T_e=0\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "r1=d1*0.5 #m # radius of larger pulley #1/2=0.5\n",
+ "r2=d2*0.5 #m # radius of smaller pulley #1/2=0.5\n",
+ "theta=arcsin((r1+r2)/d)*(180/pi) # degree\n",
+ "\n",
+ "# for cross drive the angle of lap for both the pulleys is same\n",
+ "beta=(180+(2*(theta)))*(pi/180) #radian\n",
+ "T1=T_max-T_e #N\n",
+ "T2=T1/(e**(mu*(beta))) #N # from formulae, T1/T2=e^(mu*beta)\n",
+ "v=((2*pie)*N*r1)/60 # m/s # where v=velocity of belt which is given as, v=wr=2*pie*N*r/60\n",
+ "P=(T1-T2)*v*(10**-3) #kW # Power\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The power transmitted by the cross belt drive is \",round(P,1),\"kW\"\n",
+ "# the approx answer is 1.3 kW The answer given in the book (i.e 1.81kW) is wrong.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The power transmitted by the cross belt drive is 1.2 kW\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7-9,Page No:165"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variabes\n",
+ "\n",
+ "b=0.1 #m #width of the belt\n",
+ "t=0.008 #m #thickness of the belt\n",
+ "v=26.67 # m/s # belt speed\n",
+ "pie=3.14 # constant\n",
+ "beta=165 # radian # angle of lap for the smaller belt\n",
+ "mu=0.3 # coefficient of friction\n",
+ "sigma_max=2 # MN/m^2 # maximum permissible stress in the belt\n",
+ "m=0.9 # kg/m # mass of the belt\n",
+ "g=9.81 # m/s^2\n",
+ "e=2.718 # constant\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "A=b*t # m^2 # cross-sectional area of the belt\n",
+ "T_e=m*v**2 # N # where T_e is the Centrifugal tension\n",
+ "T_max=(sigma_max)*(A)*(10**6) # N # maximum tension in the belt\n",
+ "T1=(T_max)-(T_e) # N \n",
+ "T2=T1/(e**((mu*pie*beta)/180)) #N # from formulae T1/T2=e^(mu*beta)\n",
+ "P=(T1-T2)*v*(10**-3) #kW # Power transmitted\n",
+ "T_o=(T1+T2)/2 # N # Initial tension\n",
+ "\n",
+ "# Now calculations to transmit maximum power\n",
+ "\n",
+ "Te=T_max/3 # N # max tension\n",
+ "u=(T_max/(3*m))**0.5 # m/s # belt speed for max power\n",
+ "T_1=T_max-Te # N # T1 for case 2\n",
+ "T_2=T_1/(e**((mu*pie*beta)/180)) # N \n",
+ "P_max=(T_1-T_2)*u*(10**-3) # kW # Max power transmitted\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The initial power transmitted is \",round(P,2),\"kW\"\n",
+ "print\"The initial tension in the belt is \",round(T_o,1),\"N\"\n",
+ "print\"The maximum power that can be transmitted is \",round(P_max,2),\"kW\" # the answer is approx 15.017kW wheres the answer 14.99kW given in book is wrong \n",
+ "print\"The maximum power is transmitted at a belt speed of \",round(u,2),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The initial power transmitted is 14.8 kW\n",
+ "The initial tension in the belt is 682.3 N\n",
+ "The maximum power that can be transmitted is 15.02 kW\n",
+ "The maximum power is transmitted at a belt speed of 24.34 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 54
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7-10,Page No:169"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "p=0.0125 # m # pitch of screw\n",
+ "d=0.1 #m # diameter of the screw\n",
+ "r=0.05 #m # radius of the screw\n",
+ "l=0.5 #m # length of the lever\n",
+ "W=50 #kN # load on the lever\n",
+ "mu=0.20 # coefficient of friction \n",
+ "pie=3.14 #constant\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "theta=arctan(p/(2*pie*r))*(180/pi) #degree # theta is the Helix angle\n",
+ "phi=arctan(mu)*(180/pi) # degree # phi is the angle of friction\n",
+ "\n",
+ "# Taking the leverage due to handle into account,force F1 required is,\n",
+ "F1=(W*(tan(theta*(pi/180)+phi*(pi/180))))*(r/l) #kN\n",
+ "\n",
+ "# To lower the load\n",
+ "F2=(W*(tan(theta*(pi/180)-phi*(pi/180))))*(r/l) #kN # -ve sign of F2 indicates force required is in opposite sense\n",
+ "E=(tan(theta*(pi/180))/tan(theta*(pi/180)+phi*(pi/180)))*100 # % # here E=eata=efficiency in %\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The force required (i.e F1) to raise the weight is \",round(F1,3),\"kN\" #due to decimal variance answer varies by 0.004kN \n",
+ "print\"The force required (i.e F2) to lower the weight is \",round(F2,3),\"kN\"\n",
+ "print\"The efficiency of the jack is \",round(E,2),\"percent\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force required (i.e F1) to raise the weight is 1.209 kN\n",
+ "The force required (i.e F2) to lower the weight is -0.795 kN\n",
+ "The efficiency of the jack is 16.47 percent\n"
+ ]
+ }
+ ],
+ "prompt_number": 58
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7-11,Page No:172"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variabes\n",
+ "\n",
+ "P=20000 #N #Weight of the shaft\n",
+ "D=0.30 #m #diameter of the shaft\n",
+ "R=0.15 #m #radius of the shaft\n",
+ "mu=0.12 # coefficient of friction\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Friction torque T is given by formulae,\n",
+ "T=(0.666)*P*R*mu #N-m #2/3=0.666\n",
+ "M=T #N-m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The frictional torque is \",round(M),\"N-m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The frictional torque is 240.0 N-m\n"
+ ]
+ }
+ ],
+ "prompt_number": 61
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter08.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter08.ipynb
new file mode 100755
index 00000000..666bcf43
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter08.ipynb
@@ -0,0 +1,311 @@
+{
+ "metadata": {
+ "name": "chapter8.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 8: Simple Lifting Machines"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.8-1,Page No:179"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "VR=6 # Velocity ratio\n",
+ "P=20 #N # Effort\n",
+ "W=100 #N # Load lifted\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "#(a)\n",
+ "\n",
+ "P_actual=P #N\n",
+ "W_actual=W #N\n",
+ "MA=W/P # where, MA= Mechanical advantage\n",
+ "E=(0.833)*100 #% # Where MA/VR=0.833 and E= efficiency\n",
+ "\n",
+ "#(b)\n",
+ "# Now ideal effort required is,\n",
+ "P_ideal=W*VR**-1 #N\n",
+ "# Effort loss in friction is, (Le)\n",
+ "Le=P_actual-P_ideal #N # Effort loss in friction\n",
+ "\n",
+ "#(c)\n",
+ "# Ideal load lifted is,(W_ideal)\n",
+ "W_ideal=P*VR #N \n",
+ "# Frictional load/resistance,\n",
+ "F=W_ideal-W_actual # N\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The efficiency of the machine is \",round(E,3),\"percent\"\n",
+ "print\"(b) The effort loss in friction of the machine is \",round(Le,2),\"N\"\n",
+ "print\"(c) The Frictional load of the machine is \",round(F),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The efficiency of the machine is 83.3 percent\n",
+ "(b) The effort loss in friction of the machine is 3.33 N\n",
+ "(c) The Frictional load of the machine is 20.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.8-2, Page No:180"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import matplotlib.pyplot as plt\n",
+ "%matplotlib inline\n",
+ "\n",
+ "# Initilization of variables\n",
+ "V_r=20 # Velocity ratio\n",
+ "# Values from the table # Variables have been assumed\n",
+ "# Values of W in N\n",
+ "W=[30 ,40 ,50 ,60 ,70 ,80 ,90 ,100]\n",
+ "# P in N\n",
+ "P=[7 ,8.5 ,10 ,11.5 ,13.5 ,14.5 ,16 ,17.5]\n",
+ "M_A=[W[0]*P[0]**-1 ,W[1]*P[1]**-1 ,W[2]*P[2]**-1 ,W[3]*P[3]**-1 ,W[4]*P[4]**-1 ,W[5]*P[5]**-1 ,W[6]*P[6]**-1 ,W[7]*P[7]**-1]\n",
+ "# Efficiency (n)\n",
+ "n=[(V_r**-1)*M_A[0] ,(V_r**-1)*M_A[1] ,(V_r**-1)*M_A[2] ,(V_r**-1)*M_A[3], (V_r**-1)*M_A[4] ,(V_r**-1)*M_A[5] ,(V_r**-1)*M_A[6] ,(V_r**-1)*M_A[7]]*100 # %\n",
+ "# Calculations\n",
+ "# Part (a)- Realtionship between W & P\n",
+ "# Here part a cannot be solved as it has variables which cannot be defined in Scilab. Ref.textbook for the solution\n",
+ "# Part (b)- Graph between W & efficiency n(eta)\n",
+ "x=[0 ,W[0] ,W[1] ,W[2] ,W[3] ,W[4] ,W[5] ,W[6] ,W[7]] # values for W # N\n",
+ "y=[0 ,n[0] ,n[1] ,n[2] ,n[3] ,n[4] ,n[5] ,n[6] ,n[7]] # values for efficiency n (eta) # %\n",
+ "d=transpose(x)\n",
+ "plt.plot(d,y)\n",
+ "plt.show()\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The graph is the solution\"\n",
+ "# The value of m is found by drawing straight line on the graph and by taking its slope. Ref textbook for the solution\n",
+ "# The curve of the graph may differ from textbook because of the graphical calculation.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEACAYAAAC08h1NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X9UVHXeB/D3KFO6ZKmEv2ZwUUA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YMGID7778fW7duxdSpUzW3HwB5pGY0GpGUlAQAmDx5Mvbt24c+ffpobl98+eWX\nGDVqFEJCQhAUFIRJkyahuLhYk/visqv9m2jpIlqDweB0W8qC/5cXh9XW1qKgoADp6emqyvE6IQSy\nsrIQGxuLmTNnNr6enp6OFStWAABWrFjR+AshUL388suw2WwoLy/H2rVrcccdd+D999/X3H4AgD59\n+iAsLAxVk1+nAAABIUlEQVRHjhwBABQVFWHw4MGYOHGi5vZFTEwMdu/ejYsXL0IIgaKiIsTGxmpy\nX1x2tX8T6enpWLt2LWpra1FeXo6jR49i+PDhzjfm7hMSbbFp0yYxaNAgERERIV5++WWVpXjdjh07\nhE6nE/Hx8WLYsGFi2LBhYvPmzeLHH38UY8aMEVFRUSI1NVWcPXtWdaleY7FYxMSJE4UQQrP74auv\nvhKJiYkiLi5OZGRkiKqqKs3ui9zcXBEbGyuGDBkiHnzwQVFbW6uZfZGZmSn69u0r9Hq9MBqNYtmy\nZU6/+0svvSQiIiJEdHS0MJvNrW6fF3AREWmMT91zl4iIPI/BT0SkMQx+IiKNYfATEWkMg5+ISGMY\n/EREGsPgJyLSGAY/EZHG/D+gQLmVwq5uYAAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x4fe1370>"
+ ]
+ },
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The graph is the solution\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.8-3,Page No:184"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initialization of variables\n",
+ "\n",
+ "W_actual=1360 #N #Load lifted\n",
+ "P_actual=100 #N # Effort\n",
+ "n=4 # no of pulleys\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# for 1st system of pulleys having 4 movable pulleys, Velocity ratio is\n",
+ "VR=2**(n) # Velocity Ratio\n",
+ "\n",
+ "# If the machine were to be ideal(frictionless)\n",
+ "MA=VR # Here, M.A= mechanical advantage \n",
+ "\n",
+ "# For a load of 1360 N, ideal effort required is\n",
+ "P_ideal=W_actual/VR #N\n",
+ "\n",
+ "# Effort loss in friction is,\n",
+ "P_friction=P_actual-P_ideal #N\n",
+ "\n",
+ "# For a effort of 100 N, ideal load lifted is,\n",
+ "W_ideal=VR*100 #N \n",
+ "\n",
+ "# Load lost in friction is,\n",
+ "W_friction=W_ideal-W_actual # N \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The effort wasted in friction is \",round(P_friction,2),\"N\"\n",
+ "print\"(b) The load wasted in friction is \",round(W_friction,2),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The effort wasted in friction is 15.0 N\n",
+ "(b) The load wasted in friction is 240.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.8-4,Page No:185"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=1000 #N # Load to be lifted\n",
+ "n=5 # no. of pulleys\n",
+ "E=75 #% # Efficiency\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Velocity Ratio is given as,\n",
+ "VR=n \n",
+ "\n",
+ "# Mechanical Advantage (MA) is,\n",
+ "MA=(E*0.01)*VR # from formulae, Efficiency=E=MA/VR\n",
+ "P=W/MA #N # Effort required\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The effort required to lift the load of 1000 N is \",round(P,2),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The effort required to lift the load of 1000 N is 266.67 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.8-5,Page No:191 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=2000 #N # Load to be raised\n",
+ "l=0.70 #m # length of the handle\n",
+ "d=0.05 #m # diameter of the screw\n",
+ "p=0.01 #m # pitch of the screw\n",
+ "mu=0.15 # coefficient of friction at the screw thread\n",
+ "pie=3.14 #constant\n",
+ "E=1 # efficiency\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "phi=arctan(mu)*(180/pi) #degree\n",
+ "theta=arctan(p/(pie*d))*(180/pi) #degree # where theta is the Helix angle\n",
+ "\n",
+ "# Force required at the circumference of the screw is,\n",
+ "P=W*tan(theta*(pi/180)+phi*(pi/180)) # N //\n",
+ "\n",
+ "# Force required at the end of the handle is,\n",
+ "F=(P*(d*0.5))/l #N # as d/2=d*0.5\n",
+ "\n",
+ "# Force required (Ideal case)\n",
+ "VR=2*pie*l/p\n",
+ "MA=E*VR # from formulae E=M.A/V,R\n",
+ "P_ideal=W/MA #N # From formulae, M.A=W/P\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The force required at the end of the handle is \",round(F,2),\"N\"\n",
+ "print\"The force required if the screw jack is considered to be an ideal machine is \",round(P_ideal,2),\"N\" \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force required at the end of the handle is 15.41 N\n",
+ "The force required if the screw jack is considered to be an ideal machine is 4.55 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter09.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter09.ipynb
new file mode 100755
index 00000000..736fe4f5
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter09.ipynb
@@ -0,0 +1,669 @@
+{
+ "metadata": {
+ "name": "chapter9.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 9: Analysis Of Plane Trusses And Frames"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9-1,Page No:198"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W1=2000 #N # load at joint D of the truss\n",
+ "W2=4000 #N # load at joint E of the truss\n",
+ "Lac=6 #m # length of the tie\n",
+ "Lab=3 #m\n",
+ "Lbc=3 #m\n",
+ "theta=60 #degree # interior angles of the truss\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Here A is simply supported & B is roller support. Now the SUPPORT REACTIONS are given as,\n",
+ "Rc=((W1*(Lab*0.5))+(W2*(Lab+(Lbc*0.5))))/Lac #N # Taking moment at A\n",
+ "Ra=W1+W2-Rc #N # Take sum Fy=0\n",
+ "\n",
+ "# ANALYSIS OF TRUSS BY METHOD OF JOINT\n",
+ "# ASSUMPTION- we consider the,(1) Forces moving towards each other as +ve i.e TENSILE (T) & (2) Forces moving away from each other as -ve i.e COMPRESSIVE (C)\n",
+ "\n",
+ "# (1) JOINT A\n",
+ "Fad=Ra/(sin(theta*(pi/180))) #N #(C) # Using eq'n 2\n",
+ "Fab=Fad*cos(theta*(pi/180)) #N # (T) # Using eq'n 1\n",
+ "\n",
+ "# (2) JOINT C\n",
+ "Fce=Rc/(sin(theta*(pi/180))) #N # (C) # Using eq'n 4\n",
+ "Fcb=Fce*cos(theta*(pi/180)) #N # (T) # Using eq'n 3\n",
+ "\n",
+ "# (3) JOINT D\n",
+ "Fdb=((Fad*sin(theta*(pi/180)))-(W1))/sin(theta*(pi/180)) #N # (T) # Using eq'n 6\n",
+ "Fde=(Fdb*cos(theta*(pi/180)))+(Fad*cos(theta*(pi/180))) #N # (C) # Using eq'n 5\n",
+ "\n",
+ "# (4) JOINT E\n",
+ "Feb=((Fce*cos(theta*(pi/180)))-(Fde))/cos(theta*(pi/180)) #N # (C) # Using eq'n 7\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The Axial Force in member AD (Fad) is \",round(Fad),\"N\"\n",
+ "print\"The Axial Force in member AB (Fab) is \",round(Fab),\"N\"\n",
+ "print\"The Axial Force in member CE (Fce) is \",round(Fce),\"N\"\n",
+ "print\"The Axial Force in member CB (Fcb) is \",round(Fcb,1),\"N\"\n",
+ "print\"The Axial Force in member DB (Fdb) is \",round(Fdb),\"N\"\n",
+ "print\"The Axial Force in member DE (Fde)is \",round(Fde),\"N\"\n",
+ "print\"The Axial Force in member EB (Feb) is \",round(Feb),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Axial Force in member AD (Fad) is 2887.0 N\n",
+ "The Axial Force in member AB (Fab) is 1443.0 N\n",
+ "The Axial Force in member CE (Fce) is 4041.0 N\n",
+ "The Axial Force in member CB (Fcb) is 2020.7 N\n",
+ "The Axial Force in member DB (Fdb) is 577.0 N\n",
+ "The Axial Force in member DE (Fde)is 1732.0 N\n",
+ "The Axial Force in member EB (Feb) is 577.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9-2,Page No:201"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W1=2000 #N (or 2 kN)# load at joint D of the truss\n",
+ "W2=4000 #N (or 4 kN)# load at joint E of the truss\n",
+ "Lac=6 #m # length of the tie\n",
+ "Lab=3 #m\n",
+ "Lbc=3 #m\n",
+ "theta=60 #degree # interior angles of the truss\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Here A is simply supported & B is roller support. Now the SUPPORT REACTIONS are given as,\n",
+ "Rc=((W1*(Lab*0.5))+(W2*(Lab+(Lbc*0.5))))/Lac #N # Taking moment at A\n",
+ "Ra=W1+W2-Rc #N # Take sum Fy=0\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Calculating the axial forces in the respective members by METHOD OF SECTION\n",
+ "# A section is drawn passing through member DE such that it cuts the respective member. Now consider the equilibrium of the left hand portion of the truss. The three unknown forces are Fde, Fdb, & Fab\n",
+ "# Take moment about B\n",
+ "Fde=((3*Ra)-(W1*Lab*sin(30*(pi/180))))/(3*cos(30*(pi/180))) #N # (T)\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The axial force in the member DE (Fde)is \",round(Fde),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The axial force in the member DE (Fde)is 1732.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9-3,Page No:202"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=1 #kN # load on the truss at joint D\n",
+ "theta=45 #degree # angle made by the members AC & BD with the horizontal\n",
+ "Lab=1 #m \n",
+ "Lcd=1 #m # here Lcd= the distance from B to the line of extension drawn from 1kN force on the horizontal\n",
+ "\n",
+ "# Calculations \n",
+ "\n",
+ "# (1) JOINT E\n",
+ "# Here the joint E is in equilibrium under two forces Fec & Fed which are non-collinear. Hence they must be 0. i.e Fec=Fed=0 \n",
+ "Fec=0\n",
+ "Fed=0\n",
+ "\n",
+ "# (2) JOINT D\n",
+ "Fdb=W/sin(theta*(pi/180)) # kN # (C)# sum Fy=0\n",
+ "Fdc=Fdb*cos(theta*(pi/180)) # kN # (T) # sum Fx=0\n",
+ "\n",
+ "# (3) JOINT C\n",
+ "Fca=Fdc/sin(theta*(pi/180)) # kN # (T) # sum Fx=0\n",
+ "Fcb=-(Fca*sin(theta*(pi/180))) # kN # (C) # sum Fy=0\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The axial force in the member DC (Fdc) is \",round(Fdc),\"kN\"\n",
+ "print\"The axial force in the member DB (Fdb) is \",round(Fdb),\"kN\"\n",
+ "print\"The axial force in the member CA (Fca) is \",round(Fca,2),\"kN\" #squareroot of 2 =1.41\n",
+ "print\"The axial force in the member CB (Fcb) is \",round(Fcb),\"kN\"\n",
+ "print\"The axial force in the member EC (Fec) is \",round(Fec),\"kN\"\n",
+ "print\"The axial force in the member ED (Fed) is \",round(Fed),\"kN\"\n",
+ "# Here -ve sign indicates COMPRESSIVE force & +ve indicates TENSILE force\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The axial force in the member DC (Fdc) is 1.0 kN\n",
+ "The axial force in the member DB (Fdb) is 1.0 kN\n",
+ "The axial force in the member CA (Fca) is 1.41 kN\n",
+ "The axial force in the member CB (Fcb) is -1.0 kN\n",
+ "The axial force in the member EC (Fec) is 0.0 kN\n",
+ "The axial force in the member ED (Fed) is 0.0 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9-5,Page No:206"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W1=1000 #N # Load acting at the end pannels and the ridge\n",
+ "W2=2000 #N # Load acting at the intermidiate pannels\n",
+ "Laf=1 #m\n",
+ "Lgf=1 #m\n",
+ "Lag=2 #m\n",
+ "Lbg=1 #m\n",
+ "Lab=3 #m\n",
+ "theta=30 #degree # angle made by the principal rafter with the tie beam\n",
+ "beta=60 #degree # angle made by the slings (i.e members CF & CG) with the tie beam\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# consider the equilibrium of the entire truss as a F.B.D\n",
+ "Xa=2*(W1*sin(theta*(pi/180)))+(W2*sin(theta*(pi/180))) #N # sum Fx=0\n",
+ "Rb=((W2*Laf*cos(theta*(pi/180)))+(W1*Lag*cos(theta*(pi/180))))/Lab # N # Moment at A=0\n",
+ "Ya=2*(W1*cos(theta*(pi/180)))+(W2*cos(theta*(pi/180)))-(Rb) #N # sum Fy=0\n",
+ "\n",
+ "# Now pass a section through the truss such that it cuts the members CE,CG & FG. Now consider the equilibrium of the right hand side of the truss\n",
+ "\n",
+ "# Take moment about C\n",
+ "Ffg=(Rb*(Lbg+0.5))/(0.5*tan(beta*(pi/180))) # N # (T) # Here 0.5 is the half distance of Lgf\n",
+ "\n",
+ "# Take moment about G\n",
+ "Fce=(-Rb*Lbg)/(Lbg*sin(theta*(pi/180))) # N # (C)\n",
+ "\n",
+ "# Take moment about B\n",
+ "Fcg=0/(Lbg*sin(beta*(pi/180))) # N\n",
+ "\n",
+ "# Results \n",
+ "\n",
+ "print\"The axial force in the member FG (Ffg) is \",round(Ffg),\"N\"\n",
+ "print\"The axial force in the member CE (Fce) is \",round(Fce),\"N\"\n",
+ "print\"The axial force in the member CG (Fcg) is \",round(Fcg),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The axial force in the member FG (Ffg) is 2000.0 N\n",
+ "The axial force in the member CE (Fce) is -2309.0 N\n",
+ "The axial force in the member CG (Fcg) is 0.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9-6,Page No:208"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W1=100 #N # load acting at pt. C vertically\n",
+ "W2=50 #N # load acting at point B horizontaly\n",
+ "L=2 #m # length of each bar in the hexagonal truss\n",
+ "theta=60 #degree # internal angle of the truss\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# We calculate the values of different members of the truss\n",
+ "HG=L*sin(theta*(pi/180))\n",
+ "AF=L\n",
+ "\n",
+ "# Support A is hinged whereas support F is a roller support. Firstly we find the support reactios as follows,\n",
+ "Rf=(W2*HG)/AF #N # moment at F\n",
+ "Xa=W2 #N # sum Fx=0\n",
+ "Ya=W1-Rf #N # sum Fy=0\n",
+ "\n",
+ "# Now pass a section through the truss cutting the members CD,GD,GE & GF and consider equilibrium of right hand portion of the truss\n",
+ "Fcd=(Rf*(L/2))/(L*sin(theta*(pi/180))) # N (C) # Taking moment about G\n",
+ "\n",
+ "# Now pass a scetion pq cutting the members CB,GB & GA\n",
+ "Fga=((Rf*(L+(L/2)))-(W1*(L/2)))/(L*sin(theta*(pi/180))) # N (T) # Taking moment about B\n",
+ "\n",
+ "# take moment about G\n",
+ "Fcb=((W1*(L/2))+(Rf*(L/2)))/(L*sin(theta*(pi/180))) # N (C)\n",
+ "Fgb=(Fcb*cos(theta*(pi/180)))-(Fga*cos(theta*(pi/180))) # N (T) # sum Fx=0\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The axial force in the member CD (Fcd) is \",round(Fcd),\"N\"\n",
+ "print\"The axial force in the member GB (Fgb) is \",round(Fgb,2),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The axial force in the member CD (Fcd) is 25.0 N\n",
+ "The axial force in the member GB (Fgb) is 32.74 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9-10,Page No:214"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=24 # kN # Load acting at pt C\n",
+ "Laf=12 # m # length of the tie beam\n",
+ "l=4 # m# length of each member in the tie\n",
+ "h=3 # m # height of the slings\n",
+ "Lae=8 # m\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "s=((l**2)+(h**2))**0.5 # m # sloping length \n",
+ "\n",
+ "# From triangle BCD,\n",
+ "theta=arccos(h/s)*(180/pi)\n",
+ "\n",
+ "# SUPPORT REACTIONS\n",
+ "Rf=(W*l)/Laf # kN # take moment at A\n",
+ "Ra=W-Rf # kN # sum Fy=0\n",
+ "\n",
+ "# now pass a sectio mn through the truss and consider te equilibrium of the left hand portion \n",
+ "Fce=(Ra*l)*h**-1 # kN (T) # Take moment at B\n",
+ "\n",
+ "Fbd=((W*l)-(Ra*Lae))*h**-1 # kN (C) # take moment at E\n",
+ "\n",
+ "Fbe=(Ra-W)*(cos(theta*(pi/180)))**-1 # kN\n",
+ "\n",
+ "Fbd2=(-Ra*l)*h**-1 # kN # take moment at C\n",
+ "\n",
+ "Fce2= ((Ra*Lae)-(W*l))*h**-1# kN (T) # take moment at D\n",
+ "\n",
+ "Fcd=(W-Ra)*(cos(theta*(pi/180)))**-1 # kN (T) # sum Fy=0\n",
+ "\n",
+ "# Resuts\n",
+ "\n",
+ "print\"(1) The axial force in the bar CE (Fce) is \",round(Fce,2),\"kN\" \n",
+ "print\"(2) The axial force in the bar BD (Fbd) is \",round(Fbd,3),\"kN\"#answer in textbook is wrong \n",
+ "print\"(3) The axial force in the bar BE (Fbe) is \",round(Fbe,2),\"kN\" \n",
+ "print\"(4) The axial force in the bar CE (Fce) is \",round(Fce2,2),\"kN\"#answer in textbook is wrong \n",
+ "print\"(5) The axial force in the bar BD (Fbd) is \",round(Fbd2,3),\"kN\" \n",
+ "print\"(6) The axial force in the bar CD (Fcd) is \",round(Fcd,2),\"kN\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(1) The axial force in the bar CE (Fce) is 21.33 kN\n",
+ "(2) The axial force in the bar BD (Fbd) is -10.667 kN\n",
+ "(3) The axial force in the bar BE (Fbe) is -13.33 kN\n",
+ "(4) The axial force in the bar CE (Fce) is 10.67 kN\n",
+ "(5) The axial force in the bar BD (Fbd) is -21.333 kN\n",
+ "(6) The axial force in the bar CD (Fcd) is 13.33 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9-12,Page No:224"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W1=4 # kN # load acting at a distance of 5 m from C\n",
+ "W2=3 # kN # load acting at a distance of 7.5 m from C\n",
+ "L=30 #m # distance AB\n",
+ "L1=15 # dist AC\n",
+ "L2=15 #m #dist BC\n",
+ "l1=10 #m # distance between A and 4 kN load\n",
+ "l2=22.5 #m # distance between A and 3 kN load\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (1) Reactions\n",
+ "Yb=((W1*l1)+(W2*l2))/L # kN # Take moment at A\n",
+ "Ya=W1+W2-Yb # kN # sum Fy=0\n",
+ "\n",
+ "# Xa=Xb........(eq'n 1) // sum Fx=0\n",
+ "# (2) Dismember\n",
+ "# Member AC. Consider equilibrium of member AC\n",
+ "# Xa=Xc ... Consider thus as eq'n 2 // sum Fx=0\n",
+ "Yc=W1-Ya # kN # sum Fy=0\n",
+ "# Take moment about A\n",
+ "Xc=((W1*l1)-(Yc*L1))/L1 # kN \n",
+ "\n",
+ "# now from eq'n 1 & 2\n",
+ "Xa=Xc # kN\n",
+ "Xb=Xa # kN\n",
+ "\n",
+ "# The components of reactions at A & B are,\n",
+ "Ra=(Xa**2+Ya**2)**0.5 # kN\n",
+ "Rb=(Xb**2+Yb**2)**0.5 # kN\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The reaction at A ( Ra) is \",round(Ra,2),\"kN\"\n",
+ "print\"The reaction at B ( Rb) is \",round(Rb,2),\"kN\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at A ( Ra) is 4.0 kN\n",
+ "The reaction at B ( Rb) is 4.14 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9-13,Page No:225"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W1=2 # kN # load acting at a distance of 1m from point A\n",
+ "W2=1 # kN # load acting at a distance of 1m from point B\n",
+ "theta=30 # degree\n",
+ "L=4 # m # length of the tie beam\n",
+ "l=1 #m # length of each member in the tie\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (a) Reactions\n",
+ "Yb=((W1*l)+(W2*3*l))*L**-1 # kN # Taking moment about A\n",
+ "Ya=W1+W2-Yb # kN # sum Fy=0\n",
+ "\n",
+ "# (b) Dismember\n",
+ "# MEMBER AB\n",
+ "# Xa=Xb........ (eq'n 1) # sum Fx=0\n",
+ "# MEMBER AC\n",
+ "# Xa=Xc.........(eq'n 2) # sum Fx=0\n",
+ "Yc=W1-Ya # kN # sum Fy=0\n",
+ "# Taking moment about A\n",
+ "Xc=((W1*l)-(Yc*2*l))*(2*tan(theta*(pi/180)))**-1 # kN\n",
+ "# From eq'n 1 & 2\n",
+ "Xa=Xc # kN\n",
+ "Xb=Xa # kN\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The force in tie bar AB is \",round(Xb,3),\"kN\" #due to decimal variance answer varies by 0.44kN\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The force in tie bar AB is 1.299 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9-14,Page No:226"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=1000 # N \n",
+ "r=0.25 # radius of pulley at E \n",
+ "Lab=2 #m\n",
+ "Lad=1 # m\n",
+ "Lbd=1 # m \n",
+ "Ldc=0.75 # m\n",
+ "l1=0.5 #m # c/c distance between bar AB and point E\n",
+ "l2=1.25 # m # dist between rigid support and the weight\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (a) Reactions\n",
+ "Xa=W # N # sum Fx=0\n",
+ "Yb=((W*l1)+(W*l2))/Lab # N # Take moment about A\n",
+ "Ya=W-Yb # N # sum Fy=0\n",
+ "\n",
+ "# Dismember\n",
+ "# MEMBER ADB\n",
+ "# consider triangle BCD to find theta, where s= length of bar BC, \n",
+ "s=(Lbd**2+Ldc**2)**0.5 # m\n",
+ "theta=arccos(Lbd/s)*(180/pi) # degree\n",
+ "\n",
+ "# equilibrium eq'n of member ADB\n",
+ "Yd=(Ya*Lab)/Lad # take moment about B\n",
+ "Fbc=(Yb+Ya-Yd)/sin(theta*(pi/180)) # N # sum Fy=0\n",
+ "Xd=(Fbc*cos(theta*(pi/180)))+(Xa) # N # sum Fx=0\n",
+ "\n",
+ "# PIN D\n",
+ "Rd=(Xd**2+Yd**2)**0.5 # N # shear force on the pin\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The compressive force in bar BC (Fbc) is \",round(Fbc),\"N\"\n",
+ "print\"The shear force on the pin is \",round(Rd,1),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The compressive force in bar BC (Fbc) is 1250.0 N\n",
+ "The shear force on the pin is 2015.6 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 51
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.9-15,Page No:229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initiliztion of variables\n",
+ "\n",
+ "P=5000 # N\n",
+ "theta=45 # degree # angle made by Rd & Re with the horizontal\n",
+ "Lab=3 # m\n",
+ "Lac=3 # m\n",
+ "Lbd=2 # m\n",
+ "Lce=2 # m\n",
+ "l=1.5 # m # dist of load P from B\n",
+ "\n",
+ "# Calculations (BEAM AB )\n",
+ "# Consider the equilibrium of beams \n",
+ "# We are using matrix to solve the simultaneous eqn's \n",
+ "A=[(Lbd*sin(theta*(pi/180))) Lab;(Lce*sin(theta*(pi/180))) -Lac]\n",
+ "B=[(P*l) 0]\n",
+ "C=B*inv(A)\n",
+ "# Calculations (BEAM AC)\n",
+ "Re=C(1) # N (C) # from eq'n 1\n",
+ "Ya=(Re*Lce*sin(theta*(pi/180)))/Lac # N #from eq'n 7\n",
+ "Xa=C(1)*cos(theta*(pi/180)) # N # from eq'n 2\n",
+ "Ra=(Xa^2+Ya^2)**0.5 # N (C)\n",
+ "Yb=P-Ya-(C(1)*sin(theta*(pi/180))) # N (C) # eq'n 3\n",
+ "Yc=Ya-(Re*sin(theta*(pi/180))) # N (T)\n",
+ "\n",
+ "# Results \n",
+ "\n",
+ "print\"(1) The value of axial force (Rd) in bar 2 is \",round(C(1)),\"N\"\n",
+ "print\"(2) The value of axial force (Re) in bar 3 is \",round(Re),\"N\"\n",
+ "print\"(3) The value of axial force (Yb) in bar 1 is \",round(Yb),\"N\"\n",
+ "print\"(4) The value of axial force (Yc) in bar 4 is \",round(Yc),\"N\"\n",
+ "# here consider Yc as +ve coz the assumed direction of the force was compressive which is to be reversed\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "ename": "SyntaxError",
+ "evalue": "invalid syntax (<ipython-input-52-17797782c115>, line 16)",
+ "output_type": "pyerr",
+ "traceback": [
+ "\u001b[1;36m File \u001b[1;32m\"<ipython-input-52-17797782c115>\"\u001b[1;36m, line \u001b[1;32m16\u001b[0m\n\u001b[1;33m A=[(Lbd*sin(theta*(pi/180))) Lab;(Lce*sin(theta*(pi/180))) -Lac]\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter10.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter10.ipynb
new file mode 100755
index 00000000..3563e562
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter10.ipynb
@@ -0,0 +1,378 @@
+{
+ "metadata": {
+ "name": "chapter10.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 10: Uniform Flexible Suspension Cables"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.10-1,Page No:238"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W1=400 # N # vertical load at pt C\n",
+ "W2=600 # N # vertical load at pt D\n",
+ "W3=400 # N # vertical load at pt E\n",
+ "l=2 # m # l= Lac=Lcd=Lde=Leb\n",
+ "h=2.25 # m # distance of the cable from top\n",
+ "L=2 # m # dist of A from top\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Solving eqn's 1&2 using MATRIX for Xb & Yb\n",
+ "A=np.array([[-L ,4*l],[-h, 2*l]])\n",
+ "B=np.array([((W1*l)+(W2*2*l)+(W1*3*l)),(W1*l)])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "# Now consider the F.B.D of BE, Take moment at E\n",
+ "y_e=(C[1]*l)/C[0] # m / here y_e is the distance between E and the top\n",
+ "theta_1=arctan(y_e/l)*(180/pi) # degree # where theta_1 is the angle between BE and the horizontal\n",
+ "T_BE=C[0]/cos(theta_1*(pi/180)) # N (T_BE=T_max)\n",
+ "\n",
+ "# Now consider the F.B.D of portion BEDC\n",
+ "# Take moment at C\n",
+ "y_c=((C[1]*6)-(W3*4)-(W2*2))/(C[0]) # m\n",
+ "theta_4=arctan(((y_c)-(l))/(l))*(180/pi) # degree\n",
+ "T_CA=C[0]/cos(theta_4*(pi/180)) # N # Tension in CA\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(i) The horizontal reaction at B (Xb) is \",round(C[0]),\"N\"\n",
+ "print\"(i) The vertical reaction at B (Yb) is \",round(C[1]),\"N\"\n",
+ "print\"(ii) The sag at point E (y_e) is \",round(y_e,3),\"m\"\n",
+ "print\"(iii) The tension in portion CA (T_CA) is \",round(T_CA,1),\"N\"\n",
+ "print\"(iv) The max tension in the cable (T_max) is \",round(T_BE,1),\"N\" #answer varies due to decimal variance\n",
+ "print\"(iv) The max slope (theta_1) in the cable is \",round(theta_1,1),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) The horizontal reaction at B (Xb) is 1600.0 N\n",
+ "(i) The vertical reaction at B (Yb) is 1100.0 N\n",
+ "(ii) The sag at point E (y_e) is 1.375 m\n",
+ "(iii) The tension in portion CA (T_CA) is 1627.9 N\n",
+ "(iv) The max tension in the cable (T_max) is 1941.6 N\n",
+ "(iv) The max slope (theta_1) in the cable is 34.5 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.10-2,Page No:241"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initiization of variables\n",
+ "\n",
+ "W1=100 # N # Pt load at C\n",
+ "W2=150 # N # Pt load at D\n",
+ "W3=200 # N # Pt load at E\n",
+ "l=1 # m # l=Lac=Lcd=Lde=Leb\n",
+ "h=2 # m # dist between Rb & top\n",
+ "Xa=200 # N\n",
+ "Xb=200 # N\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# consider the F.B.D of entire cable\n",
+ "# Take moment at A\n",
+ "Yb=((W1*l)+(W2*2*l)+(W3*3*l)-(Xb*h))/(4*l) # N\n",
+ "Ya=W1+W2+W3-Yb # N # sum Fy=0\n",
+ "# Now consider the F.B.D of AC\n",
+ "\n",
+ "# Take moment at C,\n",
+ "y_c=(Ya*l)/Xa # m\n",
+ "theta_1=arctan(y_c/l)*(180/pi) # degree\n",
+ "T_AC=Xa/cos(theta_1*(pi/180)) # N # T_AC*cosd(theta_1)=horizontal component of tension in the cable\n",
+ "# here, T_AC=T_max\n",
+ "T_max=(Xa**2+Ya**2)**0.5 # N\n",
+ "T_AC=T_max\n",
+ "\n",
+ "# Now consider the F.B.D of portion ACD\n",
+ "y_d=((Ya*2*l)-(W1*l))/(Xa) # m # taking moment at D\n",
+ "theta_2=arctan(((y_d)-(y_c))/(l))*(180/pi) # degree\n",
+ "T_CD=Xa/(cos(theta_2*(pi/180))) # N \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(i) The component of support reaction at A (Ya) is \",round(Ya),\"N\"\n",
+ "print\"(i) The component of support reaction at B (Yb) is \",round(Yb),\"N\"\n",
+ "print\"(ii) The tension in portion AC (T_AC) of the cable is \",round(T_AC,1),\"N\"\n",
+ "print\"(ii) The tension in portion CD (T_CD) of the cable is \",round(T_CD,1),\"N\"\n",
+ "print\"(iii) The max tension in the cable is \",round(T_max,1),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) The component of support reaction at A (Ya) is 300.0 N\n",
+ "(i) The component of support reaction at B (Yb) is 150.0 N\n",
+ "(ii) The tension in portion AC (T_AC) of the cable is 360.6 N\n",
+ "(ii) The tension in portion CD (T_CD) of the cable is 282.8 N\n",
+ "(iii) The max tension in the cable is 360.6 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.10-3,Page No:246"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "w=75 # kg/m # mass per unit length of thw pipe\n",
+ "l=20 # m # dist between A & B\n",
+ "g=9.81 #m/s^2 # acc due to gravity\n",
+ "y=2 # m # position of C below B\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Let x_b be the distance of point C from B \n",
+ "# In eq'n x_b^2+32*x_b-320=0\n",
+ "a=1\n",
+ "b=32\n",
+ "c=-320\n",
+ "x_b=(-b+(b**2-(4*a*c))**0.5)/(2*a) # m # we get x_b by equating eqn's 1&2\n",
+ "\n",
+ "# Now tension T_0\n",
+ "T_0=((w*g*x_b**2)/(2*y))*(10**-3) #kN # from eq'n 1\n",
+ "\n",
+ "# Now the max tension occurs at point A,hence x is given as,\n",
+ "x=20-x_b # m\n",
+ "w_x=w*g*x*10**(-3) # kN \n",
+ "T_max=((T_0)**2+(w_x)**2)**0.5 # kN # Maximum Tension\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The lowest point C which is situated at a distance (x_b) from support B is \",round(x_b),\"m\"\n",
+ "print\"The maximum tension (T_max) in the cable is \",round(T_max,2),\"kN\"\n",
+ "print\"The minimum tension (T_0) in the cable is \",round(T_0,2),\"kN\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The lowest point C which is situated at a distance (x_b) from support B is 8.0 m\n",
+ "The maximum tension (T_max) in the cable is 14.71 kN\n",
+ "The minimum tension (T_0) in the cable is 11.77 kN\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.10-4,Page No:247"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m=0.5 # kg/m # mass of the cable per unit length\n",
+ "g=9.81 # m/s^2\n",
+ "x=30#/ m # length AB\n",
+ "y=0.5 # m # dist between C & the horizontal\n",
+ "x_b=15 # m # dist of horizontal from C to B\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "w=m*g # N/m # weight of the cable per unit length\n",
+ "T_0=(w*x_b**2)/(2*y) # N # From eq'n 1\n",
+ "T_B=((T_0)**2+(w*x*0.5)**2)**0.5 # N # Tension in the cable at point B\n",
+ "W=T_B # N # As pulley is frictionless the tension in the pulley on each side is same,so W=T_B\n",
+ "\n",
+ "\n",
+ "# Slope of the cable at B,\n",
+ "theta=arccos(T_0/T_B)*(180/pi) # degree\n",
+ "\n",
+ "# Now length of the cable between C & B is,\n",
+ "S_cb =x_b*(1+((2/3)*(y/x_b)*0.5)) # m\n",
+ "\n",
+ "\n",
+ "# Now total length of the cable AB is,\n",
+ "S_ab=2*S_cb # m \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(i) The magnitude of load W is \",round(W),\"N\"\n",
+ "print\"(ii) The angle of the cable with the horizontal at B is \",round(theta,1),\"degree\"\n",
+ "print\"(iii) The total length of the cable AB is \",round(S_ab),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) The magnitude of load W is 1106.0 N\n",
+ "(ii) The angle of the cable with the horizontal at B is 3.8 degree\n",
+ "(iii) The total length of the cable AB is 30.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 116
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.10-5,Page No:249"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "x=30 # m # distance between two electric poles\n",
+ "Tmax=400 # N # Max Pull or tension\n",
+ "w=3 # N/m # weight per unit length of the cable\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The cable is assumed to be parabolic in shape, its eq'n is y=w*x^2/2*T_0.....(eq'n 1). Substuting the co-ordinates of point B (l/2,h), where h is the sag in the cable.This gives, T_0=(w*(l/2)^2)/(2*h)=wl^2/8*h\n",
+ "# Now the maximum pull or tension occurs at B,\n",
+ "T_B=Tmax # N \n",
+ "# Hence T_B=Tmax=sqrt(T_0^2+(w*l/2)^2). On simplyfyingthis eq'n we get, \n",
+ "h=(x**2)**0.5/((16*(((Tmax*2)**2/(w*x)**2)))+(1))**0.5 # m \n",
+ "\n",
+ "# Results \n",
+ "\n",
+ "print\"The smallest value of the sag in the cable is \",round(h,3),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The smallest value of the sag in the cable is 0.843 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 72
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.10-6,Page No:252"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "l=200 # m # length of the cable\n",
+ "m=1000 # kg # mass of the cable\n",
+ "S=50 # m # sag in the cable\n",
+ "s=l/2 # m\n",
+ "g=9.81 # m/s^2\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "w=(m*g)/l # N/m # mass per unit length of the cable\n",
+ "# Substuting the values s=l/2 & y=c+S in eq'n 1 to get the value of c,\n",
+ "c=7500/100 # m \n",
+ "Tmax=((w*c)**2+(w*s)**2)**0.5 # N # Maximum Tension\n",
+ "# To determine the span (2*x) let us use the eq'n of catenary, y=c*cosh(x/c), where y=c+50. On simplyfying we get y/c=cosh(x/c), here let y/c=A\n",
+ "y=c+50\n",
+ "\n",
+ "A=1.666 \n",
+ "x=c*(arccosh(A))*(pi/180)# m \n",
+ "L=2*x*(180/pi) # m # where L= span\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The horizontal distance between the supports and the max Tension (L) is \",round(L),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The horizontal distance between the supports and the max Tension (L) is 165.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 114
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter11.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter11.ipynb
new file mode 100755
index 00000000..825638b6
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter11.ipynb
@@ -0,0 +1,22 @@
+{
+ "metadata": {
+ "name": "chapter11.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 11:Graphical Analysis:Coplanar Forces and Trusses"
+ ]
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter12.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter12.ipynb
new file mode 100755
index 00000000..9f1a8645
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter12.ipynb
@@ -0,0 +1,411 @@
+{
+ "metadata": {
+ "name": "chapter12.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 12: Moment Of Inertia"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.12-7,Page No:285"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "A= 50 # cm^2 # area of the shaded portion\n",
+ "J_A=22.5*10**2 # cm^4 # polar moment of inertia of the shaded portion\n",
+ "d=6 # cm\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "J_c=J_A-(A*d**2) \n",
+ "\n",
+ "# substuting the value of I_x from eq'n 2 in eq'n 1 we get,\n",
+ "I_y=J_c*0.333 # cm^4 # M.O.I about Y-axis # 1/3=0.333\n",
+ "\n",
+ "# Now from eq'n 2,\n",
+ "I_x=2*I_y # cm^4 # M.O.I about X-axis\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The centroidal moment of inertia about X-axis (I_x) is \",round(I_x),\"cm^4\"\n",
+ "print\"The centroidal moment of inertia about Y-axis (I_y) is \",round(I_y),\"cm^4\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The centroidal moment of inertia about X-axis (I_x) is 300.0 cm^4\n",
+ "The centroidal moment of inertia about Y-axis (I_y) is 150.0 cm^4\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.12-8,Page No:288"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "b=20 # cm # width of the pate\n",
+ "d=30 # cm # depth of the plate\n",
+ "r=15 # cm # radius of the circular hole\n",
+ "h=20 # cm # distance between the centre of the circle & the x-axis\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (a) Location of the centroid of the composite area\n",
+ "\n",
+ "A_1=b*d # cm^2 # area of the plate\n",
+ "y_1=d/2 # cm # y-coordinate of the centroid\n",
+ "A_2=(pi*r**2)/4 # cm^2 # area of the circle removed (negative)\n",
+ "y_2=h # cm # y-coordinate of the centroid\n",
+ "y_c=((A_1*y_1)-(A_2*y_2))/(A_1-A_2) # cm # from the bottom edge\n",
+ "\n",
+ "# (b) Moment of Inertia of the composite area about the centroidal x-axis\n",
+ "\n",
+ "# Area (A_1) M.I of area A_1 about x-axis\n",
+ "I_x1=(b*(d**3))/12 # cm^4\n",
+ "\n",
+ "# M.I of the area A_1 about the centroidal x-axis of the composite area (By parallel-axis theorem)\n",
+ "OC_1=15 # cm # from the bottom edge\n",
+ "OC_2=20 # cm\n",
+ "OC=12.9 # cm # from the bottom edge\n",
+ "d_1=OC_1-OC # cm\n",
+ "d_2=OC_2-OC # cm \n",
+ "I_X1=(I_x1)+(A_1*d_1**2) # cm^4\n",
+ "\n",
+ "# Area(A_2) M.I of area A_2 about x-axis\n",
+ "I_x2=(pi*r**4)/64 # cm^2\n",
+ "\n",
+ "#M.I of the area A_2 about the centroidal x-axis of the composite area (By parallel-axis theorem)\n",
+ "I_X2=(I_x2)+(A_2*d_2**2) # cm^4\n",
+ "\n",
+ "# COMPOSITE AREA:M.O.I of the composite area about the centroidal x-axis\n",
+ "I_x=(I_X1)-(I_X2) # cm^4\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The M.O.I of the composite area about the centroidal x-axis is \",round(I_x),\"cm^4\" \n",
+ "#due to decimal variance answer varies by 1cm^4 from textbook"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The M.O.I of the composite area about the centroidal x-axis is 36253.0 cm^4\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.12-9,Page No:289"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "b1=80 # mm # width of the flange pate\n",
+ "d1=20 # mm # depth of the flange plate\n",
+ "b2=40 # mm # width/thickness of the web\n",
+ "d2=60 # mm # depth of the web\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (a) Location of the centroid of the composite area\n",
+ "A_1=b1*d1 # mm^2 # area of the flange plate\n",
+ "y_1=d2+(d1/2) # mm # y-coordinate of the centroid\n",
+ "A_2=b2*d2 # mm^2 # area of the web\n",
+ "y_2=d2/2 # mm # y-coordinate of the centroid\n",
+ "y_c=((A_1*y_1)+(A_2*y_2))/(A_1+A_2) # mm # from the bottom edge\n",
+ "\n",
+ "# (b) Moment of Inertia of the composite area about the centroidal x-axis\n",
+ "\n",
+ "# Area (A_1) M.I of area A_1 about x-axis\n",
+ "I_x1=(b1*(d1**3))/12 # mm^4\n",
+ "# M.I of the area A_1 about the centroidal x-axis of the composite area (By parallel-axis theorem)\n",
+ "OC_1=70 # mm # from the bottom edge\n",
+ "OC_2=30 # mm # from the bottom edge\n",
+ "OC=y_c # mm # from the bottom edge\n",
+ "d_1=(d2-y_c)+(d1/2) # mm\n",
+ "d_2=y_c-OC_2 # mm \n",
+ "I_X1=(I_x1)+(A_1*d_1**2) # mm^4\n",
+ "\n",
+ "# Area(A_2) M.I of area A_2 about x-axis\n",
+ "I_x2=(b2*d2**3)/12 # mm^4\n",
+ "# M.I of the area A_2 about the centroidal x-axis of the composite area (By parallel-axis theorem)\n",
+ "I_X2=(I_x2)+(A_2*d_2**2) # mm^4\n",
+ "# COMPOSITE AREA:M.O.I of the composite area about the centroidal x-axis\n",
+ "I_x=(I_X1)+(I_X2) # mm^4\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The M.O.I of the composite area about the centroidal x-axis is \",round(I_x),\"mm^4\"\n",
+ "# NOTE: The answer given in the text book is 2.31*10^3 insted of 2.31*10^6.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The M.O.I of the composite area about the centroidal x-axis is 2309333.0 mm^4\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.12-10,Page No:291"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "b1=120 # mm # width of the flange pate of L-section\n",
+ "d1=20 # mm # depth of the flange plate\n",
+ "b2=20 # mm # width/thickness of the web\n",
+ "d2=130 # mm # depth of the web\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (a) Location of the centroid of the composite area\n",
+ "A_1=b1*d1 # mm^2 # area of the flange plate\n",
+ "A_2=b2*d2 # mm^2 # area of the web\n",
+ "y_1=d2+(d1/2) # mm # y-coordinate of the centroid\n",
+ "y_2=d2/2 # mm # y-coordinate of the centroid\n",
+ "x_1=60 # mm # x-coordinate of the centroid\n",
+ "x_2=110 # mm # x-coordinate of the centroid\n",
+ "y_c=((A_1*y_1)+(A_2*y_2))/(A_1+A_2) # mm # from the bottom edge\n",
+ "x_c=((A_1*x_1)+(A_2*x_2))/(A_1+A_2) # mm # from the bottom edge\n",
+ "\n",
+ "# (b) Moment of Inertia of the composite area about the centroidal x-axis\n",
+ "\n",
+ "# Area (A_1) M.I of area A_1 about x-axis\n",
+ "I_x1=(b1*(d1**3))/12 # mm^4\n",
+ "# M.I of the area A_1 about the centroidal x-axis of the composite area (By parallel-axis theorem)\n",
+ "OC_1=d2+(d1/2) # mm # from the bottom edge\n",
+ "OC_2=d2/2 # mm # from the bottom edge\n",
+ "OC=y_c # mm # from the bottom edge\n",
+ "d_1=(d2-y_c)+(d1/2) # mm\n",
+ "d_2=y_c-OC_2 # mm \n",
+ "I_X1=(I_x1)+(A_1*d_1**2) # mm^4\n",
+ "\n",
+ "# Area(A_2) M.I of area A_2 about x-axis\n",
+ "I_x2=(b2*d2**3)/12 # mm^4\n",
+ "\n",
+ "# M.I of the area A_2 about the centroidal x-axis of the composite area (By parallel-axis theorem)\n",
+ "I_X2=(I_x2)+(A_2*d_2**2) # mm^4\n",
+ "# COMPOSITE AREA:M.O.I of the composite area about the centroidal x-axis\n",
+ "I_x=(I_X1)+(I_X2) # mm^4\n",
+ "\n",
+ "# (c) Moment of Inertia of the composite area about the centroidal y-axis\n",
+ "\n",
+ "# Area (A_1) M.I of area A_1 about y-axis\n",
+ "I_y1=(d1*(b1**3))/12 # mm^4\n",
+ "# M.I of the area A_1 about the centroidal y-axis of the composite area (By parallel-axis theorem)\n",
+ "d_3=x_c-(b1/2) # mm # distance between c &c1 along x axis\n",
+ "I_Y1=(I_y1)+(A_1*d_3**2) # mm^4\n",
+ "\n",
+ "# Area(A_2) M.I of area A_2 about y-axis\n",
+ "I_y2=(d2*b2**3)/12 # mm^4\n",
+ "\n",
+ "# M.I of the area A_2 about the centroidal y-axis of the composite area (By parallel-axis theorem)\n",
+ "d_4=b1-x_c-(b2/2) # mm # distance between c &c2 along x axis\n",
+ "I_Y2=(I_y2)+(A_2*d_4**2) # mm^4\n",
+ "# COMPOSITE AREA:M.O.I of the composite area about the centroidal y-axis\n",
+ "I_y=(I_Y1)+(I_Y2) # mm^4\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The M.O.I of the composite area about the centroidal x-axis is \",round(I_x),\"mm^4\"\n",
+ "print\"The M.O.I of the composite area about the centroidal Y-axis is \",round(I_y),\"mm^4\"\n",
+ "# NOTE: The answer for I_x given in text book is 0.76*10^6 insted of 10.76*10^6\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The M.O.I of the composite area about the centroidal x-axis is 10761666.0 mm^4\n",
+ "The M.O.I of the composite area about the centroidal Y-axis is 6086666.0 mm^4\n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.12-14,Page No:299"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "b=1 # cm # smaller side of the L-section\n",
+ "h=4 # cm # larger side of the L-section\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (A) RECTANGLE A_1: Using the paralel axis theorem\n",
+ "Ixy=0\n",
+ "I_xy1=(Ixy)+((h*b)*(b*0.5)*(h*0.5)) # cm**4\n",
+ "\n",
+ "# (B) RECTANGLE A_2: Using the paralel axis theorem\n",
+ "I_xy2=(Ixy)+((b*(h-1))*(1+(1.5))*(b*0.5)) # cm**4\n",
+ "\n",
+ "# Product of inertia of the total area\n",
+ "I_xy=I_xy1+I_xy2 # cm**4\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The Product of inertia of the L-section is \",round(I_xy,2),\"cm^4\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Product of inertia of the L-section is 7.75 cm^4\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.12-15,Page No:300"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "I_x=1548 # cm^4 # M.O.I of the Z-section about X-axis\n",
+ "I_y=2668 # cm^4 # M.O.I of the Z-section about Y-axis\n",
+ "b=12 # cm # width of flange of the Z-section\n",
+ "d=3 # cm # depth of flange of the Z-section\n",
+ "t=2 # cm # thickness of the web of the Z-section\n",
+ "h=6 # cm # depth of the web of the Z-section\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "A_1=b*d # cm^2 # area of top flange\n",
+ "x_1=-5 # cm # distance of the centroid from X-axis for top flange\n",
+ "y_1=4.5 # cm # distance of the centroid from Y-axis for top flange\n",
+ "A_2=t*h # cm^2 # area of web\n",
+ "x_2=0 # cm # distance of the centroid from X-axis for the web\n",
+ "y_2=0 # cm # distance of the centroid from Y-axis for the web\n",
+ "A_3=b*d # cm^2 # area of bottom flange\n",
+ "x_3=5 # cm # distance of the centroid from X-axis for top flange\n",
+ "y_3=-4.5 # cm # distance of the centroid from Y-axis for top flange\n",
+ "\n",
+ "# Product of Inertia of the total area is,\n",
+ "I_xy=((A_1*x_1*y_1)+(A_3*x_3*y_3)) # cm^4\n",
+ "# The direction of the principal axes is,\n",
+ "theta_m=(arctan((2*I_xy)/(I_y-I_x))*(180/pi))/2 # degree\n",
+ "# Principa M.O.I\n",
+ "I_max=((I_x+I_y)/2)+((((I_x-I_y)/2)**2+(I_xy)**2)**0.5) # cm**4\n",
+ "I_mini=((I_x+I_y)/2)-((((I_x-I_y)/2)**2+(I_xy)**2)**0.5) # cm**4\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The principal axes of the section about O is \",round(theta_m,2),\"degree\"\n",
+ "print\"The Maximum value of principal M.O.I is \",round(I_max),\"cm^4\"\n",
+ "print\"The Minimum value of principal M.O.I is \",round(I_mini),\"cm^4\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The principal axes of the section about O is -35.47 degree\n",
+ "The Maximum value of principal M.O.I is 3822.0 cm^4\n",
+ "The Minimum value of principal M.O.I is 394.0 cm^4\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter13.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter13.ipynb
new file mode 100755
index 00000000..690eeb8a
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter13.ipynb
@@ -0,0 +1,121 @@
+{
+ "metadata": {
+ "name": "chapter13.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 13: Principle Of Virtual Work"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.13-1,Page No:312"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=1000 # N # weight to be raised\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# From the Principle of virtual work,\n",
+ "P=W/2 # N\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The value of force (i.e P) that can hold the system in equilibrium is \",round(P),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The value of force (i.e P) that can hold the system in equilibrium is 500.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 13.13-7,Page No:317"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "P=1000 # N # Force acting at the hinge of the 1st square\n",
+ "Q=1000 # N # Force acting at the hinge of the 2nd square\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Chosing the co-ordinate system with originat A, we can write,\n",
+ "theta=45 # degree\n",
+ "\n",
+ "# Forces that do work are P,Q & X_B. Applying the principle of virtual work & Simplyfying and solving for X_B,\n",
+ "X_B=((2*P)*0.166666)*(cos(theta*(pi/180))/sin(theta*(pi/180))) # N # as 1/6=0.166666\n",
+ "\n",
+ "# Now give a virtual angular displacement to the whole frame about end A such that line AB turns by an angle delta_phi.\n",
+ "\n",
+ "# The force doing work are P,Q&Y_B.Applying the principle of virtual work & Simplyfying this eq'n and solving for Y_B,\n",
+ "Y_B=((3*Q)+P)*0.166666 # N # as 1/6=0.166666\n",
+ "\n",
+ "# Simply by removing the support at A & replacing it by the reactions X_A & Y_A we can obtain,\n",
+ "X_A=X_B # N\n",
+ "Y_A=P+Q-Y_B # N\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The Horizontal component of reaction at A (X_A) is \",round(X_A,1),\"N\"\n",
+ "print\"The Vertical component of reaction at A (Y_A) is \",round(Y_A,1),\"N\"\n",
+ "print\"The Horizontal component of reaction at B (X_B) is \",round(X_B,1),\"N\"\n",
+ "print\"The Vertical component of reaction at B (Y_B) is \",round(Y_B,1),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Horizontal component of reaction at A (X_A) is 333.3 N\n",
+ "The Vertical component of reaction at A (Y_A) is 1333.3 N\n",
+ "The Horizontal component of reaction at B (X_B) is 333.3 N\n",
+ "The Vertical component of reaction at B (Y_B) is 666.7 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter14.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter14.ipynb
new file mode 100755
index 00000000..41eaaa76
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter14.ipynb
@@ -0,0 +1,1056 @@
+{
+ "metadata": {
+ "name": "chapter14.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 14: Rectilinear Motion Of A Particle"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-3,Page No:335"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "a_T=0.18 # m/s^2 # acc of trolley\n",
+ "# Calculations\n",
+ "a_B=-a_T*3**-1 # m/s^2 # from eq'n 4\n",
+ "t=4 # seconds\n",
+ "v_T=a_T*t # m/s # velocity of trolley after 4 seconds\n",
+ "v_B=-v_T*3**-1 # m/s # from eq'n 3\n",
+ "S_T=(0.5)*a_T*t**2 # m # distance moved by trolley in 4 sec\n",
+ "S_B=-S_T*3**-1 # m # from eq'n 2\n",
+ "# Results\n",
+ "\n",
+ "print\"The acceleration of block B is \",round(a_B,2),\"m/s^2\"\n",
+ "print\"The velocity of trolley & the block after 4 sec is \",round(v_T,2),\"m/s\",\"&\",round(v_B,2),\"m/s\"\n",
+ "print\"The distance moved by the trolley & the block is \",round(S_T,2),\"m\",\"&\",round(S_B,2),\"m\"\n",
+ "# The -ve sign indicates that the velocity or the distance travelled is in opposite direction.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The acceleration of block B is -0.06 m/s^2\n",
+ "The velocity of trolley & the block after 4 sec is 0.72 m/s & -0.24 m/s\n",
+ "The distance moved by the trolley & the block is 1.44 m & -0.48 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-4,Page No:338"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initiliztion of variables\n",
+ "\n",
+ "v_B=12 # cm/s # velocity of block B\n",
+ "u=0\n",
+ "s=24 # cm # distance travelled by bock B\n",
+ "t=5 # seconds\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "a_B=v_B**2/(2*s) # cm/s^2 # using eq'n v^2-u^2=28*a*s for block B. Here u=0\n",
+ "a_A=(1.5)*a_B # cm/s^2 # from eq'n 4 # Here a_A is negative which means acceleration is in opposite direction. However we consider +ve values for further calculations\n",
+ "v_A=u+(a_A*t) # m/s # using eq'n v=u+(a*t)\n",
+ "S_A=(u*t)+((0.5)*a_A*t**2) # m # using eq'n S=(u*t)+((1/2)*a*t^2)\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The acceleration of block A (a_A) is \",round(a_A,1),\"cm/s^2\"\n",
+ "print\"The acceleration of block B (a_B) is \",round(a_B),\"cm/s^2\"\n",
+ "print\"The velocity of block A (v_A) after 5 seconds is \",round(v_A,1),\"m/s\"\n",
+ "print\"The position of block A (S_A) after 5 seconds is \",round(S_A,2),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The acceleration of block A (a_A) is 4.5 cm/s^2\n",
+ "The acceleration of block B (a_B) is 3.0 cm/s^2\n",
+ "The velocity of block A (v_A) after 5 seconds is 22.5 m/s\n",
+ "The position of block A (S_A) after 5 seconds is 56.25 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-5,Page No:340"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "u=72*1000*60**-2 # km/hr # speed of the vehicle\n",
+ "s=300 # m # distance where the light is turning is red\n",
+ "t=20 # s # traffic light timed to remain red\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Now to find the acceleration we use the eq'n s=u*t+(1/2)*a*t^2\n",
+ "a=(((s)-(u*t))*2)*t**-2 # m/s^2 (Deceleration) \n",
+ "v=(u+(a*t))*(60*60*0.001) # km/hr # here we multiply with (60*60)/1000 to convert m/s to km/hr\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The required uniform acceleration of the car is \",round(a,2),\"m/s^2\"\n",
+ "print\"(b) The speed at which the motorist crosses the traffic light is \",round(v),\"km/hr\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The required uniform acceleration of the car is -0.5 m/s^2\n",
+ "(b) The speed at which the motorist crosses the traffic light is 36.0 km/hr\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-6,Page No:340"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "S=50 # m # height of the tower\n",
+ "v=25 # m/s # velocity at which the stone is thrown up from the foot of the tower\n",
+ "g=9.81 # m/s^2 # acc due to graity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The equation of time for the two stones to cross each other is given as,\n",
+ "t=S/v # seconds\n",
+ "S_1=(0.5)*g*t**2 # m # from the top\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The time (t) at which the two stones cross each other is \",round(t),\"seconds\"\n",
+ "print\"The two stones cross each other (from top) at a distance of \",round(S_1,1),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The time (t) at which the two stones cross each other is 2.0 seconds\n",
+ "The two stones cross each other (from top) at a distance of 19.6 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-7,Page No:341"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Intilization of variables\n",
+ "\n",
+ "acc=0.5 # m/s^2 # acceleration of the elevator\n",
+ "s=25 # m # distance travelled by the elevator from the top\n",
+ "u=0 # m/s\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Using eq'n the eq'n v^2-u^2=2*a*s, solving for v we get,\n",
+ "v=sqrt((2*acc*s)+(u^2)) # m/s \n",
+ "# Now solving eq'n 1 & 2 for t we get, (4.655*t^2)-(5*t)+(25)=0\n",
+ "# Find the roots of the eq'n using the eq'n,t=(-b+sqrt(b^2-(4*a*c)))/(2*a).In this eq'n the values of a,b & c are,\n",
+ "a=4.655\n",
+ "b=-5\n",
+ "c=-25\n",
+ "t=(-b+((b**2)-(4*a*c))**0.5)/(2*a) # seconds\n",
+ "\n",
+ "# Let S_1 be the distance travelled by the elevator after it travels 25 m from top when the stone hits the elevator,This disance S_1 is given as,\n",
+ "S_1=(v*t)+((1/2)*acc*t**2) # m\n",
+ "\n",
+ "# Let S be the total dist from top when the stone hits the elevator,\n",
+ "S=S_1+s # m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The time taken by the stone to hit the elevator is \",round(t,3),\"second\"\n",
+ "print\"The distance (S)travelled by the elevator at the time of impact is \",round(S,2),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The time taken by the stone to hit the elevator is 2.916 second\n",
+ "The distance (S)travelled by the elevator at the time of impact is 40.15 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-9,Page No:343"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "v=60 # km/hr # velocity of the train\n",
+ "d1=15 # km # Distance travelled by the local train from the velocity-time graph (here d1= Area OED)\n",
+ "d2=12 # km # from the velocity-time graph (here d2= Area OABB')\n",
+ "d3=3 # km # from the velocity-time graph (here d3= Area BB'C)\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "t_1=d2*v**-1 # hr # time of travel for first 12 kms\n",
+ "t_2=(2*d3)*v**-1 # hr # time of for next 3 kms\n",
+ "\n",
+ "# Total time of travel for passenger train is given by eq'n\n",
+ "t=t_1+t_2 # hr\n",
+ "\n",
+ "# Now time of travel of the local train (let it be T) is given as,\n",
+ "T=2*t # hr\n",
+ "V_max=2*d1/T # km/hr\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The maximum speed of the local train is \",round(V_max),\"km/hr\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum speed of the local train is 50.0 km/hr\n"
+ ]
+ }
+ ],
+ "prompt_number": 65
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-10,Page No:345"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "a=10 # m/s^2 # acceleration of the particle\n",
+ "S_5th=50 # m # distance travelled by the particle during the 5th second\n",
+ "t=5 # seconds\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The distance travelled by the particle in time t is given by, S=(u*t)+(1/2)*a*t^2.....(consider this as eq'n 1)\n",
+ "# Here, The distance travelled by the particle in the 5th second=The distance travelled in 5 seconds - The distance travelled in 4 seconds..... (consider eq'n 2)\n",
+ "# Using eq'n 1: S_(0-5)=(5*u)+(1/2)*10*5^2 = 5*u+125.....(consider eq'n 3)\n",
+ "# again, S_(0-4)=(4*u)+(1/2)*10*4^2 = 4*u+80....(consider eq'n 4)\n",
+ "\n",
+ "# Now,put eq'n 3&4 in eq'n 2 and solve for u. We get, 50=[(5*u+125)-(4*u+80)] i.e 50=u+45\n",
+ "u=(S_5th)-45 # m/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The initial velocity of the particle is \",round(u),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The initial velocity of the particle is 5.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 66
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-11,Page No:345"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "# Conditions given are\n",
+ "t=1 # s\n",
+ "x=14.75 # m\n",
+ "v=6.33 # m/s\n",
+ "# Calculations\n",
+ "# We use expression 1,2 & 3 to find distance,velocity & acceleration of the particle after 2 sec\n",
+ "T=2 # sec\n",
+ "X=(T**4*12**-1)-(T**3*3**-1)+(T**2)+(5*T)+9 # m # eq'n 3\n",
+ "V=(T**3*3**-1)-(T**2)+(2*T)+5 # m/s \n",
+ "a=(T**2)-(2*T)+2 # m/s^2\n",
+ "# Results\n",
+ "\n",
+ "print\"The distance travelled by the particle is \",round(X,2),\"m\"\n",
+ "print\"The velocity of the particle is \",round(V,2),\"m/s\"\n",
+ "print\"The acceleration of the particle is \",round(a),\"m/s^2\"\n",
+ "# The answer may vary due to decimal point error\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The distance travelled by the particle is 21.67 m\n",
+ "The velocity of the particle is 7.67 m/s\n",
+ "The acceleration of the particle is 2.0 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-12,Page No:346"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Calculations\n",
+ "# From eq'n 2 it is clear that velocity of the particle becomes zero at t=3 sec\n",
+ "t=3 # sec .. from eq'n 2\n",
+ "# Position of particle at t=3 sec\n",
+ "x=(t**3)-(3*t**2)-(9*t)+12 # m # from eq'n 1\n",
+ "# Acc of particle at t=3 sec\n",
+ "a=6*(t-1) # m/s^2 # from eq'n 3\n",
+ "# Results\n",
+ "\n",
+ "print\"The time at which the velocity of the particle becomes zero is \",round(t),\"sec\"\n",
+ "print\"The position of the partice at t=3 sec is \",round(x),\"m\"\n",
+ "print\"The acceleration of the particle is \",round(a),\"m/s^2\"\n",
+ "# Ref textbook for the graphs\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The time at which the velocity of the particle becomes zero is 3.0 sec\n",
+ "The position of the partice at t=3 sec is -15.0 m\n",
+ "The acceleration of the particle is 12.0 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-15,Page No:354"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "F=250 # N # Force acting on a body\n",
+ "m=100 # kg # mass of the body\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Using the eq'n of motion\n",
+ "a=F*m**-1 # m/s^2 \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The acceleration of the body is \",round(a,2),\"m/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The acceleration of the body is 2.5 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 70
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-16,Page No:354"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "a=1 # m/s^2 # downward/upward acceleration of the elevator\n",
+ "W=500 # N # Weight of man\n",
+ "g=9.81 # m/s^2 # acceleration due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (a) Downward Motion \n",
+ "R_1=W*(1-(a/g)) # N # (Assume pressure as R_1)\n",
+ "\n",
+ "# (b) Upward Motion\n",
+ "R_2=W*(1+(a/g)) # N # (Assume pressure as R_2)\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The pressure transmitted to the floor by the man for Downward motion of the elevator is \",round(R_1),\"N\"\n",
+ "print\"(b) The pressure transmitted to the floor by the man for Upward motion of the elevator is \",round(R_2,2),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The pressure transmitted to the floor by the man for Downward motion of the elevator is 449.0 N\n",
+ "(b) The pressure transmitted to the floor by the man for Upward motion of the elevator is 550.97 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 72
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-17,Page no:355"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=5000 # N # Total weight of the elevator\n",
+ "u=0 # m/s\n",
+ "v=2 # m/s # velocity of the elevator\n",
+ "s=2 # m # distance traveled by the elevator\n",
+ "t=2 # seconds # time to stop the lift\n",
+ "w=600 # N # weight of the man\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Acceleration acquired by the elevator after travelling 2 m is given by,\n",
+ "a=(((v**2-u**2)**0.5/2)) # m/s^2\n",
+ "\n",
+ "# (a) Let T be the the tension in the cable which is given by eq'n,\n",
+ "T=W*(1+(a/g)) # N\n",
+ "\n",
+ "# (b) Motion of man\n",
+ "# Let R be the pressure experinced by the man.Then from the Eq'n of motion of man pressure is given as,\n",
+ "R=w*(1-(a/g)) # N \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The Tensile force in the cable is \",round(T,1),\"N\"\n",
+ "print\"(b) The pressure transmitted to the floor by the man is \",round(R,1),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The Tensile force in the cable is 5509.7 N\n",
+ "(b) The pressure transmitted to the floor by the man is 538.8 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 83
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-18,Page No:355"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "M_1=10 # kg # mass of the 1st block\n",
+ "M_2=5 # kg # mass of the 2nd block\n",
+ "mu=0.25 # coefficient of friction between the blocks and the surface\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "a=g*(M_2-(mu*M_1))/(M_1+M_2) # m/s^2 # from eq'n 5\n",
+ "T=M_1*M_2*g*(1+mu)/(M_1+M_2) # N # from eq'n 6\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The acceleration of the masses is \",round(a,3),\"m/s^2\"\n",
+ "print\"The tension in the string is \",round(T,3),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The acceleration of the masses is 1.635 m/s^2\n",
+ "The tension in the string is 40.875 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 85
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-19,Page No:357"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "M_1=150 # kg # mass of the 1st block\n",
+ "M_2=100 # kg # mass of the 2nd block\n",
+ "mu=0.2 # coefficient of friction between the blocks and the inclined plane\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "theta=45 # degree # inclination of the surface\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# substuting the value of eq'n 3 in eq'n 1 & solving for T,we get value of T as,\n",
+ "T=((M_1*M_2*g)*(sin(theta*(pi/180))+2-(mu*cos(theta*(pi/180)))))/((4*M_1)+(M_2)) # N\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The tension in the string during the motion of the system is \",round(T,1),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The tension in the string during the motion of the system is 539.3 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 87
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-20,Page No:358"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "M_1=5 # kg # mass of the 1st block\n",
+ "theta_1=30 # degree # inclination of the 1st plane\n",
+ "M_2=10 # kg # mass of the 2nd block\n",
+ "theta_2=60 # degree # inclination of the 2nd plane\n",
+ "mu=0.33 # coefficient of friction between the blocks and the inclined plane\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# solving eq'n 1 & 2 for a we get,\n",
+ "a=((((M_2*(sin(theta_2*(pi/180))-(mu*cos(theta_2*(pi/180)))))-(M_1*(sin(theta_1*(pi/180))+(mu*cos(theta_1*(pi/180)))))))*g)/(M_1+M_2) # m/s^2\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The acceleration of the masses is \",round(a,3),\"m/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The acceleration of the masses is 2.015 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 89
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-21,Page No:359"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "S=5 # m # distance between block A&B\n",
+ "mu_A=0.2 # coefficient of friction between the block A and the inclined plane\n",
+ "mu_B=0.1 # coefficient of friction between the block B and the inclined plane\n",
+ "theta=20 # degree # inclination of the pane\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculatio#\n",
+ "\n",
+ "# EQUATION OF MOTION OF BLOCK A:\n",
+ "# Let a_A & a_B be the acceleration of block A & B.\n",
+ "a_A=(g*sin(theta*(pi/180)))-(mu_A*g*cos(theta*(pi/180))) # m/s^2 # from eq'n 1 & eq'n 2\n",
+ "\n",
+ "# EQUATION OF MOTION OF BLOCK B:\n",
+ "a_B=g*((sin(theta*(pi/180)))-(mu_B*cos(theta*(pi/180)))) # m/s^2 # from eq'n 3 & Rb\n",
+ "\n",
+ "# Now the eq'n for time of collision of the blocks is given as,\n",
+ "t=((S*2)/(a_B-a_A))**0.5 # seconds \n",
+ "S_A=(0.5)*a_A*t**2 # m # distance travelled by block A\n",
+ "S_B=(0.5)*a_B*t**2 # m # distance travelled by block B\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The time before collision is \",round(t,2),\"seconds\"\n",
+ "print\"The distance travelled by block A before collision is \",round(S_A,2),\"m\"\n",
+ "print\"The distance travelled by block B before collision is \",round(S_B,2),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The time before collision is 3.29 seconds\n",
+ "The distance travelled by block A before collision is 8.2 m\n",
+ "The distance travelled by block B before collision is 13.2 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 96
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-22,Page No:361"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "P=50 # N # Weight of the car\n",
+ "Q=100 # N # Weight of the rectangular block\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "b=25 # cm # width of the rectangular block\n",
+ "d=50 # cm # depth of the block\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "a=(Q*g)/(4*P+2*Q) # m/s^2 # from eq'n 4\n",
+ "W=(Q*(P+Q))/(4*P+Q) # N # from eq'n 6\n",
+ "\n",
+ "# Resuts\n",
+ "\n",
+ "print\"The maximum value of weight (W) by which the car can be accelerated is \",round(W),\"N\"\n",
+ "print\"The acceleration is \",round(a,2),\"m/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum value of weight (W) by which the car can be accelerated is 50.0 N\n",
+ "The acceleration is 2.45 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 99
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-23,Page No:363"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "P=40 # N # weight on puley r_1\n",
+ "Q=60 # N # weight on pulley r_2\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The eq'n for acceleration of pulley Pi.e a_p is,\n",
+ "a_p=(2*P-Q)*(4*P+Q)**-1*2*g # m/s^2\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The downward acceleration of P is \",round(a_p,3),\"m/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The downward acceleration of P is 1.784 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 112
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-24,Page No:364"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "M=15 # kg # mass of the wedge\n",
+ "m=6 # kg # mass of the block\n",
+ "theta=30 # degree # angle of the wedge\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "a_A=((m*g*cos(theta*(pi/180))*sin(theta*(pi/180)))/((M)+(m*(sin(theta*(pi/180)))**2)))/(g) # g # By eliminating R_1 from eq'n 1&3.\n",
+ "\n",
+ "# Here, assume a_r is the acceleration of block B relative to wedge A which is given by substuting a_A in eq'n 2\n",
+ "\n",
+ "a_r=(((g*sin(theta*(pi/180)))*(m+M))/((M)+(m*(sin(theta*(pi/180)))**2)))/(g) # g\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The acceleration of the wedge is \",round(a_A,3),\"g\"\n",
+ "print\"(b) The acceleration of the bock relative to the wedge is \",round(a_r,3),\"g\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The acceleration of the wedge is 0.157 g\n",
+ "(b) The acceleration of the bock relative to the wedge is 0.636 g\n"
+ ]
+ }
+ ],
+ "prompt_number": 114
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-25,Page No:366"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "P=30 # N # weight on pulley A\n",
+ "Q=20 # N # weight on pulley B\n",
+ "R=10 # N # weight on puey B\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Solving eqn's 6 & 7 using matrix for a & a_1, we get\n",
+ "A=np.array([[70 ,-40],[-10, 30]])\n",
+ "B=np.array([10,-10])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "# Acceleration of P is given as,\n",
+ "P=C[0] # m/s^2\n",
+ "# Acceleration of Q is given as,\n",
+ "Q=C[1]-C[0] # m/s^2\n",
+ "# Acceleration of R is given as,\n",
+ "R=-(C[1]+C[0]) # m/s^2 # as R is taken to be +ve\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The acceleration of P is \",round(P,2),\"g\"\n",
+ "print\"The acceleration of Q is \",round(Q,2),\"g\"\n",
+ "print\"The acceleration of R is \",round(R,2),\"g\"\n",
+ "# Here the -ve sign indicates deceleration or backward/downward acceleation.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The acceleration of P is -0.06 g\n",
+ "The acceleration of Q is -0.29 g\n",
+ "The acceleration of R is 0.41 g\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14-30,Page No:372"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=1 # kg/m # weight of the bar\n",
+ "L_AB=0.6 # m # length of segment AB\n",
+ "L_BC=0.30 # m # length of segment BC\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the respective F.B.D.\n",
+ "theta_1=arctan(5/12)*(180/pi) # slope of bar AB # here theta_1= atan(theta)\n",
+ "theta_2=arcsin(5/13)*(180/pi) # theta_2=asin(theta)\n",
+ "theta_3=arccos(12/13)*(180/pi) # theta_3=acos(theta)\n",
+ "M_AB=L_AB*W # kg acting at D # Mass of segment AB\n",
+ "M_BC=L_BC*W # kg acting at E # Mass of segment BC\n",
+ "\n",
+ "# The various forces acting on the bar are:\n",
+ "\n",
+ "# Writing the eqn's of dynamic equilibrium\n",
+ "Y_A=(L_AB*g)+(L_BC*g) # N # sum F_y=0\n",
+ "\n",
+ "# Using moment eq'n Sum M_A=0:Here,in this eq'n the values are as follows,\n",
+ "AF=L_BC*cos(theta_3) \n",
+ "DF=L_BC*sin(theta_2)\n",
+ "AH=(L_AB*cos(theta_3))+((L_BC/2)*sin(theta_2))\n",
+ "IG=(L_AB*sin(theta_2)-((L_BC/2)*cos(theta_3)))\n",
+ "\n",
+ "# On simplifying and solving moment eq'n we get a as,\n",
+ "a=(g*(L_AB*(DF)+L_BC*(IG)))*(L_AB*(AF)+L_BC*(AH))**-1\n",
+ "#a=(2*L_AB*L_BC*g*sin(theta_2))-(L_BC*g*(L_BC/2)*cos(theta_3))/((2*L_AB*L_BC*cos(theta_3*(pi/180)))+(L_BC*(L_BC/2)*sin(theta_2*(pi/180)))) # m/s^2\n",
+ "X_A=0.9*a #N # from eq'n of dynamic equilibrium\n",
+ "R_A=(X_A**2+Y_A**2)**0.5 # N # Resultant of R_A\n",
+ "alpha=arctan(Y_A/X_A)*(180/pi) # degree\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The acceleration is \",round(a,4),\"m/s^2\"\n",
+ "print\"The reaction at A (R_A) is \",round(R_A,3),\"N\"\n",
+ "print\"The angle made by the resultant is \",round(alpha,2),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The acceleration is -1.2263 m/s^2\n",
+ "The reaction at A (R_A) is 8.898 N\n",
+ "The angle made by the resultant is -82.87 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter15.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter15.ipynb
new file mode 100755
index 00000000..db992973
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter15.ipynb
@@ -0,0 +1,775 @@
+{
+ "metadata": {
+ "name": "chapter15.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 15: Curvilinear Motion Of A Particle"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-2,Page No:386"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "r=200 # m # radius of the curved road\n",
+ "v_1=72*1000*3600**-1 # m/s # initial speed of the car\n",
+ "v_2=36*1000*3600**-1 # m/s # speed of the car after 10 seconds\n",
+ "t=10 # seconds\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "A_n=v_1**2/r # m/s^2 # normal component of acceleration\n",
+ "A_t=0 # since dv/dt=0 # tangential component of acceeration\n",
+ "delv=v_1-v_2\n",
+ "delt=t-0\n",
+ "a_t=delv/delt # m/s^2 # tangential component of deceleration after the brakes are applied\n",
+ "a_n=v_1**2/r # m/s^2 # normal component of deceleration after the brakes are applied\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The normal component of acceleration is \",round(A_n),\"m/s^2\"\n",
+ "print\"The tangential component of acceleration is \",round(A_t),\"m/s^2\"\n",
+ "print\"The normal component of deceleration is \",round(a_n),\"m/s^2\"\n",
+ "print\"The tangential component of deceleration is \",round(a_t),\"m/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The normal component of acceleration is 2.0 m/s^2\n",
+ "The tangential component of acceleration is 0.0 m/s^2\n",
+ "The normal component of deceleration is 2.0 m/s^2\n",
+ "The tangential component of deceleration is 1.0 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-3,Page No:387"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Iintilization of variables\n",
+ "\n",
+ "r=250 # m # radius of the curved road\n",
+ "a_t=0.6 # m/s^2 # tangential acceleration\n",
+ "a=0.75 # m/s^2 # total acceleration attained by the car\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "a_n=(a**2-a_t**2)**0.5 # m/s^2\n",
+ "v=sqrt(a_n*r) # m/s\n",
+ "\n",
+ "# Using v=u+a*t\n",
+ "u=0\n",
+ "t=v/a_t # seconds\n",
+ "\n",
+ "# Now using v^2-u^2=2*a*s\n",
+ "s=v**2/(2*a_t) # m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The distance traveled by the car is \",round(s,2),\"m\"\n",
+ "print\"The time for which the car travels is \",round(t,2),\"seconds\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The distance traveled by the car is 93.75 m\n",
+ "The time for which the car travels is 17.68 seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-5,Page No:388"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "v=10 # m/s # speed of the car\n",
+ "r=200 # m # radius of the road\n",
+ "t=15 # seconds\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "omega=(v*r**-1) # radian/seconds # angular velocity of the car\n",
+ "\n",
+ "# Velocity in x & y direction is given by eq'n\n",
+ "v_x=omega*r*sin(omega*t) # m/s # value of v_x is -ve but we consider it to be +ve for calculations\n",
+ "v_y=omega*r*cos(omega*t) # m/s\n",
+ "\n",
+ "# Acceleration in x & y direction is given by\n",
+ "a_x=(omega**2)*r*cos(omega*t) # m/s^2 # value of a_x is -ve but we consider it to be +ve for calculations\n",
+ "a_y=(omega**2)*r*sin(omega*t) # m/s^2 # value of a_y is -ve but we consider it to be +ve for calculations\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The component of velocity in X direction (v_x) is \",round(v_x,2),\"m/s\"\n",
+ "print\"The component of velocity in Y direction (v_y) is \",round(v_y,2),\"m/s\"\n",
+ "print\"The component of acceleration in X direction (a_x) is \",round(a_x,3),\"m/s^2\"\n",
+ "print\"The component of acceleration in Y direction (a_y) is \",round(a_y,3),\"m/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The component of velocity in X direction (v_x) is 6.82 m/s\n",
+ "The component of velocity in Y direction (v_y) is 7.32 m/s\n",
+ "The component of acceleration in X direction (a_x) is 0.366 m/s^2\n",
+ "The component of acceleration in Y direction (a_y) is 0.341 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-6,Page No:392"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "t=1 # seconds\n",
+ "pi=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# From the equations of r and theta given we find 1st & 2nd derative and substitute t=1sec Here we consider the 1st derative as r_1 & theta_1 and so on...\n",
+ "r=(1.25*t**2)-(0.9*t**3) # m\n",
+ "r_1=(1.25*(2*t))-(0.9*(3*t**2)) # m/s\n",
+ "r_2=2.5-(0.9*3*(2*t)) # m/s^2\n",
+ "theta=(pi/2)*(4*t-3*t**2) # radian\n",
+ "theta_1=(pi/2)*(4-(6*t)) # rad/second\n",
+ "theta_2=(pi/2)*(0-(6*t)) # rad/second^2\n",
+ "\n",
+ "# Velocity of collar P\n",
+ "v_r=r_1 # m/s\n",
+ "v_theta=r*theta_1 # m/s\n",
+ "v=(v_r**2+v_theta**2)**0.5 # m/s\n",
+ "alpha=arctan(v_theta/v_r) # degree\n",
+ "\n",
+ "# Acceleration of the collar P\n",
+ "a_r=r_2-(r*theta_1**2) # m/s^2\n",
+ "a_theta=(r*theta_2)+(2*r_1*theta_1) # m/s^2\n",
+ "a=(a_r**2+a_theta**2)**0.5 # m/s^2\n",
+ "beta=arctan(a_theta/a_r) # degree\n",
+ "\n",
+ "# Acceleration of collar P relative to the rod. Let it be a_relative\n",
+ "a_relative=r_2 # m/s^2 # towards O\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "print\"The velocity of the collar is \",round(v,3),\"m/s\"\n",
+ "print\"The accelaration of the collar is \",round(a,3),\"m/s^2\"\n",
+ "print\"The acceleration of the collar relative to the rod is \",round(a_relative,1),\"m/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of the collar is 1.117 m/s\n",
+ "The accelaration of the collar is 6.671 m/s^2\n",
+ "The acceleration of the collar relative to the rod is -2.9 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-7,Page No:394"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Consider the eq'ns of motion from the book\n",
+ "# The notations have been changed for the derivatives of r & theta\n",
+ "# (1) At t=0 s\n",
+ "theta_0=0\n",
+ "theta_1=2*pi # rad/s\n",
+ "theta_2=0\n",
+ "r_0=0\n",
+ "r_1=10 # cm/s\n",
+ "r_2=0\n",
+ "# At t=0.3 s\n",
+ "t=0.3 # sec\n",
+ "theta=2*pi*t # rad\n",
+ "theta1=2*pi # rad/s\n",
+ "theta2=0\n",
+ "r=10*t # cm\n",
+ "r1=10 # cm/s\n",
+ "r2=0\n",
+ "# (i) \n",
+ "#Velocity\n",
+ "v_r=r_1 # cm/s\n",
+ "v_theta=r_0*theta_1\n",
+ "v=sqrt(v_r**2+v_theta**2) # cm/s\n",
+ "# Acceleration\n",
+ "a_r=r_2-(r_0*theta_1**2) # cm/s^2\n",
+ "a_theta=(r_0*theta_2)+(2*r_1*theta_1) # cm/s^2\n",
+ "a=sqrt(a_r**2+a_theta**2) # cm/s^2\n",
+ "# (ii)\n",
+ "# Velocity\n",
+ "V_R=r1 # cm/s\n",
+ "V_theta=r*theta1 # cm/s\n",
+ "V=sqrt(V_R**2+V_theta**2) # cm/s\n",
+ "# Acceleration\n",
+ "A_r=r2-(r*theta1**2) # cm/s^2\n",
+ "A_theta=(r*theta2)+(2*r1*theta1) # cm/s^2\n",
+ "A=sqrt(A_r**2+A_theta**2) # cm/s^2\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity and the acceleration of the partice at t=0 s is \",round(v),\"cm/s\",\"&\",round(a,1),\"cm/s^2\"\n",
+ "print\"The velocity and the acceleration of the partice at t=0.3 s is \",round(V,2),\"cm/s\",\"&\",round(A,2),\"cm/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity and the acceleration of the partice at t=0 s is 10.0 cm/s & 125.7 cm/s^2\n",
+ "The velocity and the acceleration of the partice at t=0.3 s is 21.34 cm/s & 172.68 cm/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-9,Page No:404"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Calculations\n",
+ "# Tension in the wire before it is cut\n",
+ "T_ab=1/((2.747*0.643)+(0.766)) # From eqn's 1 & 2..Here T_ab is multiplied with W (i.e weight of small ball) \n",
+ "T_AB=cos(40*(pi/180)) # Tension in the wire after the wire is cut. Again T_AB is multiplied with W.\n",
+ "# Results\n",
+ "\n",
+ "print\"The tension in the wire before and after it is cut is respectively \",round(T_ab,3),\"W\",\"&\",round(T_AB,3),\"W\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The tension in the wire before and after it is cut is respectively 0.395 W & 0.766 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-10,Page No:405"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W_A=120 # N # Weight of block A\n",
+ "W_B=80 # N # Weight of block B\n",
+ "mu_a=0.4 # coefficient of friction under block A\n",
+ "n=40 # r.p.m # rotation of frame\n",
+ "r_a=1.2 # m # distance from block A to the axis of rotation\n",
+ "r_b=1.6 # m # distance from block A to the axis of rotation\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "pi=3.14 # constant\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the F.B.D of block A.\n",
+ "N=W_A # N # Sum F_y=0\n",
+ "\n",
+ "# Now here, a_n=omega^2*r\n",
+ "omega=(2*pi*n)*60**-1 # rad/sec\n",
+ "a_n=(omega**2)*r_a # m/s^2\n",
+ "\n",
+ "# sum F_x=0 gives the eq'n of T as,\n",
+ "T=((W_A*g**-1)*a_n)-(mu_a*N) # N \n",
+ "\n",
+ "# Now consider the F.B.D of block B\n",
+ "A_n=(omega**2)*r_b # m/s^2\n",
+ "N_1=(W_B*g**-1)*A_n # N # sum F_x=0\n",
+ "mu=(T-W_B)*N_1**-1 \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The coefficient of friction of block B is \",round(mu,3) \n",
+ "#answer may vary due to decimal variance in python\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The coefficient of friction of block B is 0.565\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-12,Page No:408"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "W=10000 # N # Weight of the locomotive\n",
+ "# Calculations\n",
+ "# Consider the various derivations given in the textbook\n",
+ "R_max=W*20**-1 # N # eq'n for max reaction\n",
+ "# The position of occurence of maximum thrust cannot be defined here. Refer textbook for the answer\n",
+ "# Results\n",
+ "\n",
+ "print\"The maximum lateral thrust is \",round(R_max),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum lateral thrust is 500.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-13,Page No:411"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "W=10 #N # Weight of the ball\n",
+ "# Calculations\n",
+ "# consider the eq'n derived to find the reaction, given as\n",
+ "R=W*(1+((2*pi**2)*9**-1)) # N \n",
+ "# Results\n",
+ "\n",
+ "print\"The value of the reaction is \",round(R,1),\"N\"\n",
+ "#answer may vary due to decimal variance\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The value of the reaction is 31.9 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-15,Page No:412"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "P=50 # N # Weight of ball P\n",
+ "Q=50 # N # Weight of ball Q\n",
+ "R=100 # N # Weight of the governing device\n",
+ "l=0.3 # m # length of each side\n",
+ "theta=30 # degree\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "pi=3.14 # constant\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the respective F.B.D\n",
+ "r=l*sin(theta*(pi/180)) # m # Radius of circe\n",
+ "# On solving eqn's 1,2 &3 we get the value of v as,\n",
+ "v=(((Q+R)*g*r)/(3**0.5*Q))**0.5 # m/s \n",
+ "# But the eq'n v=omega*r we get the value of N as,\n",
+ "N=(60*v)/(2*pi*r) # r.p.m \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The speed of rotation is \",round(N,1),\"r.p.m\"\n",
+ "# NOTE: In the text book (A.K. Tayal) this sum is numbered as 'EXAMPLE 15.14' which is incorrect.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The speed of rotation is 101.7 r.p.m\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-16,Page No:414"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "Q=20 # N # Weight of the governor device\n",
+ "W=10 # N # Weight of the fly balls\n",
+ "theta=30 # degree # angle between the vertical shaft and the axis AB\n",
+ "l=0.2 # m # length of the shaft\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "pi=3.14 # constant\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the respective F.B.D\n",
+ "# Radius of the circle is given as,\n",
+ "r=Q*sin(theta*(pi/180))*(10**-2) # m \n",
+ "\n",
+ "# Solving eq'n 1 & 2 for v. The eq'n for v is given as,\n",
+ "v=(((W*l*0.5)+(0.05*Q))/((W*0.2*(3)**0.5)/(2*g*r)))**0.5 # m/s\n",
+ "\n",
+ "# But, v=r*omega=2*pi*N*r/60. From this eq'n we get N as,\n",
+ "N=(v*60)/(2*pi*r) # r.p.m.\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The speed of the fly-balls is \",round(N,1),\"r.p.m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The speed of the fly-balls is 101.7 r.p.m\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-18,Page No:421 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "r=50 # m # radius of the road\n",
+ "mu=0.15 # coefficient of friction between the wheels and the road\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The eq'n fo max speed of the vehicle without skidding is \n",
+ "v=(mu*g*r)**0.5 # m/s\n",
+ "\n",
+ "# The angle theta made with the vertical while negotiating the corner is \n",
+ "theta=arctan(v**2/(g*r))*(180/pi) # degree\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The maximum speed with which the vehicle can travel is \",round(v,2),\"m/s\"\n",
+ "print\"The angle made with the vertical is \",round(theta,2),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum speed with which the vehicle can travel is 8.58 m/s\n",
+ "The angle made with the vertical is 8.54 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-19,Page No:422"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "v=100*1000*3600**-1 # m/s # or 100 km/hr\n",
+ "r=250 # m # radius of the road\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The angle of banking is given by eq'n,\n",
+ "theta=arctan((v**2)/(g*r))*(180/pi) # degree \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The angle of banking of the track is \",round(theta,2),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The angle of banking of the track is 17.47 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-20,Page No:422"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=10000 # N # Weight of the car\n",
+ "r=100 # m # radius of the road\n",
+ "v=10 # m/s # speed of the car\n",
+ "h=1 # m # height of the C.G of the car above the ground\n",
+ "b=1.5 # m # distance between the wheels\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The reactions at the wheels are given by te eq'ns:\n",
+ "R_A=(W/2)*(1-((v**2*h)/(g*r*b))) # N # Reaction at A\n",
+ "R_B=(W/2)*(1+((v**2*h)/(g*r*b))) # N # Reaction at B\n",
+ "\n",
+ "# The eq'n for max speed to avoid overturning on level ground is,\n",
+ "v_max=((g*r*(b/2))/(h))**0.5 # m/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The reaction at Wheel A (R_A) is \",round(R_A,1),\"N\"\n",
+ "print\"The reaction at Wheel B (R_B) is \",round(R_B,1),\"N\"\n",
+ "print\"The maximum speed at which the vehicle can travel without the fear of overturning is \",round(v_max,2),\"m/s\" \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The reaction at Wheel A (R_A) is 4660.2 N\n",
+ "The reaction at Wheel B (R_B) is 5339.8 N\n",
+ "The maximum speed at which the vehicle can travel without the fear of overturning is 27.12 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 45
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15-21,Page No:423"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=1 # N # Weight of the bob\n",
+ "theta=8 # degree # angle made by the bob with the vertical\n",
+ "r=100 # m # radius of the curve\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# from eq'n 1 & 2 we get v as,\n",
+ "v=((g*r*tan(theta*(pi/180)))**0.5)*3600*1000**-1 # km/hr \n",
+ "T=W/cos(theta*(pi/180)) # N # from eq'n 2\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The speed of the cariage is \",round(v,2),\"km/hr\"\n",
+ "print\"The tension in the chord is \",round(T,2),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The speed of the cariage is 42.26 km/hr\n",
+ "The tension in the chord is 1.01 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter16.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter16.ipynb
new file mode 100755
index 00000000..7bd00420
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter16.ipynb
@@ -0,0 +1,471 @@
+{
+ "metadata": {
+ "name": "chapter16.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 16: Kinetics Of A Particle : Work And Energy"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.16-1,Page No:432"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "k=1000 # N/m # stiffness of spring\n",
+ "x_1=0.1 # m # distance upto which the spring is stretched\n",
+ "x_2=0.2 # m \n",
+ "x_0=0 # initial position of spring\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Work required to stretch the spring by 10 cm from undeformed position is given as,\n",
+ "U_10=-(k/2)*(x_1**2-x_0**2) # N-m \n",
+ "# Work required to stretch from 10 cm to 20 cm is,\n",
+ "U=-(0.5)*k*(x_2**2-x_1**2) # N-m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The work of the spring force is \",round(U_10),\"N-m\"\n",
+ "print\"The work required to stretch the spring by 20 cm is \",round(U),\"N-m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The work of the spring force is -5.0 N-m\n",
+ "The work required to stretch the spring by 20 cm is -15.0 N-m\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.16-3,Page No:436"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "M_A=100 # kg # mass of block A\n",
+ "M_B=150 # kg # mass of block B\n",
+ "mu=0.2 # coefficient of friction between the blocks and the surface\n",
+ "x=1 # m # distance by which block A moves\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the respective F.B.D\n",
+ "# Applying the principle of work and energy to the system of blocks A&B and on simplifying we get the value of v as,\n",
+ "v=(((-mu*M_A*g)+(M_B*g))/(125))**0.5 # m/s \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity of block A is \",round(v,2),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of block A is 3.19 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.16-4,Page No:440"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "M=500*10**3 # kg # mass of the train\n",
+ "u=0 # m/s # initial speed\n",
+ "v=90*1000*3600**-1 # m/s # final speed\n",
+ "t=50 # seconds\n",
+ "F_r=15*10**3 # N # Frictioal resistance to motion\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Acceleration is given as,\n",
+ "a=v*t**-1 # m/s^2\n",
+ "# The total force required to accelerate the train is,\n",
+ "F=M*a # N\n",
+ "# The maximum power required is at, t=50s & v=25 m/s\n",
+ "P=(F+F_r)*v*(10**-6) # MW\n",
+ "# At any time after 50 seconds, the force required only to overcome the frictional resistance of 15*10^3 N is,\n",
+ "P_req=F_r*v*(10**-3) # kW\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The maximum power required is \",round(P,3),\"MW\"\n",
+ "print\"(b) The power required to maintain a speed of 90 km/hr is \",round(P_req,2),\"kW\" \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The maximum power required is 6.625 MW\n",
+ "(b) The power required to maintain a speed of 90 km/hr is 375.0 kW\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.16-5,Page No:440"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=50 # N # Weight suspended on spring\n",
+ "k=10 # N/cm # stiffness of the spring\n",
+ "x_2=15 # cm # measured extensions\n",
+ "h=10 # cm # height for position 2\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the required F.B.D.\n",
+ "\n",
+ "# POSITION 1: The force exerted by the spring is,\n",
+ "F_1=W # N\n",
+ "\n",
+ "# Extension of spring from undeformed position is x_1,\n",
+ "x_1=F_1/k # cm\n",
+ "\n",
+ "# POSITION 2: When pulled by 10 cm to the floor. P.E of weight is,\n",
+ "P_E_g=-W*h # N-cm # (P_E_g= P_E_gravity)\n",
+ "\n",
+ "# P.E of the spring with respect to position 1\n",
+ "P_E_s=(0.5)*k*(x_2**2-x_1**2) # N-cm # (P_E_s= P_E_ spring)\n",
+ "\n",
+ "# Total P.E of the system with respect to position 1\n",
+ "P_E_t=P_E_g+P_E_s # N-cm # (P_E_t= P_E_total)\n",
+ "\n",
+ "# Total energy of the system,\n",
+ "E_2=P_E_t # N-cm\n",
+ "\n",
+ "# Total energy of the system in position 3 w.r.t position 1 is:\n",
+ "x=-(100)**0.5 # cm\n",
+ "x=+(100)**0.5 # cm\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The potential energy of the system is \",round(E_2),\"N-cm\"\n",
+ "print\"The maximum height above the floor that the weight W will attain after release is \",round(x),\"cm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The potential energy of the system is 500.0 N-cm\n",
+ "The maximum height above the floor that the weight W will attain after release is 10.0 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.16-6,Page No:442"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m=5 # kg # mass of the ball\n",
+ "k=500 # N/m # stiffness of the spring\n",
+ "h=10 # cm # height of drop\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the respective F.B.D.\n",
+ "# In eq'n 1 substitute the respective values and simplify it further. In this eq'n of 2nd degree a=1 b=-0.1962 & c=-0.01962. Thus the roots of the eq'n is given as,\n",
+ "a=1 \n",
+ "b=-0.1962\n",
+ "c=-0.01962\n",
+ "delta=((-b+(((b**2)-(4*a*c))**0.5))/(2*a))*(10**2) # cm # We consider the +ve value of delta\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The maximum deflection of the spring is \",round(delta,2),\"cm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum deflection of the spring is 26.91 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.16-7,Page No:444"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m=5 # kg # mass of the ball\n",
+ "k=500 # N/m # stiffness of the spring\n",
+ "h=0.1 # m # height of vertical fall\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the respective F.B.D\n",
+ "# On equating the total energies at position 1 & 2 we get eq'n of delta as,\n",
+ "delta=((2*m*g*h)/(k))**0.5 # m \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The maximum compression of the spring is \",round(delta,3),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum compression of the spring is 0.14 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.16-9,Page No:445"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m=5 # kg # mass of the collar\n",
+ "k=500 # N/m # stiffness of the spring\n",
+ "AB=0.15 # m # Refer the F.B.D for AB\n",
+ "AC=0.2 # m # Refer the F.B.D for AC\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the respective F.B.D\n",
+ "\n",
+ "# POSITION 1: \n",
+ "P_E_1=m*g*(AB)+0 \n",
+ "K_E_1=0\n",
+ "E_1=P_E_1+K_E_1 #\n",
+ "\n",
+ "# POSITION 2 : Length of the spring in position 2\n",
+ "CB=(AB**2+AC**2)**0.5 # m \n",
+ "# x is the extension in the spring\n",
+ "x=CB-AC # m\n",
+ "# On substuting and Equating equations of total energies for position1 & position 2 we get the value of v as,\n",
+ "v=(((E_1-((0.5)*k*x**2))*2)/m)**0.5 # m/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity of the collar will be \",round(v,2),\"m/s\"\n",
+ "# The answer given in the text book (v=16.4 m/s) is wrong.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of the collar will be 1.64 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.16-10,Page No:446"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m=5 # kg # mass of the block\n",
+ "theta=30 # degree # inclination of the plane\n",
+ "x=0.5 # m # distance travelled by the block\n",
+ "k=1500 # N/m # stiffness of the spring\n",
+ "mu=0.2 # coefficient of friction between the block and the surface\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the F.B.D of the block\n",
+ "# Applying the principle of work and energy between the positions 1 & 2 and on further simplification we get the generic eq'n for delta as, 750*delta^2-16.03*delta-8.015=0. From this eq'n e have values of a.b & c as,\n",
+ "a=750\n",
+ "b=-16.03\n",
+ "c=-8.015\n",
+ "# Thus the roots of the eq'n are given as,\n",
+ "delta=(-b+((b**2-(4*a*c))**0.5))/(2*a) # m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The maximum compression of the spring is \",round(delta,3),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The maximum compression of the spring is 0.115 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 16.16-11,Page No:448"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "M=10 # kg # Here M=M_1=M_2\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the respective F.B.D\n",
+ "# Applying the principle of conservation of energy and by equating the total energies at position 1 & position 2 we get v as,\n",
+ "v=((M*g*4)/(25))**0.5 # m/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity of mass M_2 is \",round(v,2),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of mass M_2 is 3.96 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter17.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter17.ipynb
new file mode 100755
index 00000000..5049e924
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter17.ipynb
@@ -0,0 +1,342 @@
+{
+ "metadata": {
+ "name": "chapter17.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 17: Kinetics Of A Particle : Impulse And Momentum"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.17-1,Page no:460"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m=0.1 # kg # mass of ball\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider the respective F.B.D.\n",
+ "\n",
+ "# For component eq'n in x-direction\n",
+ "delta_t=0.015 # seconds # time for which the ball &the bat are in contact\n",
+ "v_x_1=-25 # m/s \n",
+ "v_x_2=40*cos(40*(pi/180)) # m/s\n",
+ "F_x_average=((m*(v_x_2))-(m*(v_x_1)))/(delta_t) # N\n",
+ "\n",
+ "# For component eq'n in y-direction\n",
+ "delta_t=0.015 # sceonds\n",
+ "v_y_1=0 # m/s\n",
+ "v_y_2=40*sin(40*(pi/180)) # m/s\n",
+ "F_y_average=((m*v_y_2)-(m*(v_y_1)))/(delta_t) # N\n",
+ "F_average=(F_x_average**2+F_y_average**2)**0.5 # N\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The average impules force exerted by the bat on the ball is \",round(F_average,1),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The average impules force exerted by the bat on the ball is 408.6 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Examplle 17.17-2,Page No:461"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initiliation of variables\n",
+ "\n",
+ "m_g=3000 # kg # mass of the gun\n",
+ "m_s=50 # kg # mass of the shell\n",
+ "v_s=300 # m/s # initial velocity of shell\n",
+ "s=0.6 # m # distance at which the gun is brought to rest\n",
+ "v=0 # m/s # initial velocity of gun\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# On equating eq'n 1 & eq'n 2 we get v_g as,\n",
+ "v_g=(m_s*v_s)/(-m_g) # m/s\n",
+ "\n",
+ "# Using v^2-u^2=2*a*s to find acceleration,\n",
+ "a=(v**2-v_g**2)/(2*s) # m/s^2\n",
+ "\n",
+ "# Force required to stop the gun,\n",
+ "F=m_g*-a # N # here we make a +ve to find the Force\n",
+ "\n",
+ "# Time required to stop the gun, using v=u+a*t:\n",
+ "t=(-v_g)/(-a) # seconds # we take -a to consider +ve value of acceleration\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The recoil velocity of gun is \",round(v_g),\"m/s\"\n",
+ "print\"The Force required to stop the gun is \",round(F),\"N\" # Answer in textbook 62400 is wrong as a=20.833\n",
+ "print\"The time required to stop the gun is \",round(t,2),\"seconds\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The recoil velocity of gun is -5.0 m/s\n",
+ "The Force required to stop the gun is 62500.0 N\n",
+ "The time required to stop the gun is 0.24 seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.17-3,Page No:462"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m_m=50 # kg # mass of man\n",
+ "m_b=250 # kg # mass of boat\n",
+ "s=5 # m # length of the boat\n",
+ "v_r=1 # m/s # here v_r=v_(m/b)= relative velocity of man with respect to boat\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Velocity of man is given by, v_m=(-v_r)+v_b\n",
+ "\n",
+ "# Final momentum of the man and the boat=m_m*v_m+m_b*v_b. From this eq'n v_b is given as\n",
+ "v_b=(m_m*v_r)*(m_m+m_b)**-1 # m/s # this is the absolute velocity of the boat\n",
+ "\n",
+ "# Time taken by man to move to the other end of the boat is,\n",
+ "t=s/v_r # seconds\n",
+ "\n",
+ "# The distance travelled by the boat in the same time is,\n",
+ "s_b=v_b*t # m to right from O\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The velocity of boat as observed from the ground is \",round(v_b,3),\"m/s\"\n",
+ "print\"(b) The distance by which the boat gets shifted is \",round(s_b,3),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The velocity of boat as observed from the ground is 0.167 m/s\n",
+ "(b) The distance by which the boat gets shifted is 0.833 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.17-5,Page No:464"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "M=250 # kg # mass of the boat\n",
+ "M_1=50 # kg # mass of the man\n",
+ "M_2=75 # kg # mass of the man\n",
+ "v=4 # m/s # relative velocity of man w.r.t boat\n",
+ "\n",
+ "# Calculations \n",
+ "\n",
+ "# (a)\n",
+ "# Let the increase in the velocity or the final velocity of the boat when TWO MEN DIVE SIMULTANEOUSLY is given by eq'n,\n",
+ "deltaV_1=((M_1+M_2)*v)*(M+(M_1+M_2))**-1 # m/s\n",
+ "\n",
+ "# (b) # The increase in the velocity or the final velocity of the boat when man of 75 kg dives 1st followed by man of 50 kg\n",
+ "# Man of 75 kg dives first, So let the final velocity is given as\n",
+ "deltaV_75=(M_2*v)*((M+M_1)+M_2)**-1 # m/s\n",
+ "# Now let the man of 50 kg jumps next, Here\n",
+ "deltaV_50=(M_1*v)*(M+M_1)**-1 # m/s\n",
+ "# Let final velocity of boat is,\n",
+ "deltaV_2=0+deltaV_75+deltaV_50 # m/s\n",
+ "\n",
+ "# (c) \n",
+ "# The man of 50 kg jumps first,\n",
+ "delV_50=(M_1*v)*((M+M_2)+(M_1))**-1 # m/s\n",
+ "# the man of 75 kg jumps next,\n",
+ "delV_75=(M_2*v)*(M+M_2)**-1 # m/s\n",
+ "# Final velocity of boat is,\n",
+ "deltaV_3=0+delV_50+delV_75 # m/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The Final velocity of boat when two men dive simultaneously is \",round(deltaV_1,2),\"m/s\"\n",
+ "print\"(b) The Final velocity of boat when the man of 75 kg dives first and 50 kg dives second is \",round(deltaV_2,3),\"m/s\"\n",
+ "print\"(c) The Final velocity of boat when the man of 50kg dives first followed by the man of 75 kg is \",round(deltaV_3,3),\"m/s\" \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The Final velocity of boat when two men dive simultaneously is 1.33 m/s\n",
+ "(b) The Final velocity of boat when the man of 75 kg dives first and 50 kg dives second is 1.467 m/s\n",
+ "(c) The Final velocity of boat when the man of 50kg dives first followed by the man of 75 kg is 1.456 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.17-6,Page No:466"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m_m=70 # kg # mass of man\n",
+ "m_c=35 # kg # mass of canoe\n",
+ "m=25*1000**-1 # kg # mass of bullet\n",
+ "m_wb=2.25 # kg # mass of wodden block\n",
+ "V_b=5 # m/s # velocity of block\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Considering Initial Momentum of bullet=Final momentum of bullet & the block we have,Velocity of bullet (v) is given by eq'n,\n",
+ "v=(V_b*(m_wb+m))/(m) # m/s \n",
+ "\n",
+ "# Considering, Momentum of the bullet=Momentum of the canoe & the man,the velocity on canoe is given by eq'n\n",
+ "V=(m*v)*(m_m+m_c)**-1 # m/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity of the canoe is \",round(V,3),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of the canoe is 0.108 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.17-8,Page no:470"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m=2 # kg # mass of the particle\n",
+ "v_0=20 # m/s # speed of rotation of the mass attached to the string\n",
+ "r_0=1 # m # radius of the circle along which the particle is rotated\n",
+ "r_1=r_0*0.5 # m\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# here, equating (H_0)_1=(H_0)_2 i.e (m*v_0)*r_0=(m*v_1)*r_1 (here, r_1=r_0/2). On solving we get v_1 as,\n",
+ "v_1=2*v_0 # m/s\n",
+ "# Tension is given by eq'n,\n",
+ "T=(m*v_1**2)/r_1 # N\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The new speed of the particle is \",round(v_1),\"m/s\"\n",
+ "print\"The tension in the string is \",round(T),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The new speed of the particle is 40.0 m/s\n",
+ "The tension in the string is 6400.0 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter18.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter18.ipynb
new file mode 100755
index 00000000..696a0479
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter18.ipynb
@@ -0,0 +1,620 @@
+{
+ "metadata": {
+ "name": "chapter18.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 18: Impact:Collision Of Elastic Bodies"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-1,Page No:474"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "# Initilization of variables\n",
+ "m_a=1 # kg # mass of the ball A\n",
+ "v_a=2 # m/s # velocity of ball A\n",
+ "m_b=2 # kg # mass of ball B\n",
+ "v_b=0 # m/s # ball B at rest\n",
+ "e=1/2 # coefficient of restitution\n",
+ "\n",
+ "# Calculations\n",
+ "# Solving eqn's 1 & 2 using matrix for v'_a & v'_b,\n",
+ "A=np.array([[1 ,2],[-1 ,1]])\n",
+ "B=np.array([2,1])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity of ball A after impact is \",round(C[0]),\"m/s\"\n",
+ "print\"The velocity of ball B after impact is \",round(C[1]),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of ball A after impact is 0.0 m/s\n",
+ "The velocity of ball B after impact is 1.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-2,Page No:480"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "# Initilization of variables\n",
+ "m_a=2 # kg # mass of ball A\n",
+ "m_b=6 # kg # mass of ball B\n",
+ "m_c=12 # kg # mass of ball C\n",
+ "v_a=12 # m/s # velocity of ball A\n",
+ "v_b=4 # m/s # velocity of ball B\n",
+ "v_c=2 # m/s # velocity of ball C\n",
+ "e=1 # coefficient of restitution for perfectly elastic body\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (A)\n",
+ "# Solving eq'n 1 & 2 using matrix for v'_a & v'_b,\n",
+ "A=np.array([[2 ,6],[-1, 1]])\n",
+ "B=np.array([48,8])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (B)\n",
+ "# Solving eq'ns 3 & 4 simultaneously using matrix for v'_b & v'_c\n",
+ "P=np.array([[1 ,2],[-1, 1]])\n",
+ "Q=np.array([12,6])\n",
+ "R=np.linalg.solve(P,Q)\n",
+ "\n",
+ "# Results (A&B)\n",
+ "\n",
+ "print\"The velocity of ball A after impact on ball B is \",round(C[0]),\"m/s\" # here the ball of mass 2 kg is bought to rest\n",
+ "print\"The velocity of ball B after getting impacted by ball A is \",round(C[1]),\"m/s\"\n",
+ "print\"The final velocity of ball B is \",round(R[0]),\"m/s\" # here the ball of mass 6 kg is bought to rest\n",
+ "print\"The velocity of ball C after getting impacted by ball B is \",round(R[1]),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of ball A after impact on ball B is 0.0 m/s\n",
+ "The velocity of ball B after getting impacted by ball A is 8.0 m/s\n",
+ "The final velocity of ball B is 0.0 m/s\n",
+ "The velocity of ball C after getting impacted by ball B is 6.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-3,Page No:481"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "h_1=9 # m # height of first bounce\n",
+ "h_2=6 # m # height of second bounce\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# From eq'n (5) we have, Coefficient of restitution between the glass and the floor is,\n",
+ "e=(h_2*h_1**-1)**0.5\n",
+ "# From eq'n 3 we get height of drop as,\n",
+ "h=h_1/e**2 # m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The ball was dropped from a height of \",round(h,1),\"m\"\n",
+ "print\"The coefficient of restitution between the glass and the floor is \",round(e,1)\n",
+ "# Here we use h`=h_1 & h``=h_2 because h` & h`` could not be defined in Scilab.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The ball was dropped from a height of 13.5 m\n",
+ "The coefficient of restitution between the glass and the floor is 0.8\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-4,Page No:484"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "e=0.90 # coefficient o restitution\n",
+ "v_a=10 # m/s # velocity of ball A\n",
+ "v_b=15 # m/s # velocity of ball B\n",
+ "alpha_1=30 # degree # angle made by v_a with horizontal\n",
+ "alpha_2=60 # degree # angle made by v_b with horizontal\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The components of initial velocity of ball A:\n",
+ "v_a_x=v_a*cos(alpha_1*(pi/180)) # m/s\n",
+ "v_a_y=v_a*sin(alpha_1*(pi/180)) # m/s\n",
+ "\n",
+ "# The components of initial velocity of ball B:\n",
+ "v_b_x=-v_b*cos(alpha_2*(pi/180)) # m/s\n",
+ "v_b_y=v_b*sin(alpha_2*(pi/180)) # m/s\n",
+ "\n",
+ "# From eq'n 1 & 2 we get,\n",
+ "v_ay=v_a_y # m/s # Here, v_ay=(v'_a)_y\n",
+ "v_by=v_b_y # m/s # Here, v_by=(v'_b)_y\n",
+ "\n",
+ "# On adding eq'n 3 & 4 we get,\n",
+ "v_bx=((v_a_x+v_b_x)+(-e*(v_b_x-v_a_x)))*0.5 # m/s # Here. v_bx=(v'_b)_x\n",
+ "\n",
+ "# On substuting the value of v'_b_x in eq'n 3 we get,\n",
+ "v_ax=(v_a_x+v_b_x)-(v_bx) # m/s # here, v_ax=(v'_a)_x\n",
+ "\n",
+ "# Now the eq'n for resultant velocities of balls A & B after impact are,\n",
+ "v_A=(v_ax**2+v_ay**2)**0.5 # m/s\n",
+ "v_B=(v_bx**2+v_by**2)**0.5 # m/s\n",
+ "\n",
+ "# The direction of the ball after Impact is,\n",
+ "theta_1=arctan(-(v_ay/v_ax))*(180/pi) # degree\n",
+ "theta_2=arctan(v_by/v_bx)*(180/pi) # degree\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity of ball A after impact is \",round(v_A,2),\"m/s\"\n",
+ "print\"The velocity of ball B after impact is \",round(v_B,2),\"m/s\"\n",
+ "print\"The direction of ball A after impact is \",round(theta_1,2),\"degree\"\n",
+ "print\"The direction of ball B after impact is \",round(theta_2,2),\"degree\"\n",
+ "# Her we use, (1) v'_a & v'_b as v_A & v_B.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of ball A after impact is 8.35 m/s\n",
+ "The velocity of ball B after impact is 15.18 m/s\n",
+ "The direction of ball A after impact is 36.77 degree\n",
+ "The direction of ball B after impact is 58.85 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-5,Page No:485"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initiization of variables\n",
+ "theta=30 # degrees # ange made by the ball against the wall\n",
+ "e=0.50\n",
+ "# Calculations\n",
+ "# The notations have been changed\n",
+ "# Resolving the velocity v as,\n",
+ "v_x=cos(theta*(pi/180))\n",
+ "v_y=sin(theta*(pi/180))\n",
+ "V_y=v_y\n",
+ "# from coefficient of restitution reation\n",
+ "V_x=-e*v_x\n",
+ "# Resultant velocity\n",
+ "V=sqrt(V_x**2+V_y**2)\n",
+ "theta=arctan(V_y*(-V_x)**-1)*(180/pi) # taking +ve value for V_x\n",
+ "# NOTE: Here all the terms are multiplied with velocity i.e (v).\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity of the ball is \",round(V,3),\"v\"\n",
+ "print\"The direction of the ball is \",round(theta,1),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of the ball is 0.661 v\n",
+ "The direction of the ball is 49.1 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-6,Page No:488"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "\n",
+ "# Initilization of variables\n",
+ "e=0.8 # coefficient of restitution\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calcuations\n",
+ "\n",
+ "# Squaring eqn's 1 &2 and Solving eqn's 1 & 2 using matrix for the value of h\n",
+ "A=np.array([[-1 ,(2*g)],[-1 ,-(1.28*g)]])\n",
+ "B=np.array([0.945**2,(-0.4*9.81)])\n",
+ "C=np.linalg.solve(A,B) # m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The height from which the ball A should be released is \",round(C[1],3),\"m\"\n",
+ "# The answer given in the book i.e 0.104 is wrong.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The height from which the ball A should be released is 0.15 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-7,Page No:490"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "theta_a=60 # degree # angle made by sphere A with the verticle\n",
+ "e=1 # coefficient of restitution for elastic impact\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# theta_b is given by the eq'n cosd*theta_b=0.875, hence theta_b is,\n",
+ "theta_b=arccos(0.875)*(180/pi) # degree\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The angle through which the sphere B will swing after the impact is \",round(theta_b,2),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The angle through which the sphere B will swing after the impact is 28.96 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-8,Page No:491"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "m_a=0.01 # kg # mass of bullet A\n",
+ "v_a=100 # m/s # velocity of bullet A\n",
+ "m_b=1 # kg # mass of the bob\n",
+ "v_b=0 # m/s # velocity of the bob\n",
+ "l=1 # m # length of the pendulum\n",
+ "v_r=-20 # m/s # velocity at which the bullet rebounds the surface of the bob # here the notation for v'_a is shown by v_r\n",
+ "v_e=20 # m/s # velocity at which the bullet escapes through the surface of the bob # here the notation for v_a is shown by v_e\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Momentum of the bullet & the bob before impact is,\n",
+ "M=(m_a*v_a)+(m_b*v_b) # kg.m/s......(eq'n 1)\n",
+ "\n",
+ "# The common velocity v_c ( we use v_c insted of v' for notation of common velocity) is given by equating eq'n 1 & eq'n 2 as,\n",
+ "\n",
+ "# (a) When the bullet gets embedded into the bob\n",
+ "v_c=M/(m_a+m_b) # m/s\n",
+ "# The height h to which the bob rises is given by eq'n 3 as,\n",
+ "h_1=(0.5)*(v_c**2/g) # m\n",
+ "# The angle (theta_1) by which the bob swings corresponding to the value of height h_1 is,\n",
+ "theta_1=arccos((l-h_1)/l)*(180/pi) # degree\n",
+ "\n",
+ "# (b) When the bullet rebounds from the surface of the bob\n",
+ "# The velocity of the bob after the rebound of the bullet from its surface is given by equating eq'n 1 & eq'n 4 as,\n",
+ "v_bob_rebound=M-(m_a*v_r) # m/s # here v_bob_rebound=v'_b\n",
+ "# The equation for the height which the bob attains after impact is,\n",
+ "h_2=(v_bob_rebound**2)/(2*g) # m\n",
+ "# The corresponding angle of swing \n",
+ "theta_2=arccos((l-h_2)/l)*(180/pi) # degree\n",
+ "\n",
+ "# (c) When the bullet pierces and escapes through the bob\n",
+ "# From eq'n 1 & 5 the velocity attained by the bob after impact is given as,\n",
+ "v_b_escape=M-(m_a*v_e) # m/s # here we use, v_b_escape insted of v'_b\n",
+ "# The equation for the height which the bob attains after impact is,\n",
+ "h_3=(v_b_escape**2)/(2*g) # m\n",
+ "# The corresponding angle of swing \n",
+ "theta_3=arccos((l-h_3)/(l))*(180/pi) # degree\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The maximum angle through which the pendulum swings when the bullet gets embeded into the bob is \",round(theta_1,1),\"degree\"\n",
+ "print\"(b) The maximum angle through which the pendulum swings when the bullet rebounds from the surface of the bob is \",round(theta_2,2),\"degree\"\n",
+ "print\"(c) The maximum angle through which the pendulum swings when the bullet escapes from other end of the bob the bob is \",round(theta_3,1),\"degree\"\n",
+ "# IN THIS SUM WE HAVE USED DIFFERENT NOTATIONS CONSIDERING DIFFERENT CASES BECAUSE IN THE TEXT BOOK WE HAD 3 VARIABLES WITH SAME NOTATION BUT WITH A DIFFERENT VALUE WHICH COULD NOT BE EXECUTED INTO SCILAB.\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The maximum angle through which the pendulum swings when the bullet gets embeded into the bob is 18.2 degree\n",
+ "(b) The maximum angle through which the pendulum swings when the bullet rebounds from the surface of the bob is 22.09 degree\n",
+ "(c) The maximum angle through which the pendulum swings when the bullet escapes from other end of the bob the bob is 14.7 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-9,Page No:493"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W_a=50 # N # falling weight\n",
+ "W_b=50 # N # weight on which W_a falls\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "m_a=W_a/g # kg # mass of W_a\n",
+ "m_b=W_b/g # kg # mass of W_b\n",
+ "k=2*10**3 # N/m # stiffness of spring\n",
+ "h=0.075 # m # height through which W_a falls\n",
+ "\n",
+ "#Calculations\n",
+ "\n",
+ "# The velocity of weight W_a just before the impact and after falling from a height of h is given from the eq'n, ( Principle of conservation of energy)\n",
+ "v_a=(2*g*h)**0.5 # m/s\n",
+ "\n",
+ "# Let the mutual velocity after the impact be v_m (i.e v_m=v'), (by principle of conservation of momentum)\n",
+ "v_m=(m_a*v_a)/(m_a+m_b) # m/s\n",
+ "\n",
+ "# Initial compression of the spring due to weight W_b is given by,\n",
+ "delta_st=(W_b/k)*(10**2) # cm\n",
+ "\n",
+ "# Let the total compression of the spring be delta_t, Then delta_t is found by finding the roots from the eq'n........ delta_t^2-0.1*delta_t-0.000003=0. In this eq'n let,\n",
+ "a=1\n",
+ "b=-0.1\n",
+ "c=-0.000003\n",
+ "delta_t=((-b+((b**2-(4*a*c))**0.5))/2*a)*(10**2) # cm # we consider the -ve value\n",
+ "delta=delta_t-delta_st # cm\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The compression of the spring over and above caused by the static action of weight W_a is \",round(delta),\"cm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The compression of the spring over and above caused by the static action of weight W_a is 10.0 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-10,Page No:494"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "v_a=600 # m/s # velocity of the bullet before impact\n",
+ "v_b=0 # m/s # velocity of the block before impact\n",
+ "w_b=0.25 # N # weight of the bullet\n",
+ "w_wb=50 # N # weight of wodden block\n",
+ "mu=0.5 # coefficient of friction between the floor and the block\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "m_a=w_b/g # kg # mass of the bullet\n",
+ "m_b=w_wb/g # kg # mass of the block\n",
+ "\n",
+ "# Let the common velocity be v_c which is given by eq'n (Principle of conservation of momentum)\n",
+ "v_c=(w_b*v_a)/(w_wb+w_b) # m/s\n",
+ "\n",
+ "# Let the distance through which the block is displaced be s, Then s is given by eq'n\n",
+ "s=v_c**2/(2*g*mu) # m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The distance through which the block is displaced from its initial position is \",round(s,2),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The distance through which the block is displaced from its initial position is 0.91 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.18-11,Page No:495"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "M=750 # kg # mass of hammer\n",
+ "m=200 # kg # mass of the pile\n",
+ "h=1.2 # m # height of fall of the hammer\n",
+ "delta=0.1 # m # distance upto which the pile is driven into the ground\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Caculations\n",
+ "\n",
+ "# The resistance to penetration to the pile is given by eq'n,\n",
+ "R=(((M+m)*g)+((M**2*g*h)/((M+m)*delta)))*(10**-3) # kN \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The resistance to penetration to the pile is \",round(R),\"KN\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The resistance to penetration to the pile is 79.0 KN\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter19.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter19.ipynb
new file mode 100755
index 00000000..ca13c8e8
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter19.ipynb
@@ -0,0 +1,262 @@
+{
+ "metadata": {
+ "name": "chapter19.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 19: Relative Motion"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19.19-1,Page no:503"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "v_t=10 # m/s # velocity of the train\n",
+ "v_s=5 # m/s # velocity of the stone\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Let v_r be the relative velocity, which is given as, (from triangle law)\n",
+ "v_r=(v_t**2+v_s**2)**0.5 # m/s\n",
+ "# The direction ofthe stone is,\n",
+ "theta=arctan(v_s*v_t**-1)*(180/pi) # degree\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity at which the stone appears to hit the person travelling in the train is \",round(v_r,1),\"m\"\n",
+ "print\"The direction of the stone is \",round(theta,2),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity at which the stone appears to hit the person travelling in the train is 11.2 m\n",
+ "The direction of the stone is 26.57 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19.19-2,Page No:504"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "v_A=5 # m/s # speed of ship A\n",
+ "v_B=2.5 # m/s # speed of ship B\n",
+ "theta=135 # degree # angle between the two ships\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Here,\n",
+ "OA=v_A # m/s\n",
+ "OB=v_B # m/s\n",
+ "\n",
+ "# The magnitude of relative velocity is given by cosine law as,\n",
+ "AB=((OA**2)+(OB**2)-(2*OA*OB*cos(theta*(pi/180))))**0.5 # m/s\n",
+ "\n",
+ "# where AB gives the relative velocity of ship B with respect to ship A\n",
+ "# Applying sine law to find the direction, Let alpha be the direction of the reative velocity, then\n",
+ "alpha=arcsin((OB*sin(theta*(pi/180)))/(AB))*(180/pi) # degree\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The magnitude of relative velocity of ship B with respect to ship A is \",round(AB,2),\"m/s\"\n",
+ "print\"The direction of the relative velocity is \",round(alpha,2),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The magnitude of relative velocity of ship B with respect to ship A is 6.99 m/s\n",
+ "The direction of the relative velocity is 14.64 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19.19-3,Page No:505"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import numpy as np\n",
+ "# Initilization of variables\n",
+ "\n",
+ "v_c=20 # km/hr # speed at which the cyclist is riding to west\n",
+ "theta_1=45 # degree # angle made by rain with the cyclist when he rides at 20 km/hr\n",
+ "V_c=12 # km/hr # changed speed\n",
+ "theta_2=30 # degree # changed angle when the cyclist rides at 12 km/hr\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Solving eq'ns 1 & 2 simultaneously to get the values of components(v_R_x & v_R_y) of absolute velocity v_R. We use matrix to solve eqn's 1 & 2.\n",
+ "A=np.array([[1 ,1],[1, 0.577]])\n",
+ "B=np.array([20,12])\n",
+ "C=np.linalg.solve(A,B) # km/hr\n",
+ "\n",
+ "# The X component of relative velocity (v_R_x) is C(1)\n",
+ "# The Y component of relative velocity (v_R_y) is C(2)\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Relative velocity (v_R) is given as,\n",
+ "v_R=((C[0])**2+(C[1])**2)**0.5 # km/hr\n",
+ "# And the direction of absolute velocity of rain is theta, is given as\n",
+ "theta=arctan(C[1]/C[0])*(180/pi) # degree\n",
+ "\n",
+ "# Results \n",
+ "\n",
+ "print\"The magnitude of absolute velocity is \",round(v_R,2),\"km/hr\"\n",
+ "print\"The direction of absolute velocity is \",round(theta,1),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The magnitude of absolute velocity is 18.94 km/hr\n",
+ "The direction of absolute velocity is 86.7 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19.19-4,Page No:508"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initiization of variables\n",
+ "\n",
+ "a=1 # m/s^2 # acceleration of car A\n",
+ "u_B=36*1000*3600**-1 # m/s # velocity of car B\n",
+ "u=0 # m/s # initial velocity of car A\n",
+ "d=32.5 # m # position of car A from north of crossing\n",
+ "t=5 # seconds\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# CAR A: Absolute motion using eq'n v=u+at we have,\n",
+ "v=u+(a*t) # m/s\n",
+ "# Now distance travelled by car A after 5 seconds is given by, s_A=u*t+(1/2)*a*t^2\n",
+ "s_A=(u*t)+((0.5)*a*t**2)\n",
+ "# Now, let the position of car A after 5 seconds be y_A\n",
+ "y_A=d-s_A # m # \n",
+ "\n",
+ "# CAR B:\n",
+ "# let a_B be the acceleration of car B\n",
+ "a_B=0 # m/s\n",
+ "# Now position of car B is s_B\n",
+ "s_B=(u_B*t)+((0.5)*a_B*t**2) # m\n",
+ "x_B=s_B # m\n",
+ "\n",
+ "# Let the Relative position of car A with respect to car B be BA & its direction be theta, then from fig. 19.9(b)\n",
+ "OA=y_A\n",
+ "OB=x_B\n",
+ "BA=(OA**2+OB**2)**0.5 # m\n",
+ "theta=arctan(OA/OB)*(180/pi) # degree\n",
+ "\n",
+ "# Let the relative velocity of car A w.r.t. the car B be v_AB & the angle be phi. Then from fig 19.9(c). Consider small alphabets\n",
+ "oa=v\n",
+ "ob=u_B\n",
+ "v_AB=(oa**2+ob**2)**0.5 # m/s\n",
+ "phi=arctan(oa/ob)*(180/pi) # degree\n",
+ "\n",
+ "# Let the relative acceleration of car A w.r.t. car B be a_A/B.Then,\n",
+ "a_AB=a-a_B # m/s^2\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The relative position of car A relative to car B is \",round(BA,1),\"m\"\n",
+ "print\"The direction of car A w.r.t car B is \",round(theta,1),\"degree\"\n",
+ "print\"The velocity of car A relative to car B is \",round(v_AB,1),\"m/s\"\n",
+ "print\"The direction of car A w.r.t (for relative velocity)is \",round(phi,1),\"degree\"\n",
+ "print\"The acceleration of car A relative to car B is \",round(a_AB,1),\"m/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The relative position of car A relative to car B is 53.9 m\n",
+ "The direction of car A w.r.t car B is 21.8 degree\n",
+ "The velocity of car A relative to car B is 11.2 m/s\n",
+ "The direction of car A w.r.t (for relative velocity)is 26.6 degree\n",
+ "The acceleration of car A relative to car B is 1.0 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter20.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter20.ipynb
new file mode 100755
index 00000000..7b30b675
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter20.ipynb
@@ -0,0 +1,546 @@
+{
+ "metadata": {
+ "name": "chapter20.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 20: Motion Of Projectile"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.20-1,Page No:518"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Initilization of variables\n",
+ "\n",
+ "v_o=500 # m/s # velocity of the projectile\n",
+ "alpha=30 # angle at which the projectile is fired\n",
+ "t=30 # seconds\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "v_x=v_o*cos(alpha*(pi/180)) # m/s # Initial velocity in the horizontal direction\n",
+ "v_y=v_o*sin(alpha*(pi/180)) # m/s # Initial velocity in the vertical direction\n",
+ "\n",
+ "# MOTION IN HORIZONTA DIRECTION:\n",
+ "V_x=v_x # m/s # V_x=Horizontal velocity after 30 seconds\n",
+ "\n",
+ "# MOTION IN VERTICAL DIRECTION: # using the eq'n v=u+a*t\n",
+ "V_y=v_y-(g*t) # m/s # -ve sign denotes downward motion\n",
+ "\n",
+ "# Let the Resultant velocity be v_R. It is given as,\n",
+ "v_R=((V_x)**2+(-V_y)**2)**0.5# m/s\n",
+ "theta=arctan((-V_y)/V_x)*(180/pi) # degree # direction of the projectile\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity of the projectile is \",round(v_R,2),\"m/s\" # The answer of velocity is wrong in the text book.\n",
+ "print\"The direction of the projectile is \",round(theta,2),\"degree\" # -ve value of theta indicates that the direction is in downward direction\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of the projectile is 435.27 m/s\n",
+ "The direction of the projectile is 5.84 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.20-2,Page no:519"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "v_A=10 # m/s # velocity of body A\n",
+ "alpha_A=60 # degree # direction of body A\n",
+ "alpha_B=45 # degree # direction of body B\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# (a) The velocity (v_B) for the same range is given by eq'n;\n",
+ "v_B=((v_A**2*sin(2*alpha_A*(pi/180)))/(sin(2*alpha_B*(pi/180))))**0.5 # m/s\n",
+ "\n",
+ "# (b) Now velocity v_B for the same maximum height is given as,\n",
+ "v_b=((v_A**2)*((sin(alpha_A*(pi/180)))**2/(sin(alpha_B*(pi/180)))**2))**0.5 # m/s\n",
+ "\n",
+ "# (c) Now the velocity (v) for the equal time of flight is;\n",
+ "v=(v_A*sin(alpha_A*(pi/180)))/(sin(alpha_B*(pi/180))) # m/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The velocity of body B for horizontal range is \",round(v_B,1),\"m/s\"\n",
+ "print\"(b) The velocity of body B for the maximum height is \",round(v_b,2),\"m/s\"\n",
+ "print\"(c) The velocity of body B for equal time of flight is \",round(v,2),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The velocity of body B for horizontal range is 9.3 m/s\n",
+ "(b) The velocity of body B for the maximum height is 12.25 m/s\n",
+ "(c) The velocity of body B for equal time of flight is 12.25 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.20-3,Page No:520 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "y=3.6 # m # height of the wall\n",
+ "x_1=4.8 # m # position of the boy w.r.t the wall\n",
+ "x_2=3.6 # m # distance from the wall where the ball hits the ground\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The range of the projectile is r, given as,\n",
+ "r=x_1+x_2 # m\n",
+ "\n",
+ "# Let the angle of the projection be alpha, which is derived and given as,\n",
+ "alpha=arctan((y)/(x_1-(x_1**2/r)))*(180/pi) # degree\n",
+ "\n",
+ "# Now substuting the value of alpha in eq'n 3 we get the least velocity (v_o) as;\n",
+ "v_o=((g*r)/(sin(2*alpha*(pi/180))))**0.5 # m/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The least velocity with which the ball can be thrown is \",round(v_o,2),\"m/s\"\n",
+ "print\"The angle of projection for the same is \",round(alpha,1),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The least velocity with which the ball can be thrown is 9.78 m/s\n",
+ "The angle of projection for the same is 60.3 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.20-5,Page No:523 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "v_o=400 # m/s # initial velocity of each gun\n",
+ "r=5000 # m # range of each of the guns\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "p=180 # degree \n",
+ "pi=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# now from eq'n 1\n",
+ "theta_1=(arcsin(r*g/v_o**2)*(180/pi))/2 # degree # angle at which the 1st gun is fired\n",
+ "\n",
+ "# from eq'n 3\n",
+ "theta_2=(p-2*theta_1)/2 # degree \n",
+ "\n",
+ "# For 1st & 2nd gun, s is\n",
+ "s=r # m\n",
+ "\n",
+ "# For 1st gun \n",
+ "v_x=v_o*cos(theta_1*(pi/180)) # m/s\n",
+ "\n",
+ "# Now the time of flight for 1st gun is t_1, which is given by relation,\n",
+ "t_1=s*(v_x)**-1 # seconds\n",
+ "\n",
+ "# For 2nd gun\n",
+ "V_x=v_o*cos(theta_2*(pi/180))\n",
+ "\n",
+ "# Now the time of flight for 2nd gun is t_2\n",
+ "t_2=s/V_x # seconds\n",
+ "\n",
+ "# Let the time difference between the two hits be delta.T. Then,\n",
+ "T=t_2-t_1 # seconds\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The time difference between the two hits is \",round(T,2),\"seconds\" #answer varies by 0.6 sec due to decimal variance\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The time difference between the two hits is 67.5 seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 99
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.20-6,Page No:524"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "h=2000 # m/ height of the plane\n",
+ "v=540*1000*3600**-1 # m/s # velocity of the plane\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "pi=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Time t required to travel down a height 2000 m is given by eq'n,\n",
+ "u=0 # m/s # initial velocity\n",
+ "t=(2*h/g)**0.5 # seconds\n",
+ "\n",
+ "# Now let s be the horizonta distance travelled by the bomb in time t seconds, then\n",
+ "s= v*t # m\n",
+ "\n",
+ "# angle is given as theta,\n",
+ "theta=arctan(h/s)*(180/pi) # degree\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The pilot should release the bomb from a distance of \",round(s),\"m\" #the answer varies by 1m due to decimal variance\n",
+ "print\"The angle at which the target would appear is \",round(theta,1),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The pilot should release the bomb from a distance of 3029.0 m\n",
+ "The angle at which the target would appear is 33.5 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 70
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.20-7,Page No:525"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "theta=30 # degree # angle at which the bullet is fired\n",
+ "s=-50 # position of target below hill\n",
+ "v=100 # m/s # velocity at which the bullet if fired\n",
+ "g=9.81 # m/s^2 \n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "v_x=v*cos(theta*(pi/180)) # m/s # Initial velocity in horizontal direction\n",
+ "v_y=v*sin(theta*(pi/180)) # m/s # Initial velocity in vertical direction\n",
+ "\n",
+ "# (a) Max height attained by the bullet\n",
+ "h=v_y**2/(2*g) # m\n",
+ "\n",
+ "# (b)Let the vertical Velocity with which the bullet will hit the target be V_y. Then,\n",
+ "V_y=((2*-9.81*s)+(v_y)**2)**0.5 # m/s # the value of V_y is +ve & -ve\n",
+ "\n",
+ "# Let V be the velocity with wich it hits the target\n",
+ "V=((v_x)**2+(V_y)**2)**0.5 # m/s\n",
+ "\n",
+ "# (c) The time required to hit the target\n",
+ "a=g # m/s^2\n",
+ "t=(v_y-(-V_y))/a # seconds\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The maximum height to which the bullet will rise above the soldier is \",round(h,1),\"m\"\n",
+ "print\"(b) The velocity with which the bullet will hit the target is \",round(V,1),\"m/s\"\n",
+ "print\"(c) The time required to hit the target is \",round(t,1),\"seconds\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The maximum height to which the bullet will rise above the soldier is 127.3 m\n",
+ "(b) The velocity with which the bullet will hit the target is 104.8 m/s\n",
+ "(c) The time required to hit the target is 11.1 seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 72
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.20-8,Page No:527"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W=30 # N # Weight of the hammer\n",
+ "theta=30 # degree # ref fig.20.12\n",
+ "mu=0.18 # coefficient of friction\n",
+ "s=10 # m # distance travelled by the hammer # fig 20.12\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The acceleration of the hammer is given as,\n",
+ "a=g*((sin(theta*(pi/180)))-(mu*cos(theta*(pi/180)))) # m/s^2\n",
+ "\n",
+ "# The velocity of the hammer at point B is,\n",
+ "v=(2*a*s)**0.5 # m/s\n",
+ "\n",
+ "# Let the initial velocity of the hammer in horizontal direction be v_x & v_y in vertical direction, Then,\n",
+ "v_x=v*cos(theta*(pi/180)) # m/s\n",
+ "v_y=v*sin(theta*(pi/180)) # m/s\n",
+ "\n",
+ "# MOTION IN VERTICAL DIRECTION\n",
+ "# Now, let time required to travel vertical distance (i.e BB'=S=5 m) is given by finding the roots of the second degree eq'n as,\n",
+ "# From the eq'n 4.9*t^2+4.1*t-5=0,\n",
+ "a=4.9\n",
+ "b=4.1\n",
+ "c=-5\n",
+ "\n",
+ "# The roots of the eq'n are,\n",
+ "t=((-b)+((b**2-(4*a*c))**0.5))/(2*a)\n",
+ "\n",
+ "# MOTION IN HORIZONTAL DIRECTION\n",
+ "# Let the horizotal distance travelled by the hammer in time t be s_x.Then,\n",
+ "s_x=v_x*cos(theta*(pi/180))*t # m\n",
+ "x=1+s_x # m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The distance x where the hammer hits the round is \",round(x,2),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The distance x where the hammer hits the round is 5.16 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 101
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.20-9,Page no:528"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "s=1000 # m # distance OB (ref fig.20.13)\n",
+ "h=19.6 # m # height of shell from ground\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# MOTION OF ENTIRE SHELL FROM O to A.\n",
+ "v_y=(2*(g)*h)**0.5 # m/s # initial velocity of shell in vertical direction\n",
+ "t=v_y/g # seconds # time taken by the entire shell to reach point A\n",
+ "v_x=s/t # m/s # velocity of shell in vertical direction\n",
+ "\n",
+ "# VELOCITIES OF THE TWO PARTS OF THE SHELL AFTER BURSTING AT A:\n",
+ "\n",
+ "# Let v_x2 be the horizontal velocity of 1st & the 2nd part after bursting which is given as,\n",
+ "v_x2=v_x*2 # m/s\n",
+ "\n",
+ "# Now distance BC travelled by part 2 is\n",
+ "BC=v_x2*t # m\n",
+ "\n",
+ "# Distance from firing point OC\n",
+ "OC=s+BC # m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The velocity of shell just before bursting is \",round(v_x),\"m/s\"\n",
+ "print\"(b) The velocity of first part immediately before the shell burst is \",round(v_x),\"m/s\"\n",
+ "print\"(c) The velocity of second part immediately after the shell burst is \",round(v_x2,1),\"m/s\"\n",
+ "print\"(b) The distance between the firing point & the point where the second part of the shell hit the ground is \",round(OC),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The velocity of shell just before bursting is 500.0 m/s\n",
+ "(b) The velocity of first part immediately before the shell burst is 500.0 m/s\n",
+ "(c) The velocity of second part immediately after the shell burst is 1000.5 m/s\n",
+ "(b) The distance between the firing point & the point where the second part of the shell hit the ground is 3000.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 106
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.20-10,Page No:530"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "v_o=200 # m/s # initial velocity\n",
+ "theta=60 # degree # angle of the incline\n",
+ "y=5 # rise of incline\n",
+ "x=12 # length of incline\n",
+ "g=9.81 # m/s^2 # acc due to gravity\n",
+ "\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The angle of the inclined plane with respect to horizontal\n",
+ "beta=arctan(y*x**-1)*(180/pi) # degree\n",
+ "\n",
+ "# The angle of projection with respect to horizontal\n",
+ "alpha=90-theta # degree\n",
+ "\n",
+ "# Range is given by eq'n (ref. fig.20.14)\n",
+ "AB=(2*v_o**2*(sin((alpha-beta)*(pi/180)))*cos(alpha*(pi/180)))/(g*(cos(beta*(pi/180)))**2) # m\n",
+ "\n",
+ "# Range AC when the short is fired down the plane\n",
+ "AC=(2*v_o**2*(sin((alpha+beta)*(pi/180)))*cos(alpha*(pi/180)))/(g*(cos(beta*(pi/180)))**2) # m\n",
+ "BC=AB+AC # m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The range covered (i.e BC) is \",round(BC),\"m\" #due to decimal variancce answer varies by 1m\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The range covered (i.e BC) is 7649.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 138
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter21.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter21.ipynb
new file mode 100755
index 00000000..c58e0b47
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter21.ipynb
@@ -0,0 +1,658 @@
+{
+ "metadata": {
+ "name": "chapter21.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 21: Kinematics Of Rigid Body"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-1,Page No:536"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "N=1800 # r.p.m # Speed of the shaft\n",
+ "t=5 # seconds # time taken to attain the rated speed # case (a)\n",
+ "T=90 # seconds # time taken by the unit to come to rest # case (b)\n",
+ "pi=3.14 # constant\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "omega=(2*pi*N)/(60)\n",
+ "\n",
+ "# (a)\n",
+ "# we take alpha_1,theta_1 & n_1 for case (a)\n",
+ "alpha_1=omega/t # rad/s^2 #\n",
+ "theta_1=(omega**2)/(2*alpha_1) # radian\n",
+ "# Let n_1 be the number of revolutions turned,\n",
+ "n_1=theta_1*(1/(2*pi))\n",
+ "\n",
+ "# (b)\n",
+ "# similarly we take alpha_1,theta_1 & n_1 for case (b)\n",
+ "alpha_2=(omega/T) # rad/s^2 # However here alpha_2 is -ve\n",
+ "theta_2=(omega**2)/(2*alpha_2) # radians\n",
+ "# Let n_2 be the number of revolutions turned,\n",
+ "n_2=theta_2*(1/(2*pi))\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The no of revolutions the unit turns to attain the rated speed is \",round(n_1)\n",
+ "print\"(b) The no of revolutions the unit turns to come to rest is \",round(n_2)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The no of revolutions the unit turns to attain the rated speed is 75.0\n",
+ "(b) The no of revolutions the unit turns to come to rest is 1350.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-2,Page No:540"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "r=1 # m # radius of the cylinder\n",
+ "v_c=20 # m/s # velocity of the cylinder at its centre\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The velocity of point E is given by using the triangle law as,\n",
+ "v_e=(2)**0.5*v_c # m/s \n",
+ "\n",
+ "# Similarly the velocity at point F is given as,\n",
+ "v_f=2*v_c # m/s \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity of point E is \",round(v_e,2),\"m/s\"\n",
+ "print\"The velocity of point F is \",round(v_f),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity of point E is 28.28 m/s\n",
+ "The velocity of point F is 40.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-3,Page No:541"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of Variables\n",
+ "\n",
+ "v_1=3 # m/s # uniform speed of the belt at top\n",
+ "v_2=2 # m/s # uniform speed of the belt at the bottom\n",
+ "r=0.4 # m # radius of the roller\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# equating eq'ns 2 & 4 and solving for v_c & theta' (angular velocity). We use matrix to solve the eqn's\n",
+ "A=[1 r;1 -r]\n",
+ "B=[v_1;v_2]\n",
+ "C=inv(A)*B\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The linear velocity (v_c) at point C is \",round(C(1)),\"m/s\"\n",
+ "print\"The angular velocity at point C is \" round(C(2)),\"radian/second\"\n",
+ "# NOTE: The answer of angular velocity is incorrect in the book\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "ename": "SyntaxError",
+ "evalue": "invalid syntax (<ipython-input-4-f6df08d07dba>, line 12)",
+ "output_type": "pyerr",
+ "traceback": [
+ "\u001b[1;36m File \u001b[1;32m\"<ipython-input-4-f6df08d07dba>\"\u001b[1;36m, line \u001b[1;32m12\u001b[0m\n\u001b[1;33m A=[1 r;1 -r]\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-4,Page No:542"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of Variables\n",
+ "\n",
+ "l=1 # m # length of bar AB\n",
+ "v_a=5 # m/s # velocity of A\n",
+ "theta=30 # degree # angle made by the bar with the horizontal\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# From the vector diagram linear velocity of end B is given as,\n",
+ "v_b=v_a/tan(theta*(pi/180)) # m/s \n",
+ "\n",
+ "# Now let the relative velocity be v_ba which is given as,\n",
+ "v_ba=v_a/sin(theta*(pi/180)) # m/s\n",
+ "\n",
+ "# Now let the angular velocity of the bar be theta_a which is given as,\n",
+ "theta_a=(v_ba)/l # radian/second\n",
+ "\n",
+ "# Velocity of point A\n",
+ "v_a=(0.5)*theta_a # m/s\n",
+ "\n",
+ "# Magnitude of velocity at point C is,\n",
+ "v_c=v_a # m/s # from the vector diagram\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The angular velocity of the bar is \",round(theta_a),\"radian/second\"\n",
+ "print\"(b) The velocity of end B is \",round(v_b,2),\"m/s\"\n",
+ "print\"(c) The velocity of mid point C is \",round(v_c),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The angular velocity of the bar is 10.0 radian/second\n",
+ "(b) The velocity of end B is 8.67 m/s\n",
+ "(c) The velocity of mid point C is 5.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-5,Page No:544"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of Variables\n",
+ "\n",
+ "r=0.12 # m # length of the crank\n",
+ "l=0.6 # m # length of the connecting rod\n",
+ "N=300 # r.p.m # angular velocity of the crank\n",
+ "theta=30 # degree # angle made by the crank with the horizontal\n",
+ "pi=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Now let the angle between the connecting rod and the horizontal rod be phi\n",
+ "phi=arcsin(r*sin(theta*(pi/180))/(l))*(180/pi) # degree\n",
+ "\n",
+ "# Now let the angular velocity of crank OA be omega_oa, which is given by eq'n\n",
+ "omega_oa=(2*pi*N)/(60) # radian/second\n",
+ "\n",
+ "# Linear velocity at A is given as,\n",
+ "v_a=r*omega_oa # m/s\n",
+ "\n",
+ "# Now using the sine rule linear velocity at B can be given as,\n",
+ "v_b=v_a*sin(35.7*(pi/180))/sin(84.3*(pi/180)) # m/s\n",
+ "\n",
+ "# Similarly the relative velocity (assume v_ba) is given as,\n",
+ "v_ba=v_a*sin(60*(pi/180))/sin(84.3*(pi/180))\n",
+ "\n",
+ "# Angular velocity (omega_ab) is given as,\n",
+ "omega_ab=v_ba/l # radian/second\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The angular velocity of the connecting rod is \",round(omega_ab,2),\"radian/second\"\n",
+ "print\"(b) The velocity of the piston when the crank makes an angle of 30 degree is \",round(v_b,2),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The angular velocity of the connecting rod is 5.46 radian/second\n",
+ "(b) The velocity of the piston when the crank makes an angle of 30 degree is 2.21 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-6,Page No:548"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initiization of variables\n",
+ "\n",
+ "r=1 # m # radius of the cylinder\n",
+ "v_c=20 # m/s # velocity at the centre\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Angular velocity is given as,\n",
+ "omega=v_c/r # radian/second\n",
+ "\n",
+ "# Velocity at point D is\n",
+ "v_d=omega*(2)**0.5*r # m/s # from eq'n 1\n",
+ "\n",
+ "# Now, the velocity at point E is,\n",
+ "v_e=omega*2*r # m/s \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity at point D is \",round(v_d,2),\"m/s\"\n",
+ "print\"The velocity at point E is \",round(v_e),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity at point D is 28.28 m/s\n",
+ "The velocity at point E is 40.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-7,Page No:548"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of Variables\n",
+ "\n",
+ "r=5 # cm # radius of the roller\n",
+ "AB=0.1 # m\n",
+ "v_a=3 # m/s # velocity at A\n",
+ "v_b=2 # m/s # velocity at B\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Solving eqn's 1 & 2 using matrix for IA & IB we get,\n",
+ "A=[-2 3;1 1]\n",
+ "B=[0;AB]\n",
+ "C=inv(A)*B\n",
+ "d1=C(2)*10**2 # cm # assume d1 for case 1\n",
+ "\n",
+ "# Similary solving eqn's 3 & 4 again for IA & IB we get,\n",
+ "P=[-v_b v_a;1 -1]\n",
+ "Q=[0;AB]\n",
+ "R=inv(P)*Q\n",
+ "d2=R(2)*10**2 # cm # assume d2 for case 2\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The distance d when the bars move in the opposite directions are \",round(d1),\"cm\"\n",
+ "print\"The distance d when the bars move in the same directions are \",round(d2),\"cm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "ename": "SyntaxError",
+ "evalue": "invalid syntax (<ipython-input-21-6e389b1a0870>, line 13)",
+ "output_type": "pyerr",
+ "traceback": [
+ "\u001b[1;36m File \u001b[1;32m\"<ipython-input-21-6e389b1a0870>\"\u001b[1;36m, line \u001b[1;32m13\u001b[0m\n\u001b[1;33m A=[-2 3;1 1]\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-8,Page No:550"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of Variables\n",
+ "\n",
+ "v_c=1 # m/s # velocity t the centre\n",
+ "r1=0.1 # m \n",
+ "r2=0.20 # m\n",
+ "EB=0.1 # m\n",
+ "EA=0.3 # m\n",
+ "ED=(r1**2+r2**2)**0.5 # m\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# angular velocity is given as,\n",
+ "omega=v_c/r1 # radian/seconds\n",
+ "\n",
+ "# Velocit at point B\n",
+ "v_b=omega*EB # m/s \n",
+ "\n",
+ "# Velocity at point A\n",
+ "v_a=omega*EA # m/s\n",
+ "\n",
+ "# Velocity at point D\n",
+ "v_d=omega*ED # m/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity at point A is \",round(v_a),\"m/s\"\n",
+ "print\"The velocity at point B is \",round(v_b),\"m/s\"\n",
+ "print\"The velocity at point D is \",round(v_d,2),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity at point A is 3.0 m/s\n",
+ "The velocity at point B is 1.0 m/s\n",
+ "The velocity at point D is 2.24 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-9,Page No:551"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "l=1 # m # length of bar AB\n",
+ "v_a=5 # m/s # velocity at A\n",
+ "theta=30 # degree # angle made by the bar with the horizontal\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "IA=l*sin(theta*(pi/180)) # m\n",
+ "IB=l*cos(theta*(pi/180)) # m\n",
+ "IC=0.5 # m # from triangle IAC\n",
+ "\n",
+ "# Angular veocity is given as,\n",
+ "omega=v_a/(IA) # radian/second\n",
+ "v_b=omega*IB # m/s\n",
+ "v_c=omega*IC # m/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity at point B is \",round(v_b,2),\"m/s\"\n",
+ "print\"The velocity at point C is \",round(v_c),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity at point B is 8.67 m/s\n",
+ "The velocity at point C is 5.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-11,Page No:552"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "v_a=2 # m/s # velocity at end A\n",
+ "r=0.05 # m # radius of the disc\n",
+ "alpha=30 # degree # angle made by the bar with the horizontal\n",
+ "\n",
+ "# Calculations \n",
+ "\n",
+ "# Soving eqn's 1 & 2 and substuting eqn 1 in it we get eq'n for omega as,\n",
+ "omega=(v_a*(sin(alpha*(pi/180)))**2)/(r*cos(alpha*(pi/180))) # radian/second\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The anguar veocity of the bar is \",round(omega,2),\"radian/second\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The anguar veocity of the bar is 11.53 radian/second\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-12,Page No:553"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "l=0.6 # m \n",
+ "r=0.12 # m \n",
+ "theta=30 # degree # angle made by OA with the horizontal\n",
+ "phi=5.7 # degree # from EX 21.5\n",
+ "N=300\n",
+ "pi=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Let the angular velocity of the connecting rod be (omega_ab) which is given from eqn's 1 & 4 as,\n",
+ "omega_oa=(2*pi*N)/(60) # radian/ second\n",
+ "\n",
+ "# Now,in triangle IBO.\n",
+ "IB=(l*cos(phi*(pi/180))*tan(theta*(pi/180)))+(r*sin(theta*(pi/180))) # m\n",
+ "IA=(l*cos(phi*(pi/180)))/(cos(theta*(pi/180))) # m\n",
+ "\n",
+ "# from eq'n 5\n",
+ "v_b=(r*omega_oa*IB)/(IA) # m/s\n",
+ "\n",
+ "# From eq'n 6\n",
+ "omega_ab=(r*omega_oa)/(IA) # radian/second\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The velocity at B is \",round(v_b,2),\"m/s\"\n",
+ "print\"The angular velocity of the connecting rod is \",round(omega_ab,2),\"radian/second\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The velocity at B is 2.21 m/s\n",
+ "The angular velocity of the connecting rod is 5.47 radian/second\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.21-13,Page No:555"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "omega_ab=5 # rad/s # angular veocity of the bar\n",
+ "AB=0.20 # m\n",
+ "BC=0.15 # m\n",
+ "CD=0.3 # m\n",
+ "theta=30 # degree # where theta= angle made by AB with the horizontal\n",
+ "alpha=60 # degree # where alpha=angle made by CD with the horizontal\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Consider triangle BIC\n",
+ "IB=sin(alpha*(pi/180))*BC*1 # m\n",
+ "IC=sin(theta*(pi/180))*BC*1 # m\n",
+ "v_b=omega_ab*AB # m/s\n",
+ "\n",
+ "# let the angular velocity of the bar BC be omega_bc\n",
+ "omega_bc=v_b/IB # radian/second\n",
+ "v_c=omega_bc*IC # m/s\n",
+ "\n",
+ "# let the angular velocity of bar DC be omega_dc\n",
+ "omega_dc=v_c/CD # radian/second\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The angular velocity of bar BC is \",round(omega_bc,3),\"rad/s\"\n",
+ "print\"The angular velocity of bar CD is \",round(omega_dc,2),\"rad/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The angular velocity of bar BC is 7.7 rad/s\n",
+ "The angular velocity of bar CD is 1.92 rad/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter22.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter22.ipynb
new file mode 100755
index 00000000..c5908132
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter22.ipynb
@@ -0,0 +1,282 @@
+{
+ "metadata": {
+ "name": "chapter22.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 22: Kinetics Of Rigid Body:Force And Acceleration"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22.22-1,Page No:562"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "N=1500 # r.p.m\n",
+ "r=0.5 # m # radius of the disc\n",
+ "m=300 # N # weight of the disc\n",
+ "t=120 # seconds # time in which the disc comes to rest\n",
+ "omega=0 \n",
+ "pi=3.14 \n",
+ "g=9.81 # m/s^2\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "omega_0=(2*pi*N)*0.01666 # rad/s #1/60=0.01666\n",
+ "\n",
+ "# angular deceleration is given as,\n",
+ "alpha=-(omega_0/t) # radian/second^2\n",
+ "theta=(omega_0**2)/(2*(-alpha)) # radian\n",
+ "\n",
+ "# Let n be the no of revolutions taken by the disc before it comes to rest, then\n",
+ "n=theta/(2*pi)\n",
+ "\n",
+ "# Now,\n",
+ "I_G=((0.5)*m*r**2)/g\n",
+ "\n",
+ "# The frictional torque is given as,\n",
+ "M=I_G*alpha # N-m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The no of revolutions executed by the disc before coming to rest is \",round(n,2)\n",
+ "print\"(b) The frictional torque is \",round(M),\"N-m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The no of revolutions executed by the disc before coming to rest is 1499.4\n",
+ "(b) The frictional torque is -5.0 N-m\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22.22-2,Page No:563"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "s=1 # m\n",
+ "mu=0.192 # coefficient of static friction\n",
+ "g=9.81 # m/s^2\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The maximum angle of the inclined plane is given as,\n",
+ "theta=arctan(3*mu)*(180/pi) # degree\n",
+ "a=(2/3)*g*sin(theta*(pi/180)) # m/s^2 # by solving eq'n 4\n",
+ "v=(2*a*s)**0.5 # m/s\n",
+ "\n",
+ "# Let the acceleration at the centre be A which is given as,\n",
+ "A=g*sin(theta*(pi/180)) # m/s^2 # from eq'n 1\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The acceleration at the centre is \",round(A,3),\"m/s^2\"\n",
+ "print\"(b) The maximum angle of the inclined plane is \",round(theta),\"degree\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The acceleration at the centre is 4.896 m/s^2\n",
+ "(b) The maximum angle of the inclined plane is 30.0 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22.22-5,Page No:568"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "W_a=25 # N \n",
+ "W_b=25 # N \n",
+ "W=200 # N # weight of the pulley\n",
+ "i_g=0.2 # m # radius of gyration\n",
+ "g=9.81 # m/s^2\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Solving eqn's 1 & 2 for acceleration of weight A (assume a)\n",
+ "a=(0.15*W_a*g)/(((W*i_g**2)/(0.45))+(0.45*W_a)+((0.6*W_b)/(3))) # m/s^2\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The acceleration of weight A is \",round(a,2),\"m/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The acceleration of weight A is 1.08 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22.22-8,Page No:571"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "r_1=0.075 # m\n",
+ "r_2=0.15 # m\n",
+ "P=50 # N\n",
+ "W=100 # N\n",
+ "i_g=0.05 # m\n",
+ "theta=30 # degree\n",
+ "g=9.81 # m/s^2\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The eq'n for acceleration of the pool is given by solving eqn's 1,2 &3 as,\n",
+ "a=(50*g*(r_2*cos(theta*(pi/180))-r_1))/(100*((i_g**2/r_2)+r_2)) # m/s^2\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The acceleration of the pool is \",round(a,2),\"m/s^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The acceleration of the pool is 1.62 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 22.22-10,Page No:574"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "L=1 # m # length of rod AB\n",
+ "m=10 # kg # mass of the rod\n",
+ "g=9.81 \n",
+ "theta=30 # degree\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# solving eq'n 4 for omega we get,\n",
+ "omega=(2*16.82*sin(theta*(pi/180)))**0.5 # rad/s\n",
+ "\n",
+ "# Now solving eq'ns 1 &3 for alpha we get,\n",
+ "alpha=(1.714)*g*cos(theta*(pi/180)) # rad/s\n",
+ "\n",
+ "# Components of reaction are given as,\n",
+ "R_t=((m*g*cos(theta*(pi/180)))-((m*alpha*L)/4)) # N\n",
+ "R_n=((m*omega**2*L)/4)+(m*g*sin(theta*(pi/180))) # N\n",
+ "R=(R_t**2+R_n**2)**0.5 # N \n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The angular velocity of the rod is \",round(omega,2),\"rad/sec\"\n",
+ "print\"(b) The reaction at the hinge is \",round(R,1),\"N\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The angular velocity of the rod is 4.1 rad/sec\n",
+ "(b) The reaction at the hinge is 103.2 N\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter23.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter23.ipynb
new file mode 100755
index 00000000..e2d06a9e
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter23.ipynb
@@ -0,0 +1,74 @@
+{
+ "metadata": {
+ "name": "chapter23.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 23: Kinetics Of Rigid Body:Work And Energy"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23.23-2,Page No:586"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m=600 # kg # mass of the roller\n",
+ "r=0.25 # m # radius of the roller\n",
+ "P=850 # N # Force\n",
+ "v=3 # m/s # velocity to be acquired\n",
+ "theta=30 # degree # angle made by v with the force P\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The distance required to be rolled is given by equating the Work done between positions 1 & 2 as,\n",
+ "x=((0.75)*m*v**2)/(P*cos(theta*(pi/180))) # m\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The distance required to be rolled is \",round(x,1),\"m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The distance required to be rolled is 5.5 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter24.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter24.ipynb
new file mode 100755
index 00000000..9fcc267a
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter24.ipynb
@@ -0,0 +1,349 @@
+{
+ "metadata": {
+ "name": "chapter24.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 24: Mechanical Vibrations"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24.24-1,Page No:596"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "f=0.1666666 # oscillations/second\n",
+ "x=8 # cm # distance from the mean position\n",
+ "pi=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "omega=2*pi*f\n",
+ "\n",
+ "# Amplitude is given by eq'n \n",
+ "r=sqrt((25*x**2)/16) # cm\n",
+ "\n",
+ "# Maximum acceleration is given as,\n",
+ "a_max=(pi/3)**2*10 # cm/s^2\n",
+ "\n",
+ "# Velocity when it is at a dist of 5 cm (assume s=5 cm) is given by\n",
+ "s=5 # cm\n",
+ "v=omega*(r**2-s**2)**0.5 # cm/s\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The amplitude of oscillation is \",round(r,2),\"cm\"\n",
+ "print\"(b) The maximum acceleration is \",round(a_max,2),\"cm/s^2\"\n",
+ "print\"(c) The velocity of the particle at 5 cm from mean position is \",round(v,2),\"cm/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The amplitude of oscillation is 10.0 cm\n",
+ "(b) The maximum acceleration is 10.96 cm/s^2\n",
+ "(c) The velocity of the particle at 5 cm from mean position is 9.06 cm/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24.24-2,Page No:597"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "x_1=0.1 # m # assume the distance of the particle from mean position as (x_1 & x_2)\n",
+ "x_2=0.2# m \n",
+ "\n",
+ "# assume velocities as v_1 & v_2\n",
+ "\n",
+ "v_1=1.2 # m/s\n",
+ "v_2=0.8 # m/s\n",
+ "pi=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# The amplitude of oscillations is given by dividing eq'n 1 by 2 as,\n",
+ "r=(0.064)**0.5 # m\n",
+ "omega=v_1*((r**2-x_1**2)**0.5) # radians/second\n",
+ "t=(2*pi)/omega # seconds\n",
+ "v_max=r*omega # m/s\n",
+ "\n",
+ "# let the max acceleration be a which is given as,\n",
+ "a=r*omega**2 # m/s^2\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The amplitude of oscillations is \",round(r,3),\"m\"\n",
+ "print\"(b) The time period of oscillations is \",round(t,2),\"seconds\"\n",
+ "print\"(c) The maximum velocity is \",round(v_max,2),\"m/s\"\n",
+ "print\"(d) The maximum acceleration is \",round(a,2),\"m/s^2\"\n",
+ "# NOTE: the value of t is incorrect in the text book\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The amplitude of oscillations is 0.253 m\n",
+ "(b) The time period of oscillations is 1.22 seconds\n",
+ "(c) The maximum velocity is 1.31 m/s\n",
+ "(d) The maximum acceleration is 6.75 m/s^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exammple 24.24-5,Page No:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variabes\n",
+ "\n",
+ "W=50 # N # weight\n",
+ "x_0=0.075 # m # amplitude\n",
+ "f=1 # oscillation/sec # frequency\n",
+ "pi=3.14\n",
+ "g=9.81 \n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "omega=2*pi*f\n",
+ "K=(((2*pi)**2*W)/g)*(10**-2) # N/cm\n",
+ "\n",
+ "# let the total extension of the string be delta which is given as,\n",
+ "delta=(W/K)+(x_0*10**2) # cm\n",
+ "T=K*delta # N # Max Tension\n",
+ "v=omega*x_0 #m/s # max velocity\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"(a) The stiffness of the spring is \",round(K,2),\"N/cm\"\n",
+ "print\"(b) The maximum Tension in the spring is \",round(T,2),\"N\"\n",
+ "print\"(c) The maximum velocity is \",round(v,2),\"m/s\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The stiffness of the spring is 2.01 N/cm\n",
+ "(b) The maximum Tension in the spring is 65.08 N\n",
+ "(c) The maximum velocity is 0.47 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24.24-10,Page No:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "l=1 # m # length of the simple pendulum\n",
+ "g=9.81 # m/s^2\n",
+ "pi=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Let t_s be the time period when the elevator is stationary\n",
+ "t_s=2*pi*(l/g)**0.5 #/ seconds\n",
+ "\n",
+ "# Let t_u be the time period when the elevator moves upwards. Then from eqn 1\n",
+ "t_u=2*pi*((l)/(g+(g/10)))**0.5 # seconds\n",
+ "\n",
+ "# Let t_d be the time period when the elevator moves downwards.\n",
+ "t_d=2*pi*(l/(g-(g/10)))**0.5 # seconds\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The time period of oscillation of the pendulum for upward acc of the elevator is \",round(t_u,2),\"seconds\"\n",
+ "print\"The time period of oscillation of the pendulum for downward acc of the elevator is \",round(t_d,2),\"seconds\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The time period of oscillation of the pendulum for upward acc of the elevator is 1.91 seconds\n",
+ "The time period of oscillation of the pendulum for downward acc of the elevator is 2.11 seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24.24-11,Page No:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "t=1 # second # time period of the simple pendulum\n",
+ "g=9.81 # m/s^2\n",
+ "pi=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# Length of pendulum is given as,\n",
+ "l=(t/(2*pi)**2)*g # m\n",
+ "\n",
+ "# Let t_u be the time period when the elevator moves upwards. Then the time period is given as,\n",
+ "t_u=2*pi*((l)/(g+(g/10)))**0.5 # seconds\n",
+ "\n",
+ "# Let t_d be the time period when the elevator moves downwards.\n",
+ "t_d=2*pi*(l/(g-(g/10)))**0.5 # seconds\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The time period of oscillation of the pendulum for upward acc of the elevator is \",round(t_u,2),\"seconds\"\n",
+ "print\"The time period of oscillation of the pendulum for downward acc of the elevator is \",round(t_d,2),\"seconds\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The time period of oscillation of the pendulum for upward acc of the elevator is 0.95 seconds\n",
+ "The time period of oscillation of the pendulum for downward acc of the elevator is 1.05 seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24.24-12,Page No:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "m=15 # kg # mass of the disc\n",
+ "D=0.3 # m # diameter of the disc\n",
+ "R=0.15 # m # radius\n",
+ "l=1 # m # length of the shaft\n",
+ "d=0.01 # m # diameter of the shaft\n",
+ "G=30*10**9 # N-m^2 # modulus of rigidity\n",
+ "pi=3.14\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# M.I of the disc about the axis of rotation is given as,\n",
+ "I=(m*R**2)*0.5 # kg-m^2\n",
+ "\n",
+ "# Stiffness of the shaft\n",
+ "k_t=(pi*d**4*G)/(32*l) # N-m/radian\n",
+ "t=2*pi*(I/k_t)**0.5 # seconds\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The time period of oscillations of the disc is \",round(t,2),\"seconds\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The time period of oscillations of the disc is 0.48 seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": [],
+ "prompt_number": 24
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Engineering_Mechanics_by_Tayal_A.K./chapter25.ipynb b/Engineering_Mechanics_by_Tayal_A.K./chapter25.ipynb
new file mode 100755
index 00000000..c424f5bc
--- /dev/null
+++ b/Engineering_Mechanics_by_Tayal_A.K./chapter25.ipynb
@@ -0,0 +1,217 @@
+{
+ "metadata": {
+ "name": "chapter25.ipynb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 25 :Shear Force And Bending Moment"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 25.25-5,Page No:628"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import matplotlib.pyplot as plt\n",
+ "%matplotlib inline\n",
+ "\n",
+ "# Initilization of variables\n",
+ "L_AB=3 # m # length of the beam\n",
+ "L_AC=1 # m\n",
+ "L_BC=2 # m\n",
+ "M_C=12 # kNm # clockwise moment at C\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# REACTIONS\n",
+ "R_B=M_C/L_AB # kN # moment at A\n",
+ "R_A=-M_C/L_AB # kN # moment at B\n",
+ "\n",
+ "# S.F\n",
+ "F_A=R_A # kN \n",
+ "F_B=R_A # kN\n",
+ "\n",
+ "# B.M\n",
+ "M_A=0 # kNm\n",
+ "M_C1=R_A*L_AC # kNm # M_C1 is the BM just before C\n",
+ "M_C2=(R_A*L_AC)+M_C # kNm # M_C2 is the BM just after C\n",
+ "M_B=0 # kNm\n",
+ "\n",
+ "# Plotting SFD & BMD\n",
+ "x=[0, 0.99, 1, 3]\n",
+ "y=[-4, -4, -4, -4]\n",
+ "a=[0, 0.99, 1, 3]\n",
+ "b=[0, -4, 8, 0]\n",
+ "g=[0,0,0,0]\n",
+ "d=transpose(x)\n",
+ "e=transpose(b)\n",
+ "plt.plot(d,y)\n",
+ "plt.show()\n",
+ "plt.plot(a,e,a,g)\n",
+ "plt.show()\n",
+ "\n",
+ "# Results\n",
+ "print \"The graphs are the solutions\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAD7CAYAAABt0P8jAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAD35JREFUeJzt3X1MlfX/x/HXQZiFd0lOWoDg0FIEDpSLrc11jIiE4dyy\nedMNS9fNH601+ydzztxS1I0x8642FyvbzK3VTpvFpOYpV2OUKZM0dU3mAYRmzKZpgXr9/vh9O9/4\nHsBzznU6dHg/H9vZuM71gevz2ef7fXK84oDHcRxHAAAzUkZ7AgCAxCL8AGAM4QcAYwg/ABhD+AHA\nGMIPAMakjvYE/lJSUqK2trbRngYAJBWv16vjx49H9Tn/mlf8bW1tchxnzD42bNgw6nNgbayP9Y29\nRywvmP814QcAJAbhBwBjCH+C+Hy+0Z7CP2Ysr01ifclurK8vFh7Hcf4Vv6vH4/HoXzIVAEgasbST\nV/wAYAzhBwBjCD8AGEP4AcAYwg8AxhB+ADCG8AOAMYQfAIwh/ABgDOEHAGMIPwAYQ/gBwBjCDwDG\nEH4A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72ZMtn3cKT1JfMepqSk6Pjx4/rtt99U\nWVmpQCAgn883aEw0e5ewV/xZWVkKBoOh42AwqOzs7BHHdHZ2KisrK1FTdCWS9U2aNCn0T7ZFixZp\nYGBgyN9qmoySee8iMRb2bmBgQI8//rieeuopLVmyJOx8su/hrdY3FvZwypQpqq6u1vfffz/o+Wj3\nLmHhnz9/vs6ePauOjg719/frwIEDWrx48aAxixcv1vvvvy9Jamlp0R133KHMzMxETdGVSNbX29sb\n+q7c2toqx3HC7tUlq2Teu0gk+945jqPVq1eroKBAr7zyypBjknkPI1lfsu7hxYsXdenSJUnStWvX\n1NzcrNLS0kFjot27hN3qSU1N1c6dO1VZWakbN25o9erVmjt3rt555x1J0gsvvKCqqip99tlnmjVr\nliZMmKDGxsZETc+1SNb30Ucfac+ePUpNTVV6ero+/PDDUZ515FasWKGvvvpKFy9eVE5OjjZu3KiB\ngQFJyb930q3Xl8x7J/33zZTFxcWhaGzevFnnz5+XlPx7GMn6knUPL1y4oNraWt28eVM3b97U008/\nrfLyclft5A1cAGAMf3oRAIwh/ABgDOEHAGMIPwAYQ/gBwBjCDwDGEH4AMIbwA4Ax/wcUEWvPZAe1\nRQAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5b828b0>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAXUAAAEACAYAAABMEua6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGZlJREFUeJzt3XtwFfX9xvHnQPACsaC0gCZQLYEmARIC2LSKelACBRUp\n4IiIZgStjoBVGbF2eoHfFCheqjBexlGLpXhB6FSqUCpaDkVsjEAECkwFNG24CMNYEARMSPb3xzaR\nwB5ykt1zdr973q8ZZiDZnPPdWfbh4ZPNbsSyLEsAgFBo5fcCAADeIdQBIEQIdQAIEUIdAEKEUAeA\nECHUASBEXIf67Nmz1atXL/Xp00fjxo3TV1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yxXhJiEAAAAASUVORK5CYII=\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5c897b0>"
+ ]
+ },
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The graphs are the solutions\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 25.25-7,Page No:631"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "import matplotlib.pyplot as plt\n",
+ "%matplotlib inline\n",
+ "import numpy as np\n",
+ "\n",
+ "# Initilization of variables\n",
+ "\n",
+ "L_AD=8 # m # length of the beam\n",
+ "L_AB=2 # m \n",
+ "L_BC=4 # m\n",
+ "L_CD=2 # m\n",
+ "UDL=1 # kN/m\n",
+ "P=2 # kN # point load at A\n",
+ "\n",
+ "# Calculations\n",
+ "\n",
+ "# REACTIONS\n",
+ "\n",
+ "# solving eqn's 1&2 using matrix to get R_B & R_C as,\n",
+ "\n",
+ "A=np.array([[1, 1],[ 1, 3]])\n",
+ "B=np.array([8,15])\n",
+ "C=np.linalg.solve(A,B)\n",
+ "\n",
+ "# SHEAR FORCE\n",
+ "\n",
+ "# the term F with suffixes 1 & 2 indicates SF just to left and right \n",
+ "F_A=-P # kN\n",
+ "F_B1=-P # kN\n",
+ "F_B2=-P+C[0] # kN\n",
+ "F_C1=-P+C[0]-(UDL*L_BC) # kN\n",
+ "F_C2=-P+C[0]-(UDL*L_BC)+C[1] # kN\n",
+ "F_D=0\n",
+ "\n",
+ "# BENDING MOMENT\n",
+ "\n",
+ "# the term F with suffixes 1 & 2 indicates BM just to left and right\n",
+ "M_A=0 # kNm\n",
+ "M_B=(-P*L_CD) # kNm\n",
+ "M_C=(-P*(L_AB+L_BC))+(C[0]*L_BC)-(UDL*L_BC*(L_BC/2)) # kNm\n",
+ "M_D=0 # kNm\n",
+ "\n",
+ "# LOCATION OF MAXIMUM BM\n",
+ "\n",
+ "# Max BM occurs at E at a distance of 2.5 m from B i.e x=L_AE=4.5 m from free end A. Thus max BM is given by taking moment at B\n",
+ "L_AE=4.5 # m # given\n",
+ "M_E=(-2*L_AE)+(4.5*(L_AE-2))-((1/2)*(L_AE-2)**2) # kNm\n",
+ "\n",
+ "#Plotting\n",
+ "x_p=linspace(2,6,40)\n",
+ "M_p=-2*+4.5*(x_p-2)-((x_p-2)**2)*0.5\n",
+ "\n",
+ "# PLOTTING SFD & BMD\n",
+ "x=[0,1.99,2,4.5,5.99,6,8]\n",
+ "y=[-2,-2,2.5,0,-1.5,2,0]\n",
+ "z=[0,0,0,0,0,0,0]\n",
+ "a=[0,2,4.5,6,8]\n",
+ "b=[0,-4,-0.875,-2,0]\n",
+ "g=[0,0,0,0,0]\n",
+ "d=transpose(x)\n",
+ "plt.plot(d,y,x,z)\n",
+ "plt.show()\n",
+ "e=transpose(b)\n",
+ "plt.plot(a,e,a,g)\n",
+ "plt.show()\n",
+ "\n",
+ "\n",
+ "# Results\n",
+ "\n",
+ "print\"The graphs are the solutions\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAEACAYAAAC9Gb03AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XtYVWW+B/DvUrAJSZQyVKDBuMhFBIzETHOTIpNcQsML\nZpqXxvGSx3I6XY6nYCZRp0xtdHzS8lYdtGxUbJRutr1GPCU1U1iiSXJRGm0w8RKC6/zxBinXzd57\n7Xfttb+f59kPt7X3+olr/fjt33rX+yqqqqogIiLD6iA7ACIi0hYTPRGRwTHRExEZHBM9EZHBMdET\nERkcEz0RkcHZlOhLS0sRHx+PiIgI9O3bFy+//HKTbcxmM7y8vBATE4OYmBg8//zztuySiIjayc2W\nJ7u7u2PZsmWIjo5GdXU17rjjDiQkJCAsLOy67YYOHY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nxe9e/dGRkYG9uzZg0mTJskOq0U9e/YEAHTv3h2jRo1CQUGB5Iiu5+fnBz8/P9x5550AgPT0\ndBw+fFhyVC3bvXs37rjjDnTv3l12KM367LPPMGjQINx8881wc3PD6NGjcejQoRa3l5roY2NjUVxc\njJKSEtTU1GDLli1ITU2VGZJTU1UV06ZNQ3h4OObNmyc7nBadOXMGVVVVAIBLly7hgw8+QExMjOSo\nrpednY3S0lKcOHECmzdvxr333otNmzbJDqtZFy9exPnz5wEAFy5cwPvvv6+7EWI9evSAv78/jh49\nCkD0vyMiIiRH1bKcnBxkZGTIDqNFoaGhyM/Px6VLl6CqKj788MPW258OuEDcql27dqkhISFqYGCg\nmp2dLTucZo0fP17t2bOn2qlTJ9XPz09dt26d7JCatX//flVRFDUqKkqNjo5Wo6Oj1d27d8sOq4l/\n/vOfakxMjBoVFaVGRkaqf/nLX2SH1Cqz2azrUTffffedGhUVpUZFRakRERG6PY+++OILNTY2Vu3X\nr586atQo3Y66qa6uVm+++Wb1p59+kh1Kq5YsWaKGh4erffv2VSdNmqTW1NS0uC1vmCIiMjj9Dycg\nIiKbMNETERkcEz0RkcEx0RMRGRwTPRGRwTHRExEZHBM9EZHBMdETERnc/wPWoCKwND/XUgAAAABJ\nRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5b10e30>"
+ ]
+ },
+ {
+ "metadata": {},
+ "output_type": "display_data",
+ "png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAEACAYAAAC9Gb03AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3X1QVPe5B/DvIjgdo9H6jizJGgQBRSBFGDOXzFpduEhw\nCjFKtDE1CWNMTW9TJxrHmxEnF8RknGkrptNq1Sb1EpvMeLEBd3zpbGJNmL0KsUk0xlQdkRXH1qtR\niUHw3D82Sxf3/bzseft+Zphhd8/ueTTh8cfzPOd3LIIgCCAiIsNKUDsAIiJSFhM9EZHBMdETER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CwoK\ncObMGZw/fx69vb3Ys2cP5s+fr2ZIuiYIAp599llkZ2fj5z//udrhhPSPf/wD165dAwB88803OHjw\nIPI1tpdyfX09Ojs7ce7cObzzzjv44Q9/iLfeekvtsILq6enBjRs3AAC3bt3CgQMHNDchNnHiRKSm\npuLLL79w2+YHAAABEklEQVQE4K1/T5s2TeWoQmtqasKTTz6pdhghZWZmoq2tDd988w0EQcChQ4fC\nlz/j0CAOq7W1VcjIyBDS0tKE+vp6tcMJqrq6WkhOThaGDh0qWK1WYceOHWqHFNSRI0cEi8Ui5Obm\nCnl5eUJeXp6wf/9+tcMK8Le//U3Iz88XcnNzhZycHOH1119XO6SwXC6Xpqduzp49K+Tm5gq5ubnC\ntGnTNPtz9MknnwgFBQXCjBkzhMrKSs1O3dy8eVMYM2aM8PXXX6sdSlibNm0SsrOzhenTpwtLly4V\nent7Qx7LC6aIiAxO++MEREQkCRM9EZHBMdETERkcEz0RkcEx0RMRGRwTPRGRwTHRExEZHBM9EZHB\n/T/kZq6+7dkZ0AAAAABJRU5ErkJggg==\n",
+ "text": [
+ "<matplotlib.figure.Figure at 0x5baadb0>"
+ ]
+ },
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The graphs are the solutions\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file