summaryrefslogtreecommitdiff
path: root/Linear_Integrated_Circuits/Chapter_9.ipynb
blob: c60b9c6762f857c0bf1f4d7168b65bcd18a61552 (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
{
 "metadata": {
  "name": "ch_9"
 }, 
 "nbformat": 2, 
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "markdown", 
     "source": [
      "<h1>Chapter 9:Analog Multipliers<h1>"
     ]
    }, 
    {
     "cell_type": "markdown", 
     "source": [
      "<h3>Example No. 9.1, Page No:411<h3>"
     ]
    }, 
    {
     "cell_type": "code", 
     "collapsed": false, 
     "input": [
      "", 
      "#Variable Declaration:", 
      "import math", 
      "", 
      "#Calculations:", 
      "#Part 1", 
      "th1=math.acos(0)", 
      "th=th1*180/math.pi               #Calculating theta", 
      "#Part 2", 
      "Vodc=4.47*4.47*math.cos(th1)/20  #Calculating output voltage ", 
      "#For theta=+/-30 deg", 
      "Vodc1=math.cos(30*math.pi/180)   #Calculating output voltage for theta 30", 
      "#For theta=+/-45 deg", 
      "Vodc2=math.cos(45*math.pi/180)   #Calculating output voltage for theta 45", 
      "#For theta=+/-60 deg", 
      "Vodc3=math.cos(60*math.pi/180)   #Calculating output voltage for theta 60", 
      "", 
      "#Results:", 
      "print('Theta= + or - %d degree'%th)", 
      "print('\\nVodc for 30 degree= %.3f V'%Vodc1)", 
      "print('\\nVodc for 45 degree= %.3f V'% Vodc2)", 
      "print('\\nVodc for 60 degree= %.1f V'% Vodc3)"
     ], 
     "language": "python", 
     "outputs": [
      {
       "output_type": "stream", 
       "stream": "stdout", 
       "text": [
        "Theta= + or - 90 degree", 
        "", 
        "Vodc for 30 degree= 0.866 V", 
        "", 
        "Vodc for 45 degree= 0.707 V", 
        "", 
        "Vodc for 60 degree= 0.5 V"
       ]
      }
     ], 
     "prompt_number": 1
    }, 
    {
     "cell_type": "code", 
     "collapsed": true, 
     "input": [], 
     "language": "python", 
     "outputs": []
    }
   ]
  }
 ]
}