summaryrefslogtreecommitdiff
path: root/sample_notebooks/abhishekchauhan
diff options
context:
space:
mode:
authorhardythe12015-05-05 14:21:39 +0530
committerhardythe12015-05-05 14:21:39 +0530
commitfba055ce5aa0955e22bac2413c33493b10ae6532 (patch)
treebe70ef4fccd07c9c88de778014219201b4ea971f /sample_notebooks/abhishekchauhan
parent67068710030ddd6b6c809518c34af2e04e0bf7ca (diff)
downloadPython-Textbook-Companions-fba055ce5aa0955e22bac2413c33493b10ae6532.tar.gz
Python-Textbook-Companions-fba055ce5aa0955e22bac2413c33493b10ae6532.tar.bz2
Python-Textbook-Companions-fba055ce5aa0955e22bac2413c33493b10ae6532.zip
add books
Diffstat (limited to 'sample_notebooks/abhishekchauhan')
-rwxr-xr-xsample_notebooks/abhishekchauhan/chapter13.ipynb109
1 files changed, 109 insertions, 0 deletions
diff --git a/sample_notebooks/abhishekchauhan/chapter13.ipynb b/sample_notebooks/abhishekchauhan/chapter13.ipynb
new file mode 100755
index 00000000..926e0ec5
--- /dev/null
+++ b/sample_notebooks/abhishekchauhan/chapter13.ipynb
@@ -0,0 +1,109 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:6fef8ff94dd52625157ad00ae0d085cf586398bc9e9ef68fa84ebe8ac86e29db"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter13:SUPERCONDUCTIVITY"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "\n",
+ "Ex13.1:pg-357"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#example 1\n",
+ "#to calculate value of Temperature\n",
+ "import math\n",
+ "Bc=105.0*10**3 #magnetic field in amp/m\n",
+ "Bo=150.0*10**3 #critical field of the metal in amp/m \n",
+ "Tc=9.2 #critical temperature of the metal in K\n",
+ "T=Tc*math.sqrt(1-(Bc/Bo))#temperature\n",
+ "print\"\\n the value of temperature is\",round(T,3),\"K\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ " the value of temperature is 5.039 K\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex13.2:pg-357"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#example 2\n",
+ "#to calculate temperature\n",
+ "import math\n",
+ "Tc=7.18 #critical temperature in K\n",
+ "Bc=4.5*10**3 #critical field in A/m\n",
+ "Bo=6.5*10**3 #critical magnetic field in A/m\n",
+ "T=Tc*math.sqrt(1-(Bc/Bo))# temperature\n",
+ "print\"\\n the temperature is\",round(T,2),\"K\"\n",
+ "#to calculate critical current density at that temperature\n",
+ "r=1*10**-3 #diameter of the wire in mm\n",
+ "TJc=(Bc*2*math.pi*r)/(math.pi*r**2)# critical current density\n",
+ "print\"\\n the critical current density at that temperature is\",round(TJc,2),\"A/m^2\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ " the temperature is 3.98 K\n",
+ "\n",
+ " the critical current density at that temperature is 9000000.0 A/m^2\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file