diff options
author | Thomas Stephen Lee | 2015-08-28 16:53:23 +0530 |
---|---|---|
committer | Thomas Stephen Lee | 2015-08-28 16:53:23 +0530 |
commit | db0855dbeb41ecb8a51dde8587d43e5d7e83620f (patch) | |
tree | b95975d958cba9af36cb1680e3f77205354f6512 /Engineering_Physics_By_G_Vijayakumari | |
parent | 5a86a20b9de487553d4ef88719fb0fd76a5dd6a7 (diff) | |
download | Python-Textbook-Companions-db0855dbeb41ecb8a51dde8587d43e5d7e83620f.tar.gz Python-Textbook-Companions-db0855dbeb41ecb8a51dde8587d43e5d7e83620f.tar.bz2 Python-Textbook-Companions-db0855dbeb41ecb8a51dde8587d43e5d7e83620f.zip |
add books
Diffstat (limited to 'Engineering_Physics_By_G_Vijayakumari')
-rwxr-xr-x | Engineering_Physics_By_G_Vijayakumari/Chapter3.ipynb | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Engineering_Physics_By_G_Vijayakumari/Chapter3.ipynb b/Engineering_Physics_By_G_Vijayakumari/Chapter3.ipynb index b55e472d..a832ae0d 100755 --- a/Engineering_Physics_By_G_Vijayakumari/Chapter3.ipynb +++ b/Engineering_Physics_By_G_Vijayakumari/Chapter3.ipynb @@ -11,6 +11,63 @@ "cell_type": "markdown",
"metadata": {},
"source": [
+ "##Example number 3.1, Page number 57"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "miller indices of 1st plane is ( 0.0 2.0 0.0 )\n",
+ "miller indices of 2nd plane is ( 1.0 2.0 0.0 )\n",
+ "miller indices of 3rd plane is ( 2.0 2.0 0.0 )\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "x1=float('inf'); #numerical intercept on X axis\n",
+ "y1=1/2; #numerical intercept on Y axis\n",
+ "z1=float('inf'); #numerical intercept on Z axis\n",
+ "x2=1; #numerical intercept on X axis\n",
+ "y2=1/2; #numerical intercept on Y axis\n",
+ "z2=float('inf'); #numerical intercept on Z axis\n",
+ "x3=1/2; #numerical intercept on X axis\n",
+ "y3=1/2; #numerical intercept on Y axis\n",
+ "z3=float('inf'); #numerical intercept on Z axis\n",
+ "\n",
+ "#Calculation\n",
+ "p1=1/x1; #The miller indices of x-axis\n",
+ "q1=1/y1; #The miller indices of y-axis\n",
+ "r1=1/z1; #The miller indices of z-axis\n",
+ "p2=1/x2; #The miller indices of x-axis\n",
+ "q2=1/y2; #The miller indices of y-axis\n",
+ "r2=1/z2; #The miller indices of z-axis\n",
+ "p3=1/x3; #The miller indices of x-axis\n",
+ "q3=1/y3; #The miller indices of y-axis\n",
+ "r3=1/z3; #The miller indices of z-axis\n",
+ "\n",
+ "#Result\n",
+ "print \"miller indices of 1st plane is (\",p1,q1,r1,\")\"\n",
+ "print \"miller indices of 2nd plane is (\",p2,q2,r2,\")\"\n",
+ "print \"miller indices of 3rd plane is (\",p3,q3,r3,\")\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
"##Example number 3.3, Page number 60"
]
},
|