diff options
author | hardythe1 | 2015-07-03 12:23:43 +0530 |
---|---|---|
committer | hardythe1 | 2015-07-03 12:23:43 +0530 |
commit | 9d260e6fae7328d816a514130b691fbd0e9ef81d (patch) | |
tree | 9e6035702fca0f6f8c5d161de477985cacad7672 /sample_notebooks/VidyashankarVenkatraman/Chapter_3_Kittel.ipynb | |
parent | afcd9e5397e3e1bde0392811d0482d76aac391dc (diff) | |
download | Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.tar.gz Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.tar.bz2 Python-Textbook-Companions-9d260e6fae7328d816a514130b691fbd0e9ef81d.zip |
add/remove books
Diffstat (limited to 'sample_notebooks/VidyashankarVenkatraman/Chapter_3_Kittel.ipynb')
-rwxr-xr-x | sample_notebooks/VidyashankarVenkatraman/Chapter_3_Kittel.ipynb | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/sample_notebooks/VidyashankarVenkatraman/Chapter_3_Kittel.ipynb b/sample_notebooks/VidyashankarVenkatraman/Chapter_3_Kittel.ipynb new file mode 100755 index 00000000..8760577a --- /dev/null +++ b/sample_notebooks/VidyashankarVenkatraman/Chapter_3_Kittel.ipynb @@ -0,0 +1,79 @@ +{ + "metadata": { + "name": "Chapter_3_Kittel" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": "Introduction to Solid State Physics" + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example number 3.1, Page Number 84\n" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#importing module\n\nfrom __future__ import division\nimport math\n\n#Variable declaration\n\ne = 5*pow(10,-10); # charge on the electron\n\nr0 = 1*pow(10,-8); # atomic radius\n\n# Calculation\n\nR = 4*10**(-8); # interatomic distance in cm\n\nU = -4*e**2*r0**5/R**6; # The van der waals interaction formula\n\n# Result\n\nprint \" The Van Der Waals interaction energy is \",U ,\"ergs\"", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": " The Van Der Waals interaction energy is -2.44140625e-14 ergs\n" + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example number 3.2, Page Number 91" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#importing module\n\nfrom __future__ import division\nimport math\n\n# Variable declaration\n\ne = 4.8*pow(10,-10); # charge on proton\nr0 = 2.81*pow(10,-8); # distance between positive and nearest negative ion in Nacl crystal\n\nU = e**2/r0; # in ergs\n\nE = U/(1.6019*pow(10,-12)); # converting to eV as 1eV = 1.6019 * 10**(-12) ergs\n\n#result\nprint \" The potential energy of the two ions by themselves is \",E,\"eV\"\n\n\n\n\n\n\n ", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": " The potential energy of the two ions by themselves is 5.11847696874 eV\n" + } + ], + "prompt_number": 22 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "", + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 19 + }, + { + "cell_type": "code", + "collapsed": false, + "input": "", + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file |