summaryrefslogtreecommitdiff
path: root/3673/CH1/EX1.14/Ex1_14.sce
blob: 747d24adaceff9258b739f15df73e042cd1f5319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 1_14 page no:16
clc
I=10;//supply current in ampere
//apply kirchof law to the circuit
V=5/(1/5+1/10+1/2+1)
disp(V,"Voltage across 10 ohm resistor (in volts)")
R1=5;//resistance in ohm
R2=10;//resistance in ohm
R3=2;//resistance in ohm
R4=1;//resistance in ohm
I1=V/R1;
I2=V/R2;
I3=V/R3;
I4=V/R4;
disp(I2,"Current flowing in 10 ohm resistor (in ampere)")