summaryrefslogtreecommitdiff
path: root/Principles_of_Physics_by_F.J.Bueche/Chapter22_1.ipynb
diff options
context:
space:
mode:
authorTrupti Kini2016-08-24 23:30:24 +0600
committerTrupti Kini2016-08-24 23:30:24 +0600
commit2e6cacc645c7aaaf848ea854843461f5bd589766 (patch)
treee348cd1aa9d4235edb12a6357a24b6295308bfe4 /Principles_of_Physics_by_F.J.Bueche/Chapter22_1.ipynb
parent6d761d4b1820e2b0e271f7ff8ee1e5da5814b07b (diff)
downloadPython-Textbook-Companions-2e6cacc645c7aaaf848ea854843461f5bd589766.tar.gz
Python-Textbook-Companions-2e6cacc645c7aaaf848ea854843461f5bd589766.tar.bz2
Python-Textbook-Companions-2e6cacc645c7aaaf848ea854843461f5bd589766.zip
Added(A)/Deleted(D) following books
A Principles_of_Physics_by_F.J.Bueche/Chapter10_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter10_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter11_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter13_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter14_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter15_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter16_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter17_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter18_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter19_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter1_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter1_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter20_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter21_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter22_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter23_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter24_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter25_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter26_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter27_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter2_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter2_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter3_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter3_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter4_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter4_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter5_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter5_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter6_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter6_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter7_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter7_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter8_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter9_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter9_2.ipynb A Principles_of_Physics_by_F.J.Bueche/chapter12_1.ipynb A Principles_of_Physics_by_F.J.Bueche/screenshots/11.2_1.png A Principles_of_Physics_by_F.J.Bueche/screenshots/24.4_1.png A Principles_of_Physics_by_F.J.Bueche/screenshots/8.4_1.png
Diffstat (limited to 'Principles_of_Physics_by_F.J.Bueche/Chapter22_1.ipynb')
-rw-r--r--Principles_of_Physics_by_F.J.Bueche/Chapter22_1.ipynb312
1 files changed, 312 insertions, 0 deletions
diff --git a/Principles_of_Physics_by_F.J.Bueche/Chapter22_1.ipynb b/Principles_of_Physics_by_F.J.Bueche/Chapter22_1.ipynb
new file mode 100644
index 00000000..9ecbdc8e
--- /dev/null
+++ b/Principles_of_Physics_by_F.J.Bueche/Chapter22_1.ipynb
@@ -0,0 +1,312 @@
+{
+ "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",
+ "import math \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",
+ "import math \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",
+ "import math \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": 5,
+ "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",
+ "import math \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": 6,
+ "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",
+ "import math \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": 7,
+ "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",
+ "import math \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": 8,
+ "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",
+ "import math \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
+}