blob: c7da8df56def3e6528fdd5bf012aafb0b265ddaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Basic Circuit Concepts
//pg no-1.12
//example 1.5
I1=2/5;
printf("I1=2/5= %2f Ampere", I1)
I2=4/8;
printf("\nI2=4/8= %2f Ampere", I2)
printf("\nPotential difference between points x and y = Vxy = Vx-Vy")
printf("\nWriting KVL equations for the path x to y")//Writing KVL equation from x to y
printf("\nVs+3*I1+4-3*I2-Vy=0")
printf("\nVs+3*(0.4) + 4- 3*(0.5) -Vy = 0")
printf("\nVs+3*I1+4-3*I2-Vy = 0")
printf("\nVx-Vy = -3.7")
printf("\nVxy = -3.7V")
|