summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_Shyam_Rajeev/Chapter10.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Engineering_Physics_by_Shyam_Rajeev/Chapter10.ipynb')
-rwxr-xr-xEngineering_Physics_by_Shyam_Rajeev/Chapter10.ipynb67
1 files changed, 67 insertions, 0 deletions
diff --git a/Engineering_Physics_by_Shyam_Rajeev/Chapter10.ipynb b/Engineering_Physics_by_Shyam_Rajeev/Chapter10.ipynb
new file mode 100755
index 00000000..66376214
--- /dev/null
+++ b/Engineering_Physics_by_Shyam_Rajeev/Chapter10.ipynb
@@ -0,0 +1,67 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:32a1f58679b12138480dc1b5e5c18d84b4eee7617fb55dd2b494b13bcfd310c8"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "10: Magnetic properties of materials"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 10.1, Page number 247"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "r = 0.052; #radius of orbit(nm)\n",
+ "B = 1; #magnetic field(Wb/m**2)\n",
+ "e = 1.6*10**-19; #charge of electron(c)\n",
+ "m = 9.1*10**-31; #mass of electron(kg)\n",
+ "\n",
+ "#Calculation\n",
+ "r = r*10**-9; #radius of orbit(m)\n",
+ "delta_mew = (e**2)*(r**2)*B/(4*m); #change in magnetic moment(Am**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"change in magnetic moment is\",round(delta_mew/1e-29,3),\"*10**-29 Am**2\"\n",
+ "print \"answer given in the book is wrong\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "change in magnetic moment is 1.902 *10**-29 Am**2\n",
+ "answer given in the book is wrong\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file