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 /sample_notebooks/ajinkyakhair/Untitled3.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 'sample_notebooks/ajinkyakhair/Untitled3.ipynb')
-rwxr-xr-x | sample_notebooks/ajinkyakhair/Untitled3.ipynb | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/sample_notebooks/ajinkyakhair/Untitled3.ipynb b/sample_notebooks/ajinkyakhair/Untitled3.ipynb deleted file mode 100755 index c9360e01..00000000 --- a/sample_notebooks/ajinkyakhair/Untitled3.ipynb +++ /dev/null @@ -1,105 +0,0 @@ -{ - "metadata": { - "celltoolbar": "Raw Cell Format", - "name": "", - "signature": "sha256:1b9250434a66c555344f74813ca967ce998b1c86d33424d56ca71d7c748c63ce" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "heading", - "level": 1, - "metadata": {}, - "source": [ - "Chapter 1: Interference" - ] - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.7, Page number 1-19" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math \n", - "#Given Data:\n", - "i=30 #angle of incidence\n", - "u=1.43 #Refractive index of a soap film\n", - "lamda=6*10**-7 #wavelength of light\n", - "n=1 #For minimum thickness\n", - "\n", - "#Calculations:\n", - "#u=sin i/sin r #Snell's law .So,\n", - "r=math.degrees(math.asin(math.sin(i)/u)) #angle of reflection\n", - "\n", - "#Now, condition of minima in transmitted system is\n", - "#2ut*cos(r)=(2n-1)lam/2\n", - "t=lamda/(2*2*u*math.cos(r)) #minimum thickness of film\n", - "print\"Minimum thickness of film is \",t,\"m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Minimum thickness of film is 1.09096619878e-07 m\n" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "heading", - "level": 2, - "metadata": {}, - "source": [ - "Example 1.8, Page number 1-19" - ] - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import math\n", - "#Given Data:\n", - "\n", - "lamda = 5893*10**-10 #Wavelength of light\n", - "theta = 1 #assuming value of theta\n", - "\n", - "#We know, B=lam/(2*u*theta). Here u=1\n", - "B = lamda/(2*theta) #fringe spacing\n", - "n=20 #interference fringes\n", - "\n", - "#Calculations:\n", - "#t=n*B*tan(theta)\n", - "t = 20*B*theta #Thickness of wire\n", - "print\"Thickness of wire is =\",t,\"m\"" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Thickness of wire is = 5.893e-06 m\n" - ] - } - ], - "prompt_number": 18 - } - ], - "metadata": {} - } - ] -}
\ No newline at end of file |