diff options
Diffstat (limited to '3648/CH17/EX17.15/Ex17_15.sce')
-rw-r--r-- | 3648/CH17/EX17.15/Ex17_15.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/3648/CH17/EX17.15/Ex17_15.sce b/3648/CH17/EX17.15/Ex17_15.sce new file mode 100644 index 000000000..78a08536b --- /dev/null +++ b/3648/CH17/EX17.15/Ex17_15.sce @@ -0,0 +1,17 @@ +//Example 17_15
+clc();
+clear;
+//To find the terminal potential of each battery
+v=18 //Units in V
+r=9 //Units in Ohms
+i=v/r //Units in A
+r1=0.1 //Units in Ohms
+v1=-i*r1 //Units in V
+v2=24 //Units in V
+v11=v1+v2 //Units in V
+r2=0.9 //Units in Ohms
+v3=i*r2 //Units in V
+v4=6 //Units in V
+v22=v3+v4 //Units in V
+printf("The Potential difference between d to c is=%.1f V",v11)
+printf("\nThe potential difference between b to a is=%.1f V",v22)
|