From 46a048c4a45bb93b138508f82292ba27e91c7574 Mon Sep 17 00:00:00 2001 From: Trupti Kini Date: Thu, 25 Feb 2016 23:30:24 +0600 Subject: Added(A)/Deleted(D) following books A sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb --- .../NarayaniGurumoorthy/chapter1.ipynb | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb (limited to 'sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb') diff --git a/sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb b/sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb new file mode 100644 index 00000000..acf7396e --- /dev/null +++ b/sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb @@ -0,0 +1,78 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:6a31e38d48b33cd2883c4a445f48cd42fa9848c47c13fe5bbf0011e5bf0bde7b" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 1:Simple Stresses and Strains" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Problem 1.1, Page no.9" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math\n", + "\n", + "#Given\n", + "#Variable declaration\n", + "L=150 #Length of the rod in cm\n", + "D=20 #Diameter of the rod in mm\n", + "P=20*1000 #Axial pull in N\n", + "E=2.0*(10**5) #Modulus of elasticity in N/(mm**2)\n", + "\n", + "#Calculation\n", + "A=(math.pi/4)*(D**2) #Area in sq.mm\n", + "sigma=P/A #Stress \n", + "e=sigma/E #Strain\n", + "dL=e*L #Elongation\n", + "\n", + "#Result\n", + "print \"sigma =\",round(sigma,3),\"N/mm^2\"\n", + "print \"Strain,e =\",round(e,6)\n", + "print \"Elongation,dL =\",round(dL,4),\"cm\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "sigma = 63.662 N/mm^2\n", + "Strain,e = 0.000318\n", + "Elongation,dL = 0.0477 cm\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file -- cgit