summaryrefslogtreecommitdiff
path: root/3673/CH1/EX1.a.4/Example_a_1_4.sce
blob: d0cbe6d938da91bc6fb2045344fd67691ae884a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Example 1_4 page no:22
clc;
I3=2;
I6=6;
V2=12;
V3=6;
V=20
I4=I3+I6;
V4=4*I4;
V=V4-V2;
Vs=V4-V;
Vin=-(30-V-V3);
P4=V4*I6;//dependent power source
disp(Vs,"the voltage Vs is (in V)");
disp(Vin,"the voltage Vin is (in V)");
disp(P4,"the power provided by dependent source is (in W)");