summaryrefslogtreecommitdiff
path: root/1109/CH12/EX12.27/12_27.sce
blob: d0e4752fec77028c851ed651f83a7a24d0b78b80 (plain)
1
2
3
4
5
6
7
8
clear;
clc;
V1=6;V2=6;R1=2;R2=1;R3=2;
Y1=1/R1;Y2=1/R2;
Vm=((V1*Y1)+(V2*Y2))/(Y1+Y2);
Zm=1/(Y1+Y2);
I=Vm/(Zm+R3);
printf("Current in resistor R3 = %f Amp",I);