diff options
Diffstat (limited to '3850/CH31/EX31.4/Ex31_4.sce')
-rw-r--r-- | 3850/CH31/EX31.4/Ex31_4.sce | 20 |
1 files changed, 20 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);
|