summaryrefslogtreecommitdiff
path: root/Principles_of_physics_by_P.V.Naik/chapter11.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:53:46 +0530
committerkinitrupti2017-05-12 18:53:46 +0530
commit6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d (patch)
tree22789c9dbe468dae6697dcd12d8e97de4bcf94a2 /Principles_of_physics_by_P.V.Naik/chapter11.ipynb
parentd36fc3b8f88cc3108ffff6151e376b619b9abb01 (diff)
downloadPython-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.gz
Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.bz2
Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.zip
Removed duplicates
Diffstat (limited to 'Principles_of_physics_by_P.V.Naik/chapter11.ipynb')
-rwxr-xr-xPrinciples_of_physics_by_P.V.Naik/chapter11.ipynb95
1 files changed, 95 insertions, 0 deletions
diff --git a/Principles_of_physics_by_P.V.Naik/chapter11.ipynb b/Principles_of_physics_by_P.V.Naik/chapter11.ipynb
new file mode 100755
index 00000000..844520a2
--- /dev/null
+++ b/Principles_of_physics_by_P.V.Naik/chapter11.ipynb
@@ -0,0 +1,95 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:f15639ca9ab333759d79a28745654a5d04bddafc03a306e9cfbbbfeaf4928ceb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 11 Polarization"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.1 Page no 169"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "r1=1.538 #Refractive index of the crown glass for violet\n",
+ "r2=1.52 #Refractive index of the crown glass for red\n",
+ "\n",
+ "#Calculations\n",
+ "import math\n",
+ "ip1=math.atan(r1)*180/3.14\n",
+ "ip2=math.atan(r2)*180/3.14\n",
+ "\n",
+ "#Output\n",
+ "print\"Polarizing angles for violet and red are \",round(ip1,3),\"degrees and\",round(ip2,3),\"degrees\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Polarizing angles for violet and red are 56.997 degrees and 56.688 degrees\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.2 Page no 169"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "I=0.09\n",
+ "I0=1\n",
+ "\n",
+ "#calculation\n",
+ "import math\n",
+ "X=math.sqrt(I/I0)\n",
+ "x=math.acos(X)*180/3.14\n",
+ "print\"angle is \",round(x,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "angle is 72.58\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file