summaryrefslogtreecommitdiff
path: root/sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb
diff options
context:
space:
mode:
authorTrupti Kini2016-02-25 23:30:24 +0600
committerTrupti Kini2016-02-25 23:30:24 +0600
commit46a048c4a45bb93b138508f82292ba27e91c7574 (patch)
tree401e39ba31268662c453626ceff95859b4605128 /sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb
parent50e7b3b0fb869d0086b56c8e71a7c7684e4f0741 (diff)
downloadPython-Textbook-Companions-46a048c4a45bb93b138508f82292ba27e91c7574.tar.gz
Python-Textbook-Companions-46a048c4a45bb93b138508f82292ba27e91c7574.tar.bz2
Python-Textbook-Companions-46a048c4a45bb93b138508f82292ba27e91c7574.zip
Added(A)/Deleted(D) following books
A sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb
Diffstat (limited to 'sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb')
-rw-r--r--sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb78
1 files changed, 78 insertions, 0 deletions
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