summaryrefslogtreecommitdiff
path: root/2345/CH15/EX15.19/Ex15_19.sce
diff options
context:
space:
mode:
Diffstat (limited to '2345/CH15/EX15.19/Ex15_19.sce')
-rwxr-xr-x2345/CH15/EX15.19/Ex15_19.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2345/CH15/EX15.19/Ex15_19.sce b/2345/CH15/EX15.19/Ex15_19.sce
new file mode 100755
index 000000000..d05c3c386
--- /dev/null
+++ b/2345/CH15/EX15.19/Ex15_19.sce
@@ -0,0 +1,11 @@
+//Finding potential difference
+//Example 15.19(pg. 405)
+clc
+clear
+I1=2/(2+3)//current across 2V battery in circuit EBD in A
+Vbe=3*I1//voltage dropp across BE in V
+I2=4/(5+3)//current across 4V battery in circuit AFC in A
+Vaf=3*I2//voltage dropp across AF in V
+V=Vbe+4-Vaf//sum of potential drops starting from E and ending at F
+//V is the P.D. between E and F
+printf('Thus the P.D. between E and F is %2.1f Volts',V)