summaryrefslogtreecommitdiff
path: root/Fundamental_Of_Physics_by_D_Haliday/36-Interference.ipynb
diff options
context:
space:
mode:
authorprashantsinalkar2020-04-14 10:19:27 +0530
committerprashantsinalkar2020-04-14 10:23:54 +0530
commit476705d693c7122d34f9b049fa79b935405c9b49 (patch)
tree2b1df110e24ff0174830d7f825f43ff1c134d1af /Fundamental_Of_Physics_by_D_Haliday/36-Interference.ipynb
parentabb52650288b08a680335531742a7126ad0fb846 (diff)
downloadall-scilab-tbc-books-ipynb-476705d693c7122d34f9b049fa79b935405c9b49.tar.gz
all-scilab-tbc-books-ipynb-476705d693c7122d34f9b049fa79b935405c9b49.tar.bz2
all-scilab-tbc-books-ipynb-476705d693c7122d34f9b049fa79b935405c9b49.zip
Initial commit
Diffstat (limited to 'Fundamental_Of_Physics_by_D_Haliday/36-Interference.ipynb')
-rw-r--r--Fundamental_Of_Physics_by_D_Haliday/36-Interference.ipynb220
1 files changed, 220 insertions, 0 deletions
diff --git a/Fundamental_Of_Physics_by_D_Haliday/36-Interference.ipynb b/Fundamental_Of_Physics_by_D_Haliday/36-Interference.ipynb
new file mode 100644
index 0000000..7b1d07c
--- /dev/null
+++ b/Fundamental_Of_Physics_by_D_Haliday/36-Interference.ipynb
@@ -0,0 +1,220 @@
+{
+"cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 36: Interference"
+ ]
+ },
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 36.1: Sample_Problem_1.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"//Given that\n",
+"l = 550*10^-9 //in meter\n",
+"n2 = 1.60\n",
+"n1 = 1.00\n",
+"t = 2.6*10^-6 //in meter\n",
+"\n",
+"//Sample Problem 36-1a\n",
+"printf('**Sample Problem 36-1a**\n')\n",
+"deltaPHI = t/l*(n2 - n1)*360\n",
+"printf('The phase difference is equal to %1.2fdegrees\n', deltaPHI)\n",
+"\n",
+"//Sample Problem 36-1b\n",
+"printf('\n**Sample Problem 36-1b**\n')\n",
+"printf('The interference produced would be constructive')"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 36.2: Sample_Problem_2.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"//Given that\n",
+"l = 546*10^-9 //in meter\n",
+"d = 12*10^-5 //in meter\n",
+"D = 55*10^-2 //in meter\n",
+"\n",
+"//Sample Problem 36-2\n",
+"printf('**Sample Problem 36-2**\n')\n",
+"beeta = l*D/d\n",
+"printf('The difference between two adjacent maxima is %1.2em', beeta)"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 36.3: Sample_Problem_3.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"exec('degree_rad.sci', -1)\n",
+"\n",
+"//Given that\n",
+"Eo = 1 //(say)\n",
+"E1 = Eo\n",
+"E2 = Eo\n",
+"E3 = Eo\n",
+"phi1 = dtor(0)\n",
+"phi2 = dtor(60)\n",
+"phi3 = dtor(-30)\n",
+"\n",
+"//Sample Problem 36-3\n",
+"printf('**Sample Problem 36-3**\n')\n",
+"Eh = E1*cos(phi1) + E2*cos(phi2) + E3*cos(phi3)\n",
+"Ev = E1*sin(phi1) + E2*sin(phi2) + E3*sin(phi3)\n",
+"Er = sqrt(Ev^2 + Eh^2)\n",
+"theta = rtod(atan(Ev/Eh))\n",
+"printf('The resultant electric field is E=%1.2f*Eo*sin(w*t + %1.2f)', Er, theta)"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 36.4: Sample_Problem_4.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"//Given that\n",
+"lmin = 400 //in nm\n",
+"lmax = 690 //in nm\n",
+"n2 = 1.33\n",
+"L = 320 //in nm\n",
+"\n",
+"//Sample Problem 36-4\n",
+"printf('**Sample Problem 36-4**\n')\n",
+"flag = 1\n",
+"odd_number = 1\n",
+"while flag == 1\n",
+" lambda = 4*L*n2/odd_number\n",
+" if lambda > lmin & lambda < lmax then\n",
+" flag = 0\n",
+" end\n",
+" odd_number = odd_number + 2\n",
+"end\n",
+"printf('The wavelength of the light is %1.2enm', lambda)"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 36.5: Sample_Problem_5.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"//Given that\n",
+"n1 = 1.38\n",
+"n2 = 1.50\n",
+"lambda = 550 //in nm\n",
+"\n",
+"//Sample Problem 36-5\n",
+"printf('**Sample Problem 36-5**\n')\n",
+"Lmin = lambda/4/n1\n",
+"printf('The minimum value of wavelength possible is %1.2fnm', Lmin)"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 36.6: Sample_Problem_6.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"//Given that\n",
+"lambda = 632.8*10^-9 //in meter\n",
+"i = 0 //in rad\n",
+"dFringes = 6\n",
+"bFringes = 5\n",
+"\n",
+"//Sample Problem 36-6\n",
+"printf('**Sample Problem 36-6**\n')\n",
+"//Assume the difference in thickness is 't'\n",
+"//then the path difference will be 2*L\n",
+"//hence\n",
+"deltaL = bFringes/2*lambda\n",
+"printf('The difference in thickness is equal to %fnm', deltaL*10^9)"
+ ]
+ }
+],
+"metadata": {
+ "kernelspec": {
+ "display_name": "Scilab",
+ "language": "scilab",
+ "name": "scilab"
+ },
+ "language_info": {
+ "file_extension": ".sce",
+ "help_links": [
+ {
+ "text": "MetaKernel Magics",
+ "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
+ }
+ ],
+ "mimetype": "text/x-octave",
+ "name": "scilab",
+ "version": "0.7.1"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}