summaryrefslogtreecommitdiff
path: root/Electronic_Devices_/Chapter18.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 /Electronic_Devices_/Chapter18.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 'Electronic_Devices_/Chapter18.ipynb')
-rw-r--r--Electronic_Devices_/Chapter18.ipynb57
1 files changed, 57 insertions, 0 deletions
diff --git a/Electronic_Devices_/Chapter18.ipynb b/Electronic_Devices_/Chapter18.ipynb
new file mode 100644
index 00000000..b651b596
--- /dev/null
+++ b/Electronic_Devices_/Chapter18.ipynb
@@ -0,0 +1,57 @@
+{
+ "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": [
+ "''' Switching capacitor'''",
+ "",
+ "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