summaryrefslogtreecommitdiff
path: root/Materials_science_and_engineering_an_introduction/CH21.ipynb
diff options
context:
space:
mode:
authorJovina Dsouza2014-06-18 12:43:07 +0530
committerJovina Dsouza2014-06-18 12:43:07 +0530
commit206d0358703aa05d5d7315900fe1d054c2817ddc (patch)
treef2403e29f3aded0caf7a2434ea50dd507f6545e2 /Materials_science_and_engineering_an_introduction/CH21.ipynb
parentc6f0d6aeb95beaf41e4b679e78bb42c4ffe45a40 (diff)
downloadPython-Textbook-Companions-206d0358703aa05d5d7315900fe1d054c2817ddc.tar.gz
Python-Textbook-Companions-206d0358703aa05d5d7315900fe1d054c2817ddc.tar.bz2
Python-Textbook-Companions-206d0358703aa05d5d7315900fe1d054c2817ddc.zip
adding book
Diffstat (limited to 'Materials_science_and_engineering_an_introduction/CH21.ipynb')
-rw-r--r--Materials_science_and_engineering_an_introduction/CH21.ipynb64
1 files changed, 64 insertions, 0 deletions
diff --git a/Materials_science_and_engineering_an_introduction/CH21.ipynb b/Materials_science_and_engineering_an_introduction/CH21.ipynb
new file mode 100644
index 00000000..bb8267f6
--- /dev/null
+++ b/Materials_science_and_engineering_an_introduction/CH21.ipynb
@@ -0,0 +1,64 @@
+{
+ "metadata": {
+ "name": "CH21"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 21: Optical Properties"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 21.1 Page No 125"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Calculation of absorption coefficient\n",
+ "\n",
+ "#Given\n",
+ "# x is thickness of glass(mm)\n",
+ "x=200\n",
+ "#It is intensity of non-absorbed radiation\n",
+ "#Io is intensity of non-relected radiation\n",
+ "f=0.98 #f=It/Io\n",
+ "\n",
+ "#Calculation\n",
+ "#b is absorption coefficient\n",
+ "b=-math.log(f)/x\n",
+ "\n",
+ "#result\n",
+ "print\"Absorption coefficient is \",round(b,4),\"mm**-1\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Absorption coefficient is 0.0001 mm**-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file