diff options
author | Hardik Ghaghada | 2014-06-20 15:52:25 +0530 |
---|---|---|
committer | Hardik Ghaghada | 2014-06-20 15:52:25 +0530 |
commit | e1e59ca3a50d9f93e8b7bc0693b8081d5db77771 (patch) | |
tree | f54eab21dd3d725d64a495fcd47c00d37abed004 /Engineering_Physics_Aruldhas/Chapter17_1.ipynb | |
parent | a78126bbe4443e9526a64df9d8245c4af8843044 (diff) | |
parent | 83c1bfceb1b681b4bb7253b47491be2d8b2014a1 (diff) | |
download | Python-Textbook-Companions-e1e59ca3a50d9f93e8b7bc0693b8081d5db77771.tar.gz Python-Textbook-Companions-e1e59ca3a50d9f93e8b7bc0693b8081d5db77771.tar.bz2 Python-Textbook-Companions-e1e59ca3a50d9f93e8b7bc0693b8081d5db77771.zip |
Merge pull request #1 from debashisdeb/master
removing problem statements from all the chapters to avoid copyright violations
Diffstat (limited to 'Engineering_Physics_Aruldhas/Chapter17_1.ipynb')
-rw-r--r-- | Engineering_Physics_Aruldhas/Chapter17_1.ipynb | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/Engineering_Physics_Aruldhas/Chapter17_1.ipynb b/Engineering_Physics_Aruldhas/Chapter17_1.ipynb index f0df2691..891f2d43 100644 --- a/Engineering_Physics_Aruldhas/Chapter17_1.ipynb +++ b/Engineering_Physics_Aruldhas/Chapter17_1.ipynb @@ -1,6 +1,7 @@ { "metadata": { - "name": "Chapter17" + "name": "", + "signature": "sha256:d4400dbe9ddae05e5ab81173c9df50e2e9dde25edf961941bd9c8dc15f5a6fe1" }, "nbformat": 3, "nbformat_minor": 0, @@ -11,25 +12,51 @@ "cell_type": "heading", "level": 1, "metadata": {}, - "source": "17: Ultrasonics" + "source": [ + "17: Ultrasonics" + ] }, { "cell_type": "heading", "level": 2, "metadata": {}, - "source": "Example number 17.1, Page number 352" + "source": [ + "Example number 17.1, Page number 352" + ] }, { "cell_type": "code", "collapsed": false, - "input": "#To calculate the thickness of vibrating quartz\n\n#importing modules\nimport math\nfrom __future__ import division\n\n#Variable declaration\nf = 3; #Fundamental vibrational frequency of quartz crystal(MHz)\nY = 7.9*10**10; #Young's modulus of quartz(N/m**2)\nrho = 2650; #Density of quartz(kg/m**3)\n\n#Calculation\nf = f*10**6; #Fundamental vibrational frequency of quartz crystal(Hz)\nl = 1/(2*f)*math.sqrt(Y/rho); #Thickness of vibrating quartz at resonance(m)\nl = l*10**3; #Thickness of vibrating quartz at resonance(mm)\nl = math.ceil(l*100)/100; #rounding off the value of l to 2 decimals\n\n#Result\nprint \"The thickness of vibrating quartz at resonance is\",l, \"mm\"", + "input": [ + "\n", + "\n", + "#importing modules\n", + "import math\n", + "from __future__ import division\n", + "\n", + "#Variable declaration\n", + "f = 3; #Fundamental vibrational frequency of quartz crystal(MHz)\n", + "Y = 7.9*10**10; #Young's modulus of quartz(N/m**2)\n", + "rho = 2650; #Density of quartz(kg/m**3)\n", + "\n", + "#Calculation\n", + "f = f*10**6; #Fundamental vibrational frequency of quartz crystal(Hz)\n", + "l = 1/(2*f)*math.sqrt(Y/rho); #Thickness of vibrating quartz at resonance(m)\n", + "l = l*10**3; #Thickness of vibrating quartz at resonance(mm)\n", + "l = math.ceil(l*100)/100; #rounding off the value of l to 2 decimals\n", + "\n", + "#Result\n", + "print \"The thickness of vibrating quartz at resonance is\",l, \"mm\"" + ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", - "text": "The thickness of vibrating quartz at resonance is 0.91 mm\n" + "text": [ + "The thickness of vibrating quartz at resonance is 0.91 mm\n" + ] } ], "prompt_number": 1 @@ -37,7 +64,7 @@ { "cell_type": "code", "collapsed": false, - "input": "", + "input": [], "language": "python", "metadata": {}, "outputs": [] |