summaryrefslogtreecommitdiff
path: root/sample_notebooks
diff options
context:
space:
mode:
authorTrupti Kini2016-08-07 23:30:22 +0600
committerTrupti Kini2016-08-07 23:30:22 +0600
commitbdf084e95a05a5846fb9f27447964707560609ac (patch)
tree1eb8a594e55c10820fb964959f6f1a39ecfeb018 /sample_notebooks
parent08c1e09738ed693ca1413d5fca75e586e8af727f (diff)
downloadPython-Textbook-Companions-bdf084e95a05a5846fb9f27447964707560609ac.tar.gz
Python-Textbook-Companions-bdf084e95a05a5846fb9f27447964707560609ac.tar.bz2
Python-Textbook-Companions-bdf084e95a05a5846fb9f27447964707560609ac.zip
Added(A)/Deleted(D) following books
A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter1.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter10.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter11.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter12.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter2.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter3.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter4.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter5.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter6.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter7.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter8.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/Chapter9.ipynb A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/screenshots/chapter1.png A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/screenshots/chapter2.png A Solutions_to_Problems_in_Applied_Mechanics_by_A._N._Gobby/screenshots/chapter3.png A Theory_of_Alternating_Current_Machinery_by_A._S._Langsdorf/Chapter1.ipynb A Theory_of_Alternating_Current_Machinery_by_A._S._Langsdorf/Chapter10.ipynb A Theory_of_Alternating_Current_Machinery_by_A._S._Langsdorf/Chapter16.ipynb A Theory_of_Alternating_Current_Machinery_by_A._S._Langsdorf/Chapter2.ipynb A Theory_of_Alternating_Current_Machinery_by_A._S._Langsdorf/Chapter3.ipynb A Theory_of_Alternating_Current_Machinery_by_A._S._Langsdorf/screenshots/chapter1.png A Theory_of_Alternating_Current_Machinery_by_A._S._Langsdorf/screenshots/chapter2.png A Theory_of_Alternating_Current_Machinery_by_A._S._Langsdorf/screenshots/chapter3.png A modern_physics_by_Satish_K._Gupta/chap10_1.ipynb A modern_physics_by_Satish_K._Gupta/chap11_1.ipynb A modern_physics_by_Satish_K._Gupta/chap12_1.ipynb A modern_physics_by_Satish_K._Gupta/chap13_1.ipynb A modern_physics_by_Satish_K._Gupta/chap14_1.ipynb A modern_physics_by_Satish_K._Gupta/chap15_1.ipynb A modern_physics_by_Satish_K._Gupta/chap16_1.ipynb A modern_physics_by_Satish_K._Gupta/chap17_1.ipynb A modern_physics_by_Satish_K._Gupta/chap18_1.ipynb A modern_physics_by_Satish_K._Gupta/chap19_1.ipynb A modern_physics_by_Satish_K._Gupta/chap1_1.ipynb A modern_physics_by_Satish_K._Gupta/chap20_1.ipynb A modern_physics_by_Satish_K._Gupta/chap21_1.ipynb A modern_physics_by_Satish_K._Gupta/chap22_1.ipynb A modern_physics_by_Satish_K._Gupta/chap23_1.ipynb A modern_physics_by_Satish_K._Gupta/chap25_1.ipynb A modern_physics_by_Satish_K._Gupta/chap26_1.ipynb A modern_physics_by_Satish_K._Gupta/chap27_1.ipynb A modern_physics_by_Satish_K._Gupta/chap28_1.ipynb A modern_physics_by_Satish_K._Gupta/chap2_1.ipynb A modern_physics_by_Satish_K._Gupta/chap30_1.ipynb A modern_physics_by_Satish_K._Gupta/chap31_1.ipynb A modern_physics_by_Satish_K._Gupta/chap32_1.ipynb A modern_physics_by_Satish_K._Gupta/chap33_1.ipynb A modern_physics_by_Satish_K._Gupta/chap34_1.ipynb A modern_physics_by_Satish_K._Gupta/chap35_1.ipynb A modern_physics_by_Satish_K._Gupta/chap36_1.ipynb A modern_physics_by_Satish_K._Gupta/chap37_1.ipynb A modern_physics_by_Satish_K._Gupta/chap3_1.ipynb A modern_physics_by_Satish_K._Gupta/chap4_1.ipynb A modern_physics_by_Satish_K._Gupta/chap5_1.ipynb A modern_physics_by_Satish_K._Gupta/chap6_1.ipynb A modern_physics_by_Satish_K._Gupta/chap7_1.ipynb A modern_physics_by_Satish_K._Gupta/chap8_1.ipynb A modern_physics_by_Satish_K._Gupta/chap9_1.ipynb A modern_physics_by_Satish_K._Gupta/chap_29_1.ipynb A modern_physics_by_Satish_K._Gupta/screenshots/image1_1.png A modern_physics_by_Satish_K._Gupta/screenshots/image22_1.png A modern_physics_by_Satish_K._Gupta/screenshots/image33_1.png A sample_notebooks/RuchiMittal/chpater3.ipynb
Diffstat (limited to 'sample_notebooks')
-rw-r--r--sample_notebooks/RuchiMittal/chpater3.ipynb427
1 files changed, 427 insertions, 0 deletions
diff --git a/sample_notebooks/RuchiMittal/chpater3.ipynb b/sample_notebooks/RuchiMittal/chpater3.ipynb
new file mode 100644
index 00000000..99311d63
--- /dev/null
+++ b/sample_notebooks/RuchiMittal/chpater3.ipynb
@@ -0,0 +1,427 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:d86ea2343f7008555f3356fee2fcfd0faad0c29bd34da2bb93d133cd162e92e2"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 3 Polarization of light"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.1 Page no 30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u =1.54 #refrective index of glass\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "i= math.atan(u*180/3.14)\n",
+ "r=3.14/2.0-i\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle of refraction is\",round(r,4),\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle of refraction is 0.0105 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.2 Page no 30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "i= 3.14/3.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "u= math.tan(i)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Refractive index of glass is\",round(u,2)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Refractive index of glass is 99.17\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "raw",
+ "metadata": {},
+ "source": [
+ "Example 3.3 Page no 31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Uo =1.55\n",
+ "Ue =1.54\n",
+ "w=6*10**-7\n",
+ "\n",
+ "#Calculation\n",
+ "p=w/2.0\n",
+ "t=w /(2*( Uo -Ue))\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of doubly refracting crystal is\",t*10**2,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of doubly refracting crystal is 0.003 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.4 Page no 31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Uo =1.54\n",
+ "r =1.007\n",
+ "Ue=r*Uo\n",
+ "w =5893*10**-10\n",
+ "\n",
+ "#Calculation\n",
+ "t=w /(2*( Uo -Ue))\n",
+ "t= abs (t)\n",
+ "\n",
+ "print\"Thickness of halfwave plate is\",round(t*10**5,3)*10**-5"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of halfwave plate is 2.733e-05\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.5 Page no 32"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Uo =1.652 #refractive index for O ray\n",
+ "Ue =1.488\n",
+ "w =546*10**-9\n",
+ "\n",
+ "#Calculation\n",
+ "p=w/2.0\n",
+ "t=w /(4.0*( Uo -Ue))\n",
+ "t1=t *100\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of quarterwave plate is\",round(t1*10**5,2)*10**-5,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of quarterwave plate is 8.32e-05 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.6 Page no 32"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Uo =1.658\n",
+ "Ue =1.486\n",
+ "w =589*10**-9\n",
+ "n =1\n",
+ "\n",
+ "#Calculation\n",
+ "t =(2*n -1)*w /(4.0*( Uo -Ue))\n",
+ "t1=t *100\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of calcite plate is\",round(t1*10**5,2)*10**-5,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of calcite plate is 8.56e-05 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.7 Page no 33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Ur =1.55810\n",
+ "Ul =1.55821\n",
+ "w=4*10**-7\n",
+ "d =0.002\n",
+ "\n",
+ "#Calculation\n",
+ "R= 3.14*d*(Ul -Ur)/w\n",
+ "R1=R *180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Amount of optional rotation is\",R1,\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Amount of optional rotation is 99.0 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.8 Page no 33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Uo =1.5508\n",
+ "Ue =1.5418\n",
+ "w=5.0*10**-7\n",
+ "t =0.000032\n",
+ "\n",
+ "#Calculation\n",
+ "p =2*3.14*(Uo -Ue)*t/w\n",
+ "\n",
+ "#Result\n",
+ "print\"Phase retardation is\",round(p,2),\"radian\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Phase retardation is 3.62 radian\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.9 Page no 33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "theta =6.5\n",
+ "l =2\n",
+ "C =0.05\n",
+ "\n",
+ "#Calculation\n",
+ "S= theta /(l*C)\n",
+ "\n",
+ "#Result\n",
+ "print\"Specific rotation of sugar solution is\",S"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Specific rotation of sugar solution is 65.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.10 Page no 34"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l =2 #length of solution in decimeter\n",
+ "theta =12\n",
+ "S =60.0\n",
+ "\n",
+ "#Calculation\n",
+ "C= theta /(S*l)\n",
+ "\n",
+ "#Result\n",
+ "print\"Strength of solution is\",C,\"gm/cc\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Strength of solution is 0.1 gm/cc\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.11 Page no 34"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "b =.172 #bifringe of plate\n",
+ "w=6*10**-7\n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "t=w /(4*( b))\n",
+ "t1=t *100\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of quarterwave plate is\",round(t1*10**5,2)*10**-5,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of quarterwave plate is 8.72e-05 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file