summaryrefslogtreecommitdiff
path: root/3630/CH11/EX11.10/Ex11_10.sce
blob: 3a8249883d894b8511ea578d088259a360f457be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc;
Vcc=15; //Volt
R1=1000; //Ohm
R2=170; //Ohm
R3=1000; //Ohm
I1=Vcc/(R1+R2+R3); //Ampere
RL=10; //Ohm
Icave=Vcc/(2*3.14*RL);//Ampere
Icc=Icave+I1; //Ampere
Ps=Vcc*Icc; //Watt
disp('W',Ps,"Ps=");//The answers vary due to round off error