summaryrefslogtreecommitdiff
path: root/3850/CH31/EX31.4
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3850/CH31/EX31.4
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
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