summaryrefslogtreecommitdiff
path: root/978/CH2/EX2.9/Example2_9.sce
blob: c1182e4956dfba0d8481b79df2171c6200551a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//chapter-2,Example2_9,pg 486

//(R3/R1)=0.98^-1(R2/R4)

R1=10*10^3

R3=10*10^3

I1=130*10^-6

Vo1=R1*(1+0.98)*I1//output for case-1, (R2/R4)=0.98

//(R1/R3)=(R4/R2)

Vo2=R1*(1+(R3/R1))*I1//output for case-2

Vo12=((Vo2-Vo1)/Vo2)*100//percent difference

printf("difference in output voltage\n")

printf("Vo12=%.4f ohm",Vo12)