summaryrefslogtreecommitdiff
path: root/3673/CH1/EX1.a.7/Example_a_1_7.sce
blob: acbd760cacc0cf318b41e704078e52ba59866c96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example 1_7 page no:25
clc;
I5=4;
I6=1;
V=30;
R6=6;
V6=24;
V10=50;
I10=I5+I6;
Vc=-V6;
V1=V10-Vc;
disp(I10,"the current through 10 ohm resistance is (in A)");
Vs=I10-V+Vc;//calculating the source voltage
disp(Vs,"the source voltage Vs is (in V)");