diff options
author | Jovina Dsouza | 2014-07-07 16:34:28 +0530 |
---|---|---|
committer | Jovina Dsouza | 2014-07-07 16:34:28 +0530 |
commit | fffcc90da91b66ee607066d410b57f34024bd1de (patch) | |
tree | 7b8011d61013305e0bf7794a275706abd1fdb0d3 /Optical_Fiber_Communication_Principles_and_Practice/Chapter4_1.ipynb | |
parent | 299711403e92ffa94a643fbd960c6f879639302c (diff) | |
download | Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.tar.gz Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.tar.bz2 Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.zip |
adding book
Diffstat (limited to 'Optical_Fiber_Communication_Principles_and_Practice/Chapter4_1.ipynb')
-rwxr-xr-x | Optical_Fiber_Communication_Principles_and_Practice/Chapter4_1.ipynb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Optical_Fiber_Communication_Principles_and_Practice/Chapter4_1.ipynb b/Optical_Fiber_Communication_Principles_and_Practice/Chapter4_1.ipynb new file mode 100755 index 00000000..7a8733a2 --- /dev/null +++ b/Optical_Fiber_Communication_Principles_and_Practice/Chapter4_1.ipynb @@ -0,0 +1,35 @@ +{ + "metadata": { + "name": "Chapter_4" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": "Chapter 4 : Optical fibers and cables" + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example 4.1, page 196" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "import math\n\n#Variable declaration\nl=0.16*10**-9 #bond distance\nSt=2.6*10**6 #cohesive strength\npsi=6894.76\nE=9*10**10 #Young modulus of silica\nC=10**-8\n\n#Calculation\nYp=4*l*St**2/E\nSf=math.sqrt((2*E*Yp)/(math.pi*C)) #Fracture stress for elliptical crack\nStr=Sf/E #Strain\n\n#Result\nprint'Fracture stress for elliptical crack = %.2f x 10^5 psi'%(Sf*10**-5)\nprint'Strain in percentage = %d percent'%(Str*6894.76*100)", + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": "*" + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file |