summaryrefslogtreecommitdiff
path: root/Material_Science/material_science_ch_15.ipynb
diff options
context:
space:
mode:
authorhardythe12015-04-07 15:58:05 +0530
committerhardythe12015-04-07 15:58:05 +0530
commitc7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131 (patch)
tree725a7d43dc1687edf95bc36d39bebc3000f1de8f /Material_Science/material_science_ch_15.ipynb
parent62aa228e2519ac7b7f1aef53001f2f2e988a6eb1 (diff)
downloadPython-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.tar.gz
Python-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.tar.bz2
Python-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.zip
added books
Diffstat (limited to 'Material_Science/material_science_ch_15.ipynb')
-rwxr-xr-xMaterial_Science/material_science_ch_15.ipynb104
1 files changed, 104 insertions, 0 deletions
diff --git a/Material_Science/material_science_ch_15.ipynb b/Material_Science/material_science_ch_15.ipynb
new file mode 100755
index 00000000..19e8e51c
--- /dev/null
+++ b/Material_Science/material_science_ch_15.ipynb
@@ -0,0 +1,104 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 15: Display Devices"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.1, page no-406"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# wavelength of light\n",
+ "\n",
+ "import math\n",
+ "#Variable Declaration\n",
+ "e=1.609*10**-19 # Charge of electron\n",
+ "eg=1.8 # energy band gap\n",
+ "E=e*eg \n",
+ "h=6.626*10**-34 # Planck's constant\n",
+ "c=3*10**8 # speed of light\n",
+ "\n",
+ "#Calculation\n",
+ "lam=h*c/E\n",
+ "\n",
+ "#Result\n",
+ "print('The wavelenth of light emitted from given LED is %.4f \u00b5m'%(lam*10**6))"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The wavelenth of light emitted from given LED is 0.6863 \u00b5m\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.2, page no-406"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Band Gap of GaAsP\n",
+ "\n",
+ "import math\n",
+ "#Variable Declaration\n",
+ "e=1.6*10**-19 # Charge of electron\n",
+ "h=6.626*10**-34 # planck's constant\n",
+ "c=3*10**8 # speed of light in m/s\n",
+ "lam=6751*10**-10 # wavelength of green light from mercury lamp\n",
+ "\n",
+ "#Calculation\n",
+ "E=h*c/lam\n",
+ "E=E/e\n",
+ "\n",
+ "#Result\n",
+ "print('The band gap of the given GaAsP is %.1f eV'%E)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The band gap of the given GaAsP is 1.8 eV\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file