diff options
author | hardythe1 | 2014-07-25 12:32:04 +0530 |
---|---|---|
committer | hardythe1 | 2014-07-25 12:32:04 +0530 |
commit | dccd504f6bd2f5e97c54d1f0b0d2a99f83497ce5 (patch) | |
tree | 88c95b7c5d4bccfbcb2bdf16bf2bef0b73184808 /Engineering_Physics/Chapter9.ipynb | |
parent | f2be2edf7d59ab0147b675ed707ebed209b3dcba (diff) | |
download | Python-Textbook-Companions-dccd504f6bd2f5e97c54d1f0b0d2a99f83497ce5.tar.gz Python-Textbook-Companions-dccd504f6bd2f5e97c54d1f0b0d2a99f83497ce5.tar.bz2 Python-Textbook-Companions-dccd504f6bd2f5e97c54d1f0b0d2a99f83497ce5.zip |
adding books
Diffstat (limited to 'Engineering_Physics/Chapter9.ipynb')
-rwxr-xr-x | Engineering_Physics/Chapter9.ipynb | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Engineering_Physics/Chapter9.ipynb b/Engineering_Physics/Chapter9.ipynb new file mode 100755 index 00000000..ff53dd34 --- /dev/null +++ b/Engineering_Physics/Chapter9.ipynb @@ -0,0 +1,62 @@ +{ + "metadata": { + "name": "Chapter9" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": "9: Superconducting Materials" + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example number 9.1, Page number 255" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#importing modules\nimport math\n\n#Variable declaration\nH0 = 6.5*10**4; #magnetic field intensity(A/m)\nT = 4.2; #temperature(K)\nTc = 7.18; #critical temperature(K)\n\n#Calculation\nHc = H0*(1-((T**2)/(Tc**2))); #critical magnetic field intensity(A/m)\nHc = Hc*10**-4;\nHc=math.ceil(Hc*10**3)/10**3; #rounding off to 3 decimals\n\n#Result\nprint \"critical magnetic field intensity is\",Hc,\"*10**4 A/m\"", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "critical magnetic field intensity is 4.276 *10**4 A/m\n" + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example number 9.2, Page number 255" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#importing modules\nimport math\n\n#Variable declaration\nTc1 = 4.185; #critical temperature for M1(K)\nTc2 = 4.133; #critical temperature for M2(K)\nM1 = 199.5; #isotopic mass\nalpha = 0.5;\n\n#Calculation\nA = math.pow(M1,alpha)*Tc1/Tc2;\nM2 = math.pow(A,1/alpha); #isotopic mass\nM2=math.ceil(M2*10**3)/10**3; #rounding off to 3 decimals\n\n#Result\nprint \"isotopic mass is\",M2\nprint \"answer given in the book is wrong\"", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "isotopic mass is 204.552\nanswer given in the book is wrong\n" + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file |