diff options
20 files changed, 215 insertions, 137 deletions
diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_10_Moments_of_Inertia.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_10_Moments_of_Inertia.ipynb index c3e6cf59..89f93cee 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_10_Moments_of_Inertia.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_10_Moments_of_Inertia.ipynb @@ -170,7 +170,7 @@ ], "source": [ "# Ex 10.6\n", - "import math\n", + "\n", "from __future__ import division\n", "\n", "# Calculation\n", @@ -298,6 +298,7 @@ "source": [ "# Ex 10.11\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "rho = 8000 #[kg meter**(2)]\n", @@ -338,7 +339,7 @@ ], "source": [ "# Ex 10.12\n", - "import math\n", + "\n", "from __future__ import division\n", "\n", "# Variable Declaration\n", @@ -372,21 +373,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_11__Virtual_Work.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_11__Virtual_Work.ipynb index 3ee3ef32..a978e00c 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_11__Virtual_Work.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_11__Virtual_Work.ipynb @@ -68,6 +68,7 @@ "# Ex 11.3\n", "import math\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "theta = 45 #[Degrees]\n", @@ -192,21 +193,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_12_Kinematics_of_a_Particle.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_12_Kinematics_of_a_Particle.ipynb index 59332347..89bf4495 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_12_Kinematics_of_a_Particle.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_12_Kinematics_of_a_Particle.ipynb @@ -163,6 +163,8 @@ "source": [ "# Ex 12.4\n", "from scipy import integrate\n", + "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "vB = round(2*(0.2**(2)-0.01)**(0.5)*1000,1) #[millimeter per second]\n", @@ -200,6 +202,7 @@ ], "source": [ "# Ex 12.5\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# ds = vdt\n", @@ -642,6 +645,7 @@ "source": [ "# Ex 12.10\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Position\n", @@ -828,6 +832,8 @@ ], "source": [ "# Ex 12.14\n", + "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Velocity\n", @@ -871,6 +877,8 @@ ], "source": [ "# Ex 12.15\n", + "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Let t be time needed for acceleration to reach 3 m/s**(2)\n", @@ -951,6 +959,7 @@ "source": [ "# Ex 12.18\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "vr = 200*1 #[millimeter per second]\n", @@ -1143,6 +1152,7 @@ ], "source": [ "# Ex 12.23\n", + "from __future__ import division\n", "\n", "# Calculation\n", "vB = -2/4\n", @@ -1177,6 +1187,7 @@ "source": [ "# Ex 12.24\n", "from __future__ import division\n", + "import math\n", "\n", "# Variable Declaration\n", "vA = 0.5 #[meter per second]\n", @@ -1222,6 +1233,7 @@ "source": [ "# Ex 12.25\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation Solution 1 Vector Analysis\n", "vTA_x = round(60-45*math.cos(math.pi*45/180),1) #[kilometer per hr]\n", @@ -1273,6 +1285,7 @@ "source": [ "# Ex 12.26\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "rho = 400 #[kilometers]\n", @@ -1321,6 +1334,7 @@ "source": [ "# Ex 12.27\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "vA = 18 #[meter per second]\n", @@ -1360,21 +1374,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_13_Kinetics_of_a_Particle_Force_and_Acceleration.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_13_Kinetics_of_a_Particle_Force_and_Acceleration.ipynb index ada4b114..81d0b746 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_13_Kinetics_of_a_Particle_Force_and_Acceleration.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_13_Kinetics_of_a_Particle_Force_and_Acceleration.ipynb @@ -33,6 +33,7 @@ "# Ex 13.1\n", "import numpy as np\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "uk = 0.3\n", @@ -164,6 +165,7 @@ "# Ex 13.4\n", "import numpy as np\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "k = 3 #[Newtons per meter]\n", @@ -250,6 +252,7 @@ "source": [ "# Ex 13.7\n", "from __future__ import division\n", + "import math\n", "\n", "# Variable Declaration\n", "uk = 0.1\n", @@ -333,6 +336,8 @@ ], "source": [ "# Ex 13.9\n", + "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "thetamax = round(math.degrees((9.81+1)/((19.62*0.5/2)+9.81)),1) #[Degrees]\n", @@ -411,7 +416,7 @@ "# Ex 13.11\n", "import numpy as np\n", "import math\n", - "\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "theta = 60 #[Degrees]\n", @@ -482,21 +487,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_14_Kinetics_of_a_Particle_Work_and_Energy_.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_14_Kinetics_of_a_Particle_Work_and_Energy_.ipynb index 2fcc32fb..fddb008e 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_14_Kinetics_of_a_Particle_Work_and_Energy_.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_14_Kinetics_of_a_Particle_Work_and_Energy_.ipynb @@ -191,6 +191,7 @@ "source": [ "# Ex 14.5\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "thetamax = round(math.degrees(math.acos((9.81+1)/(4.905+9.81))),1) #[Degrees]\n", @@ -300,6 +301,7 @@ "source": [ "# Ex 14.9\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Using Principle of Conservation of Energy\n", @@ -406,21 +408,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_15_Kinetics_of_a_Particle_Impulse_and_Momentum.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_15_Kinetics_of_a_Particle_Impulse_and_Momentum.ipynb index 1157bdc9..305cb41e 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_15_Kinetics_of_a_Particle_Impulse_and_Momentum.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_15_Kinetics_of_a_Particle_Impulse_and_Momentum.ipynb @@ -17,9 +17,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -33,6 +31,7 @@ "source": [ "# Ex 15.1\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "ws = 100 #[kilogram]\n", @@ -58,9 +57,7 @@ { "cell_type": "code", "execution_count": 3, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -74,6 +71,7 @@ "source": [ "# Ex 15.2\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Using +ΣFy = 0\n", @@ -95,9 +93,7 @@ { "cell_type": "code", "execution_count": 12, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -135,9 +131,7 @@ { "cell_type": "code", "execution_count": 14, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -150,6 +144,7 @@ ], "source": [ "# Ex 15.4\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Part(a)\n", @@ -172,9 +167,7 @@ { "cell_type": "code", "execution_count": 17, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -187,6 +180,7 @@ ], "source": [ "# Ex 15.5\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Part(a)\n", @@ -209,9 +203,7 @@ { "cell_type": "code", "execution_count": 20, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -223,6 +215,7 @@ ], "source": [ "# Ex 15.6\n", + "from __future__ import division\n", "\n", "# Calculation\n", "vT2 = round((350*10**(3)*3)/(350*10**(3)+50*10**(3)),2) #[meters per second]\n", @@ -241,9 +234,7 @@ { "cell_type": "code", "execution_count": 5, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -284,9 +275,7 @@ { "cell_type": "code", "execution_count": 24, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -300,6 +289,7 @@ "# Ex 15.9\n", "import numpy as np\n", "from __future__ import division\n", + "import math\n", "\n", "# Calculation\n", "# Using conservation of energy\n", @@ -326,9 +316,7 @@ { "cell_type": "code", "execution_count": 6, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -371,10 +359,8 @@ }, { "cell_type": "code", - "execution_count": 32, - "metadata": { - "collapsed": false - }, + "execution_count": 1, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -391,7 +377,7 @@ "# Ex 15.11\n", "import numpy as np\n", "import math\n", - "\n", + "from __future__ import division\n", "# Calculation\n", "vAx1 = round(3*math.cos(math.pi*30/180),2)\n", "vAy1 = round(3*math.sin(math.pi*30/180),2)\n", @@ -424,9 +410,7 @@ { "cell_type": "code", "execution_count": 7, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -461,9 +445,7 @@ { "cell_type": "code", "execution_count": 35, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -475,6 +457,8 @@ ], "source": [ "# Ex 15.14\n", + "from __future__ import division\n", + "import math\n", "\n", "# Variable Declaration\n", "v1 = 1 #[meters per second]\n", @@ -504,9 +488,7 @@ { "cell_type": "code", "execution_count": 38, - "metadata": { - "collapsed": false - }, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -548,7 +530,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 2", "language": "python", "name": "python2" }, @@ -562,7 +544,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", - "version": "2.7.12" + "version": "2.7.13" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_16_Planar_Kinematics_of_a_Rigid_Body.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_16_Planar_Kinematics_of_a_Rigid_Body.ipynb index 677b13e4..30a2bf09 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_16_Planar_Kinematics_of_a_Rigid_Body.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_16_Planar_Kinematics_of_a_Rigid_Body.ipynb @@ -33,6 +33,7 @@ "source": [ "# Ex 16.2\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "alphaA = 2 #[radians per second square]\n", @@ -123,6 +124,7 @@ "source": [ "# Ex 16.6\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "vA = 2 #[meters per second]\n", @@ -170,6 +172,7 @@ "source": [ "# Ex 16.7\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Solution 1 Vector Analysis\n", @@ -220,6 +223,7 @@ ], "source": [ "# Ex 16.8\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Link CB\n", @@ -258,6 +262,7 @@ ], "source": [ "# Ex 16.9\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Link BC\n", @@ -297,6 +302,7 @@ "source": [ "# Ex 16.10\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "vD = 3 #[meters per second]\n", @@ -339,6 +345,7 @@ ], "source": [ "# Ex 16.12\n", + "from __future__ import division\n", "\n", "# Calculation\n", "x = 0.1/0.65 #[meters]\n", @@ -376,6 +383,7 @@ "# Ex 16.13\n", "import numpy as np\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "a = np.array([[math.cos(math.pi*45/180),0],[math.sin(math.pi*45/180),-10]])\n", @@ -457,6 +465,7 @@ "source": [ "# Ex 16.16\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "w = 3 #[radians per second]\n", @@ -539,6 +548,7 @@ "# Ex 16.18\n", "import numpy as np\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "rB_x = -0.25*math.sin(math.pi*45/180) #[meters]\n", @@ -628,6 +638,7 @@ ], "source": [ "# Ex 16.20\n", + "from __future__ import division\n", "\n", "# Calculation\n", "vCDxyz = 1.2 #[meters per second]\n", @@ -696,21 +707,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_17_Planar_Kinetics_of_a_Rigid_Body_Force_and_Acceleration.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_17_Planar_Kinetics_of_a_Rigid_Body_Force_and_Acceleration.ipynb index ea63db73..9bd668e0 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_17_Planar_Kinetics_of_a_Rigid_Body_Force_and_Acceleration.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_17_Planar_Kinetics_of_a_Rigid_Body_Force_and_Acceleration.ipynb @@ -33,6 +33,7 @@ "# Ex 17.2\n", "from scipy import integrate\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "y = lambda y: ((math.pi*2)/2)*y**(8)\n", @@ -161,6 +162,7 @@ "source": [ "# Ex 17.5\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Using +ΣF_x = m(aG)_x, +ΣF_y = m(aG)_y and +ΣMG(counter clockwise)=0 \n", @@ -202,6 +204,7 @@ "source": [ "# Ex 17.6\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "mm = 125 #[kilogram]\n", @@ -248,6 +251,7 @@ ], "source": [ "# Ex 17.7\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "P = 600 #[Newton]\n", @@ -299,6 +303,7 @@ "# Ex 17.8\n", "import numpy as np\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "theta = 30 #[Degrees]\n", @@ -344,6 +349,8 @@ ], "source": [ "# Ex 17.9\n", + "from __future__ import division\n", + "import math\n", "\n", "# Calculation\n", "# Using +ΣFx(right) = m(aG)x\n", @@ -462,6 +469,7 @@ "source": [ "# Ex 17.11\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "m = 60 #[kilogram]\n", @@ -564,6 +572,7 @@ "source": [ "# Ex 17.14\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Calculation Solution 1\n", "IG = 8*0.35**(2) #[kilogram meter square]\n", @@ -722,21 +731,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_18_Planar_Kinetics_of_a_Rigid_Body_Work_and_Energy.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_18_Planar_Kinetics_of_a_Rigid_Body_Work_and_Energy.ipynb index 321b8558..ec66b381 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_18_Planar_Kinetics_of_a_Rigid_Body_Work_and_Energy.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_18_Planar_Kinetics_of_a_Rigid_Body_Work_and_Energy.ipynb @@ -171,6 +171,7 @@ "source": [ "# Ex 18.4\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "w2 = math.sqrt((700*9.81*0.05359)/63.875) #[radians per second]\n", @@ -214,6 +215,7 @@ "source": [ "# Ex 18.5\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "M = 75 #[Newton meter]\n", @@ -253,6 +255,7 @@ "source": [ "# Ex 18.6\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "P = 50 #[Newton]\n", @@ -378,6 +381,7 @@ "source": [ "# Ex 18.9\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Potential energy\n", @@ -407,21 +411,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_19_Planar_Kinetics_of_a_Rigid_Body_Impulse_and_Momentum.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_19_Planar_Kinetics_of_a_Rigid_Body_Impulse_and_Momentum.ipynb index d7c43858..9bafb787 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_19_Planar_Kinetics_of_a_Rigid_Body_Impulse_and_Momentum.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_19_Planar_Kinetics_of_a_Rigid_Body_Impulse_and_Momentum.ipynb @@ -131,7 +131,7 @@ "source": [ "# Ex 19.3\n", "import numpy as np\n", - "from __future__ import division \n", + "\n", "\n", "# Calculation\n", "IG = round(100*0.35**(2),3) #[kilogram meter square]\n", @@ -327,21 +327,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_1_General_Principles.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_1_General_Principles.ipynb index 62d27f1f..ec793839 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_1_General_Principles.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_1_General_Principles.ipynb @@ -95,21 +95,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_2_Force_Vectors.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_2_Force_Vectors.ipynb index 8b8efd6a..51411f98 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_2_Force_Vectors.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_2_Force_Vectors.ipynb @@ -34,6 +34,7 @@ "source": [ "#Example 2.1\n", "import math\n", + "from __future__ import division\n", "\n", "# The parallelogram law of addition is shown in Fig.2-10b\n", "\n", @@ -86,6 +87,7 @@ "source": [ "# Example 2.2\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "F = 2000 #[newton]\n", @@ -181,6 +183,7 @@ "source": [ "# Example 2.4\n", "import math\n", + "from __future__ import division\n", "\n", "# Part(a) Refer fig 2-13b\n", "# Using parallelogram law\n", @@ -234,6 +237,8 @@ "source": [ "# Example 2.5\n", "import math\n", + "from __future__ import division\n", + "\n", "# F1_x acts in -x direction and F1_y acts in +y direction Refer fig 2-17b\n", "\n", "# Calculation\n", @@ -283,6 +288,7 @@ "source": [ "# Example 2.6\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "F1 = 600 #[Newton]\n", @@ -389,6 +395,7 @@ "source": [ "# Example 2.8\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable declaration\n", "beta = 60 #[Degrees]\n", @@ -506,6 +513,7 @@ "source": [ "# Example 2.10\n", "import math\n", + "from __future__ import division\n", "\n", "# For F1\n", "\n", @@ -586,6 +594,7 @@ "source": [ "# Example 2.11\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable declaration\n", "\n", @@ -910,6 +919,7 @@ "source": [ "# Example 2.16\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "rB_x = 2 #[meters]\n", @@ -1036,21 +1046,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_3_Equilibrium_of_a_Particle.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_3_Equilibrium_of_a_Particle.ipynb index aef96ff3..7ae5e1a0 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_3_Equilibrium_of_a_Particle.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_3_Equilibrium_of_a_Particle.ipynb @@ -34,6 +34,7 @@ "# Example 3.2\n", "import math\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "theta = 30 #[Degrees]\n", @@ -446,21 +447,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_4_Force_System_Resultants.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_4_Force_System_Resultants.ipynb index 7de45a57..ddfa4a0f 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_4_Force_System_Resultants.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_4_Force_System_Resultants.ipynb @@ -36,6 +36,7 @@ "source": [ "# Ex 4.1\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation Fig 4-4a\n", "MO = 100*2 #[Newton meter]\n", @@ -137,6 +138,7 @@ "source": [ "# Ex 4.3\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Assuming positive moments act in +k direction i.e counterclockwise\n", @@ -173,6 +175,7 @@ "# Ex 4.4\n", "import math\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "F = 60 #[Newton]\n", @@ -384,6 +387,7 @@ "# Example 4.7\n", "import math\n", "import numpy as np \n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "F = 400 #[Newton]\n", @@ -666,6 +670,8 @@ "source": [ "# Example 4.12\n", "import math\n", + "from __future__ import division\n", + "import numpy as np\n", "\n", "# Variable Declaration\n", "rA_x = 0 #[meter]\n", @@ -813,6 +819,7 @@ "source": [ "# Example 4.14\n", "import math \n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Let resultant force be FR\n", @@ -927,6 +934,7 @@ "# Example 4.16\n", "import math\n", "from __future__ import division\n", + "\n", "# Calculation\n", "FR_x = 500*math.cos(math.pi*60/180)+100 #[Newton]\n", "FR_y = -500*math.sin(math.pi*60/180)+200 #[Newton]\n", @@ -1018,6 +1026,7 @@ ], "source": [ "# Example 4.18\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# +FR = ΣF Refer Fig 4-45a\n", @@ -1063,6 +1072,7 @@ "# Example 4.19\n", "import math\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "FR_x = 0 #[Newton]\n", @@ -1123,6 +1133,7 @@ "# Example 4.20\n", "from scipy import integrate\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# The coloured differential area element dA = wdx = 60x**(2)\n", @@ -1206,6 +1217,7 @@ ], "source": [ "# Example 4.22\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Refer Fig 4-50b\n", @@ -1241,21 +1253,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_5_Equilibrium_of_a_Rigid_Body.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_5_Equilibrium_of_a_Rigid_Body.ipynb index b3b5669a..e9f9fc0d 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_5_Equilibrium_of_a_Rigid_Body.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_5_Equilibrium_of_a_Rigid_Body.ipynb @@ -34,6 +34,7 @@ "source": [ "# Example 5.6\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Summing forces in the x direction +ΣF_x(right) = 0\n", @@ -128,6 +129,7 @@ "source": [ "# Example 5.8\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Summing moments about A, we obtain direct solution for NB\n", @@ -220,6 +222,7 @@ "# Example 5.10\n", "import math\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Refer Fig 5-18b\n", @@ -269,6 +272,7 @@ "# Example 5.11\n", "import math\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Since ΣMO = 0 angle theta which defines the line of action of FA can be determined by trigonometry\n", @@ -315,6 +319,7 @@ ], "source": [ "# Example 5.13\n", + "import numpy as np\n", "\n", "# Calculation\n", "# Using ΣF_x = 0ΣF_z = 0\n", @@ -367,6 +372,7 @@ "source": [ "# Example 5.14\n", "import math \n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Using right hand rule and assuming positive moments act in +i direction, ΣM_x = 0\n", @@ -518,6 +524,7 @@ ], "source": [ "# Example 5.17\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Using u.(rB X TB + rE X W)\n", @@ -539,21 +546,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_6_Structural_Analysis.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_6_Structural_Analysis.ipynb index 4fe7e652..80b876b6 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_6_Structural_Analysis.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_6_Structural_Analysis.ipynb @@ -37,6 +37,7 @@ "source": [ "# Example 6.1\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "\n", @@ -98,6 +99,7 @@ "# Example 6.2\n", "import math\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Joint C\n", @@ -340,6 +342,7 @@ "source": [ "# Example 6.7\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Using +ΣMB(counterclockwise) = 0\n", @@ -389,6 +392,7 @@ "# Example 6.8\n", "import numpy as np\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# At joint A, ΣF_x = 0, ΣF_y = 0, ΣF_z = 0\n", @@ -554,6 +558,7 @@ "source": [ "# Example 6.16\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Using +ΣMA(counterclockwise) = 0\n", @@ -605,6 +610,7 @@ ], "source": [ "# Example 6.17\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Consider entire frame\n", @@ -661,6 +667,7 @@ ], "source": [ "# Example 6.18\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Using equations of equilibrium\n", @@ -746,21 +753,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_7_Internal_Forces.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_7_Internal_Forces.ipynb index 013e54d4..b26a181a 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_7_Internal_Forces.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_7_Internal_Forces.ipynb @@ -228,6 +228,7 @@ "source": [ "# Example 7.5\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Using +ΣF_y(upward) = 0 Refer fig 7-8b\n", @@ -369,21 +370,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_8_Friction.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_8_Friction.ipynb index f2059979..6f84215f 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_8_Friction.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_8_Friction.ipynb @@ -34,6 +34,7 @@ "source": [ "# Example 8.1\n", "import math\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "P = 80 #[Newton]\n", @@ -79,6 +80,7 @@ "source": [ "# Ex 8.2\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# W*sin25 = us(W*cos25)\n", @@ -149,6 +151,7 @@ "source": [ "# Ex 8.4\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "# Using +ΣF_x(right) = 0,FA = F and NA = N for bottom pipe\n", @@ -191,6 +194,7 @@ "source": [ "# Ex 8.5\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "uB = 0.2\n", @@ -254,6 +258,7 @@ "# Ex 8.6\n", "import math\n", "import numpy as np\n", + "from __future__ import division\n", "\n", "# Variable Declaration\n", "usA = 0.15\n", @@ -384,21 +389,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_9_Center_of_Gravity_and_Centroid.ipynb b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_9_Center_of_Gravity_and_Centroid.ipynb index 92c855af..6b43eee2 100644 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_9_Center_of_Gravity_and_Centroid.ipynb +++ b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/Chapter_9_Center_of_Gravity_and_Centroid.ipynb @@ -34,6 +34,7 @@ "# Example 9.1\n", "from scipy import integrate\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "a = lambda y: y**(2)*math.sqrt(4*y**(2)+1)\n", @@ -192,6 +193,7 @@ "# Example 9.7\n", "from scipy import integrate\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "a = lambda y: 100*math.pi*y**(2)\n", @@ -230,6 +232,7 @@ "# Example 9.8\n", "from scipy import integrate\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "a = lambda z: z*200*z*math.pi*0.5**(2)\n", @@ -267,6 +270,7 @@ "source": [ "# Example 9.9\n", "import math\n", + "from __future__ import division\n", "\n", "# Calculation\n", "xbar = (60*math.pi*60+0*40+0*20)/(math.pi*60+40+20) #[millimeter]\n", @@ -304,6 +308,7 @@ ], "source": [ "# Example 9.10\n", + "from __future__ import division\n", "\n", "# Calculation\n", "xbar = (1*0.5*3*3+(-1.5)*3*3+(-2.5)*(-2)*1)/(0.5*3*3+3*3+(-2)*1) #[meter]\n", @@ -442,6 +447,7 @@ "source": [ "# Example 9.14\n", "from __future__ import division\n", + "import math\n", "\n", "# Variable Declaration\n", "b = 5 #[meter]\n", @@ -515,21 +521,21 @@ "metadata": { "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python [default]", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.6.0" } }, "nbformat": 4, diff --git a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/index.png b/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/index.png Binary files differdeleted file mode 100644 index 491fb7a8..00000000 --- a/Engineering_Mechanics_Statics_and_Dynamics_by_Hibler_and_Gupta/index.png +++ /dev/null |