summaryrefslogtreecommitdiff
path: root/Principles_Of_Geotechnical_Engineering/Chapter2.ipynb
blob: d6a4aa22ec8ba1cc095dbd60269a10ea8aef88c6 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:d218f94a8c632b085e71b27c7df143c1bf3edcfb5f6cf33f03429d4e281c4928"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter2-Origin of sail and Grain size"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex2-pg45"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calculate uniformity coefficient and coefficient of gradation\n",
      "##initialisation of variables\n",
      "##from graph\n",
      "d= 0.15 ##mm\n",
      "w= 0.17 ##mm\n",
      "a= 0.27 ##mm\n",
      "##calculations\n",
      "C= a/d\n",
      "c= w**2/(a*d)\n",
      "##results\n",
      "print'%s %.1f %s'%('uniformity coefficient = ',C,\"\")\n",
      "print'%s %.2f %s'% ('coefficient of gradation = ',c,' ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "uniformity coefficient =  1.8 \n",
        "coefficient of gradation =  0.71  \n"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}