summaryrefslogtreecommitdiff
path: root/Fundamental_Of_Physics_by_D_Haliday/34-Electromagnetic_Waves.ipynb
diff options
context:
space:
mode:
authorPrashant S2020-04-14 10:25:32 +0530
committerGitHub2020-04-14 10:25:32 +0530
commit06b09e7d29d252fb2f5a056eeb8bd1264ff6a333 (patch)
tree2b1df110e24ff0174830d7f825f43ff1c134d1af /Fundamental_Of_Physics_by_D_Haliday/34-Electromagnetic_Waves.ipynb
parentabb52650288b08a680335531742a7126ad0fb846 (diff)
parent476705d693c7122d34f9b049fa79b935405c9b49 (diff)
downloadall-scilab-tbc-books-ipynb-master.tar.gz
all-scilab-tbc-books-ipynb-master.tar.bz2
all-scilab-tbc-books-ipynb-master.zip
Merge pull request #1 from prashantsinalkar/masterHEADmaster
Initial commit
Diffstat (limited to 'Fundamental_Of_Physics_by_D_Haliday/34-Electromagnetic_Waves.ipynb')
-rw-r--r--Fundamental_Of_Physics_by_D_Haliday/34-Electromagnetic_Waves.ipynb196
1 files changed, 196 insertions, 0 deletions
diff --git a/Fundamental_Of_Physics_by_D_Haliday/34-Electromagnetic_Waves.ipynb b/Fundamental_Of_Physics_by_D_Haliday/34-Electromagnetic_Waves.ipynb
new file mode 100644
index 0000000..00e1c52
--- /dev/null
+++ b/Fundamental_Of_Physics_by_D_Haliday/34-Electromagnetic_Waves.ipynb
@@ -0,0 +1,196 @@
+{
+"cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 34: Electromagnetic Waves"
+ ]
+ },
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 34.1: Sample_Problem_1.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"//Given that\n",
+"d = 1.8 //in meter\n",
+"P = 250 //in W\n",
+"c = 3*10^8 //in m/s\n",
+"mu = 4*%pi*10^-7 //in SI unit\n",
+"\n",
+"//Sample Problem 34-1\n",
+"printf('**Sample Problem 34-1**\n')\n",
+"Erms = sqrt(P*c*mu/(4*%pi*d^2))\n",
+"Brms = Erms/c\n",
+"printf('The rms value of electric field is equal to %1.2eV/m\n', Erms)\n",
+"Brms = printf('The rms value of magnetic field is equal to %1.2eT', Brms)"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 34.2: Sample_Problem_2.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"exec('Gravitation.sci', -1)\n",
+"\n",
+"//Given that\n",
+"density = 3.5*10^3 //in kg/m^3\n",
+"c = 3*10^8 //in m/s\n",
+"d = 1 //(say)\n",
+"Ps = 3.9*10^26 //in W\n",
+"\n",
+"//Sample Problem 34-2\n",
+"printf('**Sample Problem 34-2**\n')\n",
+"R = poly(0, 'R')\n",
+"A = %pi*R^2\n",
+"Ad = 4*%pi*d^2\n",
+"I = Ps/Ad\n",
+"Fr = I*A/c\n",
+"V = 4/3*%pi*R^3\n",
+"m = density*V\n",
+"Fg = GForce(m, Ms, d)\n",
+"R = roots(Fr-Fg)\n",
+"printf('The radius of the dust particle is %1.3em', R(1))"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 34.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",
+"theta1 = dtor(60)\n",
+"theta2 = dtor(90-60)\n",
+"I = 1 //(say)\n",
+"\n",
+"//Sample Problem 34-3\n",
+"printf('**Sample Problem 34-3**\n')\n",
+"//half of the original intensity, from the one-half rule\n",
+"I1 = I/2 \n",
+"I2 = I1*cos(theta1)^2\n",
+"I3 = I2*cos(theta2)^2\n",
+"printf('The ratio of the initial inensity to the final intensity of the light is %.4f', I3)"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 34.4: Sample_Problem_4.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"exec('degree_rad.sci', -1)\n",
+"\n",
+"//Given that\n",
+"n1 = 1.33\n",
+"n2 = 1.77\n",
+"n3 = 1.00\n",
+"theta1 = 50 //in degrees\n",
+"\n",
+"//Sample Problem 34-4a\n",
+"printf('**Sample Problem 34-4a**\n')\n",
+"AORl = 90 - theta1\n",
+"AORr = rtod(asin(n1/n2*sin(dtor(AORl))))\n",
+"printf('The angle of reflection is %1.2fdegrees\n', AORl)\n",
+"printf('The angle of refraction is %1.2fdegrees\n', AORr)\n",
+"\n",
+"//Sample Problem 34-4b\n",
+"printf('\n**Sample Problem 34-4b**\n')\n",
+"Af = rtod(asin(n2/n3*sin(dtor(AORr))))\n",
+"printf('The final angle of refraction is %1.2fdegrees', Af)"
+ ]
+ }
+,
+{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 34.5: Sample_Problem_5.sce"
+ ]
+ },
+ {
+"cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+"source": [
+"exec('degree_rad.sci', -1)\n",
+"\n",
+"//Given that\n",
+"e = 45 //in degrees\n",
+"\n",
+"//Sample Problem 34-5\n",
+"printf('**Sample Problem 34-5**\n')\n",
+"//For extrem case\n",
+"n = 1/sin(dtor(e))\n",
+"printf('The index of refraction should be at least %1.1f', n)"
+ ]
+ }
+],
+"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
+}