diff options
author | Trupti Kini | 2016-02-25 23:30:24 +0600 |
---|---|---|
committer | Trupti Kini | 2016-02-25 23:30:24 +0600 |
commit | 64a9d8bd906da3c5ba4de3bca50fd4bd0e9022d7 (patch) | |
tree | 5f68dc7233b53a695d6a9e1784bdd4df219a6f66 /sample_notebooks | |
parent | e449000626ef04839b230d7090692293933dfd13 (diff) | |
download | Python-Textbook-Companions-64a9d8bd906da3c5ba4de3bca50fd4bd0e9022d7.tar.gz Python-Textbook-Companions-64a9d8bd906da3c5ba4de3bca50fd4bd0e9022d7.tar.bz2 Python-Textbook-Companions-64a9d8bd906da3c5ba4de3bca50fd4bd0e9022d7.zip |
Added(A)/Deleted(D) following books
A sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb
Diffstat (limited to 'sample_notebooks')
-rw-r--r-- | sample_notebooks/NarayaniGurumoorthy/chapter1.ipynb | 78 |
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 |