summaryrefslogtreecommitdiff
path: root/1523/CH1/EX1.8/1_8.sce
blob: 12ccbaef158c01712b3022ab2672eab6ab6d0b8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Basic Circuit Concepts
//page no-1.14
//example1.8
I1=10/8;
printf("I1=2/5= %2f Ampere", I1)
I2=5;
printf("\nI2=4/8= %2f Ampere", I2)
disp("Applying KVL to the path from A to B")  //Applying KVL to the path from A to B
disp("VA - 3*I1 - 8 + 3*I2 - VB = 0");
disp("VA - VB = 3*1.25 + 8 - 3*5")
VAB= (3*1.25)+8-(3*5);
printf("VAB = %.2f Volt", VAB);