summaryrefslogtreecommitdiff
path: root/Principles_of_Physics_by_F.J.Bueche/Chapter18_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/Chapter18_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/Chapter18_1.ipynb')
-rw-r--r--Principles_of_Physics_by_F.J.Bueche/Chapter18_1.ipynb209
1 files changed, 209 insertions, 0 deletions
diff --git a/Principles_of_Physics_by_F.J.Bueche/Chapter18_1.ipynb b/Principles_of_Physics_by_F.J.Bueche/Chapter18_1.ipynb
new file mode 100644
index 00000000..3bab5f4c
--- /dev/null
+++ b/Principles_of_Physics_by_F.J.Bueche/Chapter18_1.ipynb
@@ -0,0 +1,209 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 18:Magnetism"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex18.1:pg-901"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The force on the wire is F= 0.000958363 N\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 18_1\n",
+ "import math \n",
+ " \n",
+ "#To find the force on the wire\n",
+ "b=2*10**-4 #Units in T\n",
+ "i=20 #Units in A\n",
+ "l=0.3 #Units in meters\n",
+ "theta=53 #Units in degrees\n",
+ "thetaa=math.sin(theta*math.pi/180) #Units in Radians \n",
+ "f=b*i*l*thetaa #Units in N\n",
+ "print \"The force on the wire is F=\",round(f,9),\" N\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex18.2:pg-902"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The magnitude of magnetic field is B= 0.2609 T\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 18_2\n",
+ "import math \n",
+ " \n",
+ " #To find the magnitude of the magnetic field\n",
+ "m=1.67*10**-27 #Units in Kg\n",
+ "v=10**6 #Units in meters/sec\n",
+ "r=4*10**-2 #Units in Meters\n",
+ "q=1.6*10**-19 #Units in C or eV\n",
+ "b=(m*v)/(r*q) #Units in T\n",
+ "print \"The magnitude of magnetic field is B=\",round(b,4),\" T\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex18.3:pg-903"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The magnetic field exerts a force of q*v*B upwards on the particle.\n",
+ "The particle doesnot deflect because the two forces are equal\n",
+ "Hence v=(E/B)\n",
+ "A particle with this speed will pass through the region of the crossfields and undeflected\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 18_3\n",
+ "import math \n",
+ "#To show that the particles does not deflect from its straight line path\n",
+ "print \"The magnetic field exerts a force of q*v*B upwards on the particle.\\nThe particle doesnot deflect because the two forces are equal\\nHence v=(E/B)\\nA particle with this speed will pass through the region of the crossfields and undeflected\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex18.4:pg-903"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The value of B is= 1.2 G\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 18_4\n",
+ "import math \n",
+ "#To calculate the value of B at a radial distance of 5 cm\n",
+ "u=4*math.pi*10**-7 #Units in T m/A\n",
+ "i=30 #Units in A\n",
+ "r=0.05 #Units in Meters\n",
+ "b=(u*i)/(2*math.pi*r) #Units in T\n",
+ "b=b*10**4 #Units in G\n",
+ "print \"The value of B is=\",round(b,2),\" G\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex18.5:pg-904"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The magnetic moment of Hydrogen atom is=\n",
+ "9.319e-24\n",
+ "A meters**2\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 18_5\n",
+ "import math\n",
+ " \n",
+ "#To find the magnetic moment of hydrogen atom\n",
+ "r=0.53*10**-10 #Units in meters\n",
+ "a=math.pi*r**2 #Units in meters**2\n",
+ "q=1.6*10**-19 #Units in C\n",
+ "f=6.6*10**15 #Units in sec**-1\n",
+ "i=q*f #Units in A\n",
+ "u=i*a #Units in A meter**2\n",
+ "print \"The magnetic moment of Hydrogen atom is=\"\n",
+ "print round(u,27)\n",
+ "print \"A meters**2\"\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
+}