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
|
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 7:Op Amps with diodes"
]
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 7.1 Page no 205"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"V = 15.0 #V,Voltage\n",
"mR = 30*10**3 #, ohm, Resistance \n",
"R = 10*10**3 #ohm, 2nd resistor\n",
"Ei = -10 #V, Voltage supply\n",
"\n",
"#calculation\n",
"Vref = V / 3.0 \n",
"Voa = -Ei-Vref \n",
"Vob = Ei / 2.0 \n",
"\n",
"#Result\n",
"print\"Reference voltage is\",Vref,\"V\"\n",
"print\"Values of Voa =\",Voa,\"V\",\"and Vob \", Vob,\"V\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Reference voltage is 5.0 V\n",
"Values of Voa = 5.0 V and Vob -5.0 V\n"
]
}
],
"prompt_number": 4
}
],
"metadata": {}
}
]
}
|