summaryrefslogtreecommitdiff
path: root/3673/CH1/EX1.a.1/Example_a_1_1.sce
blob: 34e4d5c2d8fa3f8f96e016359aa15afa0a493778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Example 1_1 page no:20
clc;
Rt=1.7*10^3;
R=3*10^3;
It=6/Rt;
It=It*1000;//converting to milli Ampere
I10k=6/(10*10^3);
I10k=I10k*1000;//converting to milli Ampere
I3k=6/(3*10^3);
I3k=I3k*1000;//converting to milli Ampere
I4k=It-(I3k+I10k);
I4_7k=I4k*(5/(5+4.7));
V3k=I3k*R*10^-3;
disp(It,"the total current is (in mA)");
disp(I10k,"the current through 10k resistor is (in mA)");
disp(I3k,"the current through 3k resistor is (in mA)");
disp(I4k,"the current through 4k resistor is (in mA)");
disp(I4_7k,"the current through 4.7k resistor is (in mA)");
disp(V3k,"the voltage across 3k resistor is (in V)");