summaryrefslogtreecommitdiff
path: root/Materials_science_and_engineering_an_introduction/CH21.ipynb
blob: bb8267f6b493239a26df041fc26fe0f6fa5e320a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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": {}
  }
 ]
}