summaryrefslogtreecommitdiff
path: root/1523/CH1/EX1.14/1_14.sce
blob: 9bba5a96e55f2fca3edd4b91c3db398402655fdb (plain)
1
2
3
4
5
6
7
8
9
//Basic Circuit Concepts
//page no-1.19
//example1.14
disp("Applying KVL to the mesh");
disp("15 - 50*I - 50*I - 5*I");
I=15/105;
printf("I=15/105 = %.2f Amp", I);
V=15-(50*0.143);
printf("\nVoltage at node 2 = 15 - 50*I = %.2f Volt", V);