diff options
author | Jovina Dsouza | 2014-07-07 16:34:28 +0530 |
---|---|---|
committer | Jovina Dsouza | 2014-07-07 16:34:28 +0530 |
commit | fffcc90da91b66ee607066d410b57f34024bd1de (patch) | |
tree | 7b8011d61013305e0bf7794a275706abd1fdb0d3 /Electronic_Devices/Chapter18.ipynb | |
parent | 299711403e92ffa94a643fbd960c6f879639302c (diff) | |
download | Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.tar.gz Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.tar.bz2 Python-Textbook-Companions-fffcc90da91b66ee607066d410b57f34024bd1de.zip |
adding book
Diffstat (limited to 'Electronic_Devices/Chapter18.ipynb')
-rwxr-xr-x | Electronic_Devices/Chapter18.ipynb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Electronic_Devices/Chapter18.ipynb b/Electronic_Devices/Chapter18.ipynb new file mode 100755 index 00000000..e195b9f9 --- /dev/null +++ b/Electronic_Devices/Chapter18.ipynb @@ -0,0 +1,56 @@ +{ + "metadata": { + "name": "Chapter_18" + }, + "nbformat": 2, + "worksheets": [ + { + "cells": [ + { + "cell_type": "markdown", + "source": [ + "<h1>Chapter 18: Programmable Analog Arrays<h1>" + ] + }, + { + "cell_type": "markdown", + "source": [ + "<h3>Example 18.1, Page Number: 588<h3>" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "", + "import math", + "#Variable declaration", + "C=1000*10**-12; #Switche capacitor value in farads", + "R=1000; #resistance in ohms", + "", + "#calculation", + "T=R*C; #Time period", + "f=1/T; #Frequency at which switch should operate", + "f=math.ceil(f)", + "#Result", + "print('Frequency at which each switch should operate(in hertz) is \\n %d' %f)", + "print('Duty cycle should be 50%')" + ], + "language": "python", + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Frequency at which each switch should operate(in hertz) is ", + " 1000000", + "Duty cycle should be 50%" + ] + } + ], + "prompt_number": 1 + } + ] + } + ] +}
\ No newline at end of file |