summaryrefslogtreecommitdiff
path: root/Semiconductor_circuit_approximations_by_A.P._Malvino/ch9.ipynb
blob: da584e87bfdeea8329fe24cf5c742ccf777c5179 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Chapter 9 Class A Power Amplifiers"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.1 Page No 220"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEaCAYAAAAcz1CnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYFFXWx/HvDxAFUTFgDmBaV0XEwGJAx/AaMK6YI0ZE\nFBMG2FVZXXPGHDDAKiKioqIYGdRdRMkImHEVs4IsKArIef+4NdIOE3pmqro6nM/z9EOH6rpnhltz\n62aZGc4550pXo7QDcM45ly4vCJxzrsR5QeCccyXOCwLnnCtxXhA451yJ84LAOedKnBcEeU5SV0lv\nJHTuxZI2rOazckknR8+PkfRiEjG40iTpIUlXJHDeMkmf1/D573le0l2S/h53DIXIC4IYSfpU0s+S\n/idptqR/S+omSZWO6yDp+eiYHySNkdQ1pbCrY9EDM3vEzPZOOR6XB6IbhFmSmlbx2dGSxkqaK+nL\nKI/vVM2pfs9faTGz7mb2zzRjyBdeEMTLgP3NbEVgfeAa4CKgf8UBknYAXgVGAhuZ2apAd2Cf3Ifr\nXPYktQY6AN8CB1b67DzgZuCfwOrAesAdlY+rfMok4nR15wVBQsxsrpk9CxwBnCBp8+ij64GHzOx6\nM5sVHTvezI7M5rySdpT0jqQfJb0dFSwVn50oaVpUI/lY0mmVvntBdK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HVgdBTD3yvCp+ZtFAcTahiPZ/ysJwJDos7jRcDdVXzvXmCy\npIGE3+EYSRMIhUpW/Rku7+TyerBqnlf1usJgQkd1Zv/FCcD1kiYR7vQvr+J79wIjJL1K2Ed6ZJRX\nB5KDrVvT4PsROOdcifMagXPOlTjvI2gASW0Jw9Ey/WJmO6QRj3Np8uuhcHnTkHPOlThvGnLOuRLn\nBYFzzpU4Lwicc67EeUHgnHMlzgsC55wrcf8POf/W21JRHsEAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f9f5f942a50>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "DC and AC load line shown in figure.\n"
     ]
    }
   ],
   "source": [
    "from numpy import arange\n",
    "%matplotlib inline\n",
    "from matplotlib.pyplot import plot,xlabel,ylabel,show,title,subplot\n",
    "# given data\n",
    "V_CC= 10##  V\n",
    "V_BE= 0.7##  V\n",
    "R1= 2.2##  kΩ\n",
    "R2= 10##  kΩ\n",
    "R_E= 1##  kΩ\n",
    "R_C= 3.6##  kΩ\n",
    "R= 1.5##  kΩ\n",
    "# The base voltage\n",
    "V_B= R1*V_CC/(R1+R2)##  V\n",
    "# The emitter current,\n",
    "I_E= (V_B-V_BE)/R_E##  mA\n",
    "# The collector current,\n",
    "I_CQ= I_E##  mA\n",
    "# The collector emitter voltage,\n",
    "V_CE= V_CC-I_E*(R_C+R_E)##  V\n",
    "V_CEQ= V_CE##  V\n",
    "# The saturation current,\n",
    "I_Csat= V_CC/(R_C+R_E)##  mA\n",
    "V_CEcutoff= V_CC##  V\n",
    "V_CE= arange(0,0.1+V_CEcutoff,0.1)  #  V\n",
    "I_C= (V_CC-V_CE)/(R_C+R_E)##  mA\n",
    "# The dc and ac load line\n",
    "subplot(121)\n",
    "plot(V_CE,I_C)\n",
    "xlabel(\"V_CE in volts\")\n",
    "ylabel(\"I_C in mA\")\n",
    "title(\"DC load line\")\n",
    "r_L= R_C*R/(R_C+R)##  kΩ\n",
    "I_Csat= I_CQ+V_CEQ/r_L##  mA\n",
    "Vce_cutoff= V_CEQ+I_CQ*r_L##  V\n",
    "x=[0,Vce_cutoff]#\n",
    "y=[I_Csat, 0]\n",
    "subplot(122)\n",
    "plot(x,y)\n",
    "xlabel(\"V_CE in volts\")\n",
    "ylabel(\"I_C in mA\")\n",
    "title(\"AC load line\")\n",
    "show()\n",
    "print \"DC and AC load line shown in figure.\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.2 Page No 221"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The cut off value of V_CE = 18.66 volts\n"
     ]
    }
   ],
   "source": [
    "# given data\n",
    "V_BE= 0.7##  V\n",
    "V_CC= 30##  V\n",
    "R_E= 8.2##  Ω\n",
    "R1= 22##  Ω\n",
    "R2= 47##  Ω\n",
    "R_C= 10##  Ω\n",
    "R_L= 30##in Ω\n",
    "# The base to ground voltage,\n",
    "V_B= R1*V_CC/(R1+R2)##  V\n",
    "# The emitter current,\n",
    "I_E= (V_B-V_BE)/R_E##  A\n",
    "# The collector current,\n",
    "I_CQ= I_E##  A\n",
    "# The collector emitter voltage,\n",
    "V_CEQ= V_CC-I_E*(R_E+R_C)##  V\n",
    "# The load resistance,\n",
    "r_L= R_C*R_L/(R_C+R_L)##  Ω\n",
    "I_Csat= I_E+V_CEQ/r_L##  A\n",
    "Vce_cutoff= V_CEQ+I_CQ*r_L##  V\n",
    "print \"The cut off value of V_CE = %.2f volts\"%Vce_cutoff"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.3 Page No 223"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The cut off value of V_CE = 15.35 volts\n"
     ]
    }
   ],
   "source": [
    "# given data\n",
    "V_BE= 0.7##  V\n",
    "V_CC= 20##  V\n",
    "V_B= 10##  V\n",
    "R_E= 50##  Ω\n",
    "# The collector current,\n",
    "I_CQ= (V_B-V_BE)/R_E##  A\n",
    "# The collector emitter voltage,\n",
    "V_CEQ= V_CC-I_CQ*R_E##  V\n",
    "R1= 50##  Ω\n",
    "R2= 50##  Ω\n",
    "# The load resistance,\n",
    "r_L= R1*R2/(R1+R2)##  Ω\n",
    "I_Csat= I_CQ+V_CEQ/r_L##  A\n",
    "Vce_cutoff= V_CEQ+I_CQ*r_L##  V\n",
    "print \"The cut off value of V_CE = %.2f volts\"%Vce_cutoff"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.4 Page No 227"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The ac compliance = 5.71 volts\n"
     ]
    }
   ],
   "source": [
    "# given data\n",
    "V_E= 1.0##  V\n",
    "R_E=1*10**3##  Ω\n",
    "V_CC= 10.0##  V\n",
    "R_C= 4.0*10**3##  Ω\n",
    "R_L= 10.0*10**3##  Ω\n",
    "# The collector current,\n",
    "I_CQ= V_E/R_E##  A\n",
    "I_C= I_CQ##  A\n",
    "# The collector emitter voltage,\n",
    "V_CEQ= V_CC-I_C*(R_C+R_E)##  V\n",
    "# The load resistance,\n",
    "r_L= R_L*R_C/(R_L+R_C)##  Ω\n",
    "#The ac compliance,\n",
    "PP= 2*I_CQ*r_L##  V\n",
    "print \"The ac compliance = %.2f volts\"%PP"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.5 Page No 227"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "When R_L = 1 MΩ, the value of 2I_CQrL = 7.97 volts\n",
      "When R_L = 100 kΩ, the value of 2I_CQrL = 7.69 volts\n",
      "When R_L = 10 kΩ, the value of 2I_CQrL = 5.71 volts\n",
      "When R_L = 1 kΩ, the value of 2I_CQrL = 1.60 volts\n",
      "When R_L = 100 Ω, the value of 2I_CQrL = 0.20 volts\n"
     ]
    }
   ],
   "source": [
    "# given data\n",
    "V_E= 1.0##  V\n",
    "R_E=1*10**3##  Ω\n",
    "R_C= 4.0*10**3##  Ω\n",
    "V_CC= 10.0##  V\n",
    "I_CQ= V_E/R_E##  A\n",
    "I_C= I_CQ##  A\n",
    "V_CEQ= V_CC-I_C*(R_C+R_E)##  V\n",
    "# (i) when R_L = 1 MΩ, the value of 2I_CQrL\n",
    "R_L= 1*10**6##  Ω\n",
    "r_L= R_L*R_C/(R_L+R_C)##  Ω\n",
    "I_CQrL= I_CQ*r_L##in A\n",
    "print \"When R_L = 1 MΩ, the value of 2I_CQrL = %.2f volts\"%(2*I_CQrL)\n",
    "# (ii) when R_L = 100 kΩ, the value of 2I_CQrL\n",
    "R_L= 100*10**3##  Ω\n",
    "r_L= R_L*R_C/(R_L+R_C)##  Ω\n",
    "I_CQrL= I_CQ*r_L##in A\n",
    "print \"When R_L = 100 kΩ, the value of 2I_CQrL = %.2f volts\"%(2*I_CQrL)\n",
    "# (iii) when R_L = 10 kΩ, the value of 2I_CQrL\n",
    "R_L= 10*10**3##  Ω\n",
    "r_L= R_L*R_C/(R_L+R_C)##  Ω\n",
    "I_CQrL= I_CQ*r_L##in A\n",
    "print \"When R_L = 10 kΩ, the value of 2I_CQrL = %.2f volts\"%(2*I_CQrL)\n",
    "# (iv) when R_L = 1 kΩ, the value of 2I_CQrL\n",
    "R_L= 1*10**3##  Ω\n",
    "r_L= R_L*R_C/(R_L+R_C)##  Ω\n",
    "I_CQrL= I_CQ*r_L##in A\n",
    "print \"When R_L = 1 kΩ, the value of 2I_CQrL = %.2f volts\"%(2*I_CQrL)\n",
    "# (v) when R_L = 100 Ω, the value of 2I_CQrL\n",
    "R_L= 100##  Ω\n",
    "r_L= R_L*R_C/(R_L+R_C)##  Ω\n",
    "I_CQrL= I_CQ*r_L##in A\n",
    "print \"When R_L = 100 Ω, the value of 2I_CQrL = %.2f volts\"%(2*I_CQrL)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.6 Page No 230"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The value of R1 is    : 40.40   kΩ  (standard value : 39 kΩ)\n",
      "The value of R2 is    : 7.60    kΩ  (standard value : 7.5 kΩ)\n",
      "The value of R_E is   : 240.00   Ω  (standard value : 240 Ω)\n",
      "The value of R_C is   : 0.96    kΩ  (standard value : 1 kΩ)\n"
     ]
    }
   ],
   "source": [
    "# given data\n",
    "V_CC= 12##  V\n",
    "V_BE= 0.7##  V\n",
    "I_CQ= 5*10**-3##  A\n",
    "bita= 200## unit less\n",
    "# The emitter voltage,\n",
    "V_E= 0.1*V_CC##  V\n",
    "# The emitter current,\n",
    "I_E= I_CQ##  A\n",
    "# The emitter resistance,\n",
    "R_E= V_E/I_E##  Ω\n",
    "# The collector resistance,\n",
    "R_C= 4*R_E##  Ω\n",
    "# The base voltage,\n",
    "V_B= V_E+V_BE##  V\n",
    "I_C= I_CQ##  A\n",
    "I_B= I_C/bita##  A\n",
    "R= V_CC/(10*I_B)##  Ω\n",
    "R2= V_B/(10*I_B)##  Ω\n",
    "R1= R-R2##  Ω\n",
    "R1= R1*10**-3##  k ohm\n",
    "R2= R2*10**-3##  k ohm\n",
    "R_C= R_C*10**-3##  k ohm\n",
    "print \"The value of R1 is    : %.2f\"%(R1),\"  kΩ  (standard value : 39 kΩ)\"\n",
    "print \"The value of R2 is    : %.2f\"%(R2),\"   kΩ  (standard value : 7.5 kΩ)\"\n",
    "print \"The value of R_E is   : %.2f\"%(R_E),\"  Ω  (standard value : 240 Ω)\"\n",
    "print \"The value of R_C is   : %.2f\"%(R_C),\"   kΩ  (standard value : 1 kΩ)\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.7 Page No 231"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The ac compliance = 5.15 volts\n"
     ]
    }
   ],
   "source": [
    "# given data\n",
    "I_CQ= 5*10**-3##  A\n",
    "R_C= 1*10**3##  Ω\n",
    "R_L= 1*10**3##  Ω\n",
    "# The load resistance\n",
    "r_L= R_C*R_L/(R_C+R_L)##  Ω\n",
    "# The ac compliance,\n",
    "PP= 2*I_CQ*r_L##  V\n",
    "I_CQ= 5.15*10**-3##  A\n",
    "PP= 2*I_CQ*r_L##  V\n",
    "print \"The ac compliance = %.2f volts\"%PP"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.9 Page No 234"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The value of R1 is    : 27.97   kΩ  (standard value : 39 kΩ)\n",
      "The value of R2 is    : 6.83    kΩ  (standard value : 7.5 kΩ)\n",
      "The value of R_E is   : 240.00   Ω  (standard value : 240 Ω)\n",
      "The value of R_C is   : 1.00    kΩ  (standard value : 1 kΩ)\n"
     ]
    }
   ],
   "source": [
    "# given data\n",
    "V_CC= 12.0##  V\n",
    "V_BE= 0.7##  V\n",
    "R_C= 1*10**3##  Ω\n",
    "R_E= 240.0##  Ω\n",
    "r_L= 500.0##  Ω\n",
    "bita= 200.0## unit less\n",
    "# The required collector current,\n",
    "I_CQ= V_CC/(R_C+R_E+r_L)##  A\n",
    "# The emitter voltage,\n",
    "V_E= I_CQ*R_E##  V\n",
    "# The base voltage,\n",
    "V_B= V_E+V_BE##  V\n",
    "I_C= I_CQ##  A\n",
    "I_B= I_C/bita##  A\n",
    "# The total resistance of the voltage divider,\n",
    "R= V_CC/(10*I_B)##  Ω\n",
    "R2= V_B/(10*I_B)##  Ω\n",
    "R1= R-R2##  Ω\n",
    "R1= R1*10**-3##  k ohm\n",
    "R2= R2*10**-3##  k ohm\n",
    "R_C= R_C*10**-3##  k ohm\n",
    "print \"The value of R1 is    : %.2f\"%(R1),\"  kΩ  (standard value : 39 kΩ)\"\n",
    "print \"The value of R2 is    : %.2f\"%(R2),\"   kΩ  (standard value : 7.5 kΩ)\"\n",
    "print \"The value of R_E is   : %.2f\"%(R_E),\"  Ω  (standard value : 240 Ω)\"\n",
    "print \"The value of R_C is   : %.2f\"%(R_C),\"   kΩ  (standard value : 1 kΩ)\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.10 Page No 236"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The maximum ac load power = 0.45 mW\n"
     ]
    }
   ],
   "source": [
    "# given data\n",
    "R_C= 3.6##  kΩ\n",
    "R_L= 1.5##  kΩ\n",
    "V_CEQ= 4.94##  V\n",
    "I_CQ= 1.1##  mA\n",
    "# The quiescent power dissipation of the transistor,\n",
    "P_DQ= V_CEQ*I_CQ##  mW\n",
    "r_L= R_C*R_L/(R_C+R_L)##  kΩ\n",
    "PP= 2*I_CQ*r_L##  V\n",
    "# The maximum ac load power,\n",
    "P_Lmax= PP**2/(8*R_L)##  mW\n",
    "print \"The maximum ac load power = %.2f mW\"%P_Lmax"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.11 Page No 240"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The efficiency = 5.58 %\n"
     ]
    }
   ],
   "source": [
    "# given data\n",
    "V_E= 1.71##  V\n",
    "R_E= 240##  Ω\n",
    "V_CC= 12##  V\n",
    "R_C= 1*10**3##  Ω\n",
    "R_L= 1*10**3##  Ω\n",
    "I= 0.355*10**-3##  A\n",
    "I_CQ= V_E/R_E##  A\n",
    "I_C= I_CQ##  A\n",
    "# The collector emitter voltage,\n",
    "V_CEQ= V_CC-I_C*(R_C+R_E)##  V\n",
    "r_L= R_C*R_L/(R_C+R_L)##  Ω\n",
    "PP= 2*V_CEQ##  V\n",
    "# The maximum ac load power,\n",
    "P_Lmax= PP**2/(8*R_L)##  W\n",
    "I_CC= I_C+I##  A\n",
    "P_CC= V_CC*I_CC##  W\n",
    "# The efficiency \n",
    "Eta= P_Lmax/P_CC*100##  %\n",
    "print \"The efficiency = %.2f %%\"%Eta"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 9.12 Page No 244"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The case temperature = 130.00 °C\n",
      "The power rating = 60.00 watt\n"
     ]
    }
   ],
   "source": [
    "# given data\n",
    "Ta= 70## ambient temperature = %.2f °C\n",
    "P= 30##  power dissipation = %.2f W\n",
    "theta_CS= 0.5##  °C/W\n",
    "theta_SA= 1.5##  °C/W\n",
    "# The case temperature\n",
    "Tc= Ta+P*(theta_CS+theta_SA)##  °C\n",
    "# The power rating\n",
    "P_Dmax= 60##  W\n",
    "print \"The case temperature = %.2f °C\"%Tc\n",
    "print \"The power rating = %.2f watt\"%P_Dmax"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}