summaryrefslogtreecommitdiff
path: root/Principles_of_Physics_by_F.J.Bueche/Chapter22.ipynb
diff options
context:
space:
mode:
authorTrupti Kini2016-07-20 23:30:30 +0600
committerTrupti Kini2016-07-20 23:30:30 +0600
commitc3a544006d60ca70e01072230696dd3cb6c17d67 (patch)
tree555884c513a9c3367d357d4d6c91a6af78ea508c /Principles_of_Physics_by_F.J.Bueche/Chapter22.ipynb
parentebfbaa96a859fbdfb15f2ea5e897840da206a840 (diff)
downloadPython-Textbook-Companions-c3a544006d60ca70e01072230696dd3cb6c17d67.tar.gz
Python-Textbook-Companions-c3a544006d60ca70e01072230696dd3cb6c17d67.tar.bz2
Python-Textbook-Companions-c3a544006d60ca70e01072230696dd3cb6c17d67.zip
Added(A)/Deleted(D) following books
A Principles_of_Physics_by_F.J.Bueche/Chapter1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter10.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter11.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter13.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter14.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter15.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter16.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter17.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter18.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter19.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter20.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter21.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter22.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter23.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter24.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter25.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter26.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter27.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter3.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter4.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter5.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter6.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter7.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter8.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter9.ipynb A Principles_of_Physics_by_F.J.Bueche/chapter12.ipynb A Principles_of_Physics_by_F.J.Bueche/screenshots/11.2.png A Principles_of_Physics_by_F.J.Bueche/screenshots/24.4.png A Principles_of_Physics_by_F.J.Bueche/screenshots/8.4.png
Diffstat (limited to 'Principles_of_Physics_by_F.J.Bueche/Chapter22.ipynb')
-rw-r--r--Principles_of_Physics_by_F.J.Bueche/Chapter22.ipynb314
1 files changed, 314 insertions, 0 deletions
diff --git a/Principles_of_Physics_by_F.J.Bueche/Chapter22.ipynb b/Principles_of_Physics_by_F.J.Bueche/Chapter22.ipynb
new file mode 100644
index 00000000..83a6cca0
--- /dev/null
+++ b/Principles_of_Physics_by_F.J.Bueche/Chapter22.ipynb
@@ -0,0 +1,314 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 22:The properties of Light"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex22.1:pg-1067"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The position of the image is i= 6.0 cm\n",
+ "The Size of the image is I= 0.0 cm High\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 22_1\n",
+ " \n",
+ " \n",
+ "#To find the position and size of the image\n",
+ "d1=5 #units in cm\n",
+ "d2=30 #units in cm\n",
+ "i=(d1*d2)/(d2-d1) #Units in cm\n",
+ "d3=2 #units in cm\n",
+ "I=(i/d2)*d3 #units in cm\n",
+ "print \"The position of the image is i=\",round(i),\" cm\\nThe Size of the image is I=\",round(I,2),\" cm High\" \n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex22.2:pg-1068"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The position of the image is i= -10.0 cm\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 22_2\n",
+ " \n",
+ " \n",
+ "#To find the location of the image\n",
+ "d1=10 #units in cm\n",
+ "d2=5 #units in cm\n",
+ "i=(d1*d2)/(d2-d1) #Units in cm\n",
+ "print \"The position of the image is i=\",round(i),\" cm\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex22.3:pg-1069"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The location of the image is i= -30.0 cm\n",
+ " The relative size of the image is I_O= 0.4 cm\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 22_3\n",
+ " \n",
+ " \n",
+ "#To find the location of the image and its relative size\n",
+ "r=100.0 #Unts in cm\n",
+ "d1=-r/2 #units in cm\n",
+ "d2=75.0 #units in cm\n",
+ "i=(d1*d2)/(d2-d1) #Units in cm\n",
+ "p=75 #units in cm\n",
+ "sizee=-i/p #units in cm\n",
+ "print \"The location of the image is i=\",round(i),\" cm\\n The relative size of the image is I_O=\",round(sizee,2),\" cm\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex22.4:pg-1069"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The angle at which the light emerges in air is theta= 53.0 degrees\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Example 22_4\n",
+ " \n",
+ "import math \n",
+ "#To find the angle at which the light emerge in to the air\n",
+ "theta=37 #Units in degrees\n",
+ "n1=1.33 #Units in constant\n",
+ "n2=1 #Units in constant\n",
+ "thetaa=math.asin((n1*math.sin(theta*math.pi/180))/n2)*180/math.pi #units in degrees\n",
+ "print \"The angle at which the light emerges in air is theta=\",round(thetaa),\" degrees\" \n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex22.5:pg-1068"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "We have Theta1=Theta4 \n",
+ "Which shows that A unform layer of transparent material does not change the direction of the beam of light\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 22_5\n",
+ " \n",
+ " \n",
+ "#At what angle does the light emerges from the bottom of the dish\n",
+ "print \"We have Theta1=Theta4 \\nWhich shows that A unform layer of transparent material does not change the direction of the beam of light\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex22.6:pg-1068"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "From the diagram we notice that eyes will assume that the three rays come from image position indicated and as we see the image is virtual, erect and enlarged\n",
+ "\n",
+ "The image is located at i= -10.0 cm\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 22_6\n",
+ " \n",
+ " \n",
+ "#To draw a ray diagram to locate the image\n",
+ "print \"From the diagram we notice that eyes will assume that the three rays come from image position indicated and as we see the image is virtual, erect and enlarged\"\n",
+ "d1=10 #units in cm\n",
+ "d2=5 #units in cm\n",
+ "i=(d1*d2)/(d2-d1) #Units in cm\n",
+ "print \"\\nThe image is located at i=\",round(i,2),\" cm\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex22.7:pg-1068"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "From the ray diagram we have noticed that the image is virtual, erect and dimnished in size\n",
+ "\n",
+ "The image is located at i= 3.0 cm\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 22_7\n",
+ " \n",
+ " \n",
+ "#To find the image position by means of the ray diagram\n",
+ "print \"From the ray diagram we have noticed that the image is virtual, erect and dimnished in size\"\n",
+ "d1=5 #units in cm\n",
+ "d2=-10 #units in cm\n",
+ "i=(d1*d2)/(d2-d1) #Units in cm\n",
+ "print \"\\nThe image is located at i=\",round(i,2),\" cm\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex22.8:pg-1069"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ "The image is located at i= -13.33 cm\n",
+ "\n",
+ "The Size of the image is I= 1.0 cm\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 22_8\n",
+ " \n",
+ " \n",
+ "#To find the image positon and size\n",
+ "d1=-20 #units in cm\n",
+ "d2=40.0 #units in cm\n",
+ "i=(d1*d2)/(d2-d1) #Units in cm\n",
+ "print \"\\nThe image is located at i=\",round(i,2),\" cm\"\n",
+ "d3=3.0 #units in cm\n",
+ "I=(-i*d3)/d2 #units in cm\n",
+ "print \"\\nThe Size of the image is I=\",round(I),\" cm\"\n"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 2",
+ "language": "python",
+ "name": "python2"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.11"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}