summaryrefslogtreecommitdiff
path: root/3850/CH31/EX31.4
diff options
context:
space:
mode:
Diffstat (limited to '3850/CH31/EX31.4')
-rw-r--r--3850/CH31/EX31.4/Ex31_4.sce20
-rw-r--r--3850/CH31/EX31.4/Ex31_4.txt2
2 files changed, 22 insertions, 0 deletions
diff --git a/3850/CH31/EX31.4/Ex31_4.sce b/3850/CH31/EX31.4/Ex31_4.sce
new file mode 100644
index 000000000..04d6ff4f5
--- /dev/null
+++ b/3850/CH31/EX31.4/Ex31_4.sce
@@ -0,0 +1,20 @@
+
+//To Calculate the Charge on each Capacitor
+
+//Example 31.4
+
+clear;
+
+clc;
+
+C1=10*10^-6;//Capacitance of First Capacitor
+
+C2=20*10^-6;//Capacitance of Second Capacitor
+
+C=C1*C2/(C1+C2);//Equivalent capacitance of C1 and C2 in series
+
+V=30;//Apllied Voltage
+
+Q=C*V;//Formula for finding the charge on each capacitor
+
+printf("The charge on each capacitor=%f uC",Q*10^6);
diff --git a/3850/CH31/EX31.4/Ex31_4.txt b/3850/CH31/EX31.4/Ex31_4.txt
new file mode 100644
index 000000000..a54a5b952
--- /dev/null
+++ b/3850/CH31/EX31.4/Ex31_4.txt
@@ -0,0 +1,2 @@
+
+ The charge on each capacitor=200.000000 uC \ No newline at end of file