summaryrefslogtreecommitdiff
path: root/196/CH5/EX5.7/example_5_7.sce
blob: 0826412e26591e79168da20b333a1312b31ae112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//Chapter 5
//Example 5-7
//ProbOnOpampParameters 
//Page 128,129, Figure 5-5
clear;clc;
//Given
R = 10*10^3 ; //Resistance
E2 = 5 ; //Source across negative terminal
Rl = 5*10^3 ; // Load Resistance
E1 = 0 ; // source across positive terminal
//example 5-6(a)
Il = (E1 - E2)/R ; //Load Current
printf ("\n\n Load current across Rl = %.4f A " , Il )
//example 5-6(b)
Vl = Il * Rl ; // Voltage across Rl 
printf ("\n\n Voltage across load resistance = %.4f V " , Vl )
//example 5-6(c)
Vo = (2*Vl)-E2 ; //Output voltage
printf ( "\n\n Output Voltage = %.4f V ", Vo )
printf ( "\n\n Vl and Il are reversed in polarity and direction respectively from example 5-6. If the polarity of E2 is reversed , Il and Vl change sign but not magnitude ")