diff options
author | kinitrupti | 2017-05-12 18:40:35 +0530 |
---|---|---|
committer | kinitrupti | 2017-05-12 18:40:35 +0530 |
commit | d36fc3b8f88cc3108ffff6151e376b619b9abb01 (patch) | |
tree | 9806b0d68a708d2cfc4efc8ae3751423c56b7721 /Modern_Physics_By_G.Aruldas/Chapter16.ipynb | |
parent | 1b1bb67e9ea912be5c8591523c8b328766e3680f (diff) | |
download | Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.gz Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.bz2 Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.zip |
Revised list of TBCs
Diffstat (limited to 'Modern_Physics_By_G.Aruldas/Chapter16.ipynb')
-rwxr-xr-x | Modern_Physics_By_G.Aruldas/Chapter16.ipynb | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/Modern_Physics_By_G.Aruldas/Chapter16.ipynb b/Modern_Physics_By_G.Aruldas/Chapter16.ipynb deleted file mode 100755 index 932f4802..00000000 --- a/Modern_Physics_By_G.Aruldas/Chapter16.ipynb +++ /dev/null @@ -1,114 +0,0 @@ -{
- "metadata": {
- "name": "",
- "signature": "sha256:8689775b6694dc6c6ea95bc809bbd7280d9553003ec1dbe78844db2dc6fa68f3"
- },
- "nbformat": 3,
- "nbformat_minor": 0,
- "worksheets": [
- {
- "cells": [
- {
- "cell_type": "heading",
- "level": 1,
- "metadata": {},
- "source": [
- "16: Fibre optics and holography"
- ]
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example number 16.1, Page number 306"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "#importing modules\n",
- "import math\n",
- "from __future__ import division\n",
- "\n",
- "#Variable declaration\n",
- "n2=1.4; #refractive index of cladding\n",
- "n1=1.43; #refractive index of core\n",
- "\n",
- "#Calculation\n",
- "costhetac=n2/n1; \n",
- "thetac=math.acos(costhetac); #propagation angle(radian)\n",
- "thetac=thetac*180/math.pi; #propagation angle(degrees)\n",
- "NA=math.sqrt(n1**2-n2**2); #numerical aperture\n",
- "thetaa=math.asin(NA); #angle(radian)\n",
- "thetaa=thetaa*180/math.pi; #angle(degrees)\n",
- "thetaa=2*thetaa; #acceptance angle(degrees)\n",
- "\n",
- "#Result\n",
- "print \"propagation angle is\",round(thetac,1),\"degrees\"\n",
- "print \"numerical aperture is\",round(NA,4)\n",
- "print \"acceptance angle is\",round(thetaa,2),\"degrees\""
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "propagation angle is 11.8 degrees\n",
- "numerical aperture is 0.2914\n",
- "acceptance angle is 33.88 degrees\n"
- ]
- }
- ],
- "prompt_number": 8
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example number 16.3, Page number 311"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "#importing modules\n",
- "import math\n",
- "from __future__ import division\n",
- "\n",
- "#Variable declaration\n",
- "z=30; #length of optical fibre(km)\n",
- "alpha=0.8; #fibre loss(dB/km)\n",
- "Pi=200; #input power(micro W)\n",
- "\n",
- "#Calculation\n",
- "a=alpha*z/10;\n",
- "b=10**a;\n",
- "P0=Pi/b; #output power(micro W)\n",
- "\n",
- "#Result\n",
- "print \"output power is\",round(P0,3),\"micro W\""
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "output power is 0.796 micro W\n"
- ]
- }
- ],
- "prompt_number": 10
- }
- ],
- "metadata": {}
- }
- ]
-}
\ No newline at end of file |