summaryrefslogtreecommitdiff
path: root/978/CH11/EX11.10/Example11_10.sce
blob: db321f41f652d6272d738cfa01f2ee5f948f01bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//chapter-11,Example11_10,pg 507

Vi=1.3//input voltage

R2=10*10^3

R3=10*10^3

R8=10*10^3//potentiometer

B=1/3//wiper distance

V1=((R3*Vi)/(R3+(B*R8)))//output voltage-1

V2=-((R2*Vi)/(R1+((1-B)*R8)))//output voltage-2

printf("ouput voltage-1\n")

printf("V1=%.4f V\n",V1)

printf("ouput voltage-2\n")

printf("V2=%.4f V\n",V2)