diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /608/CH6/EX6.12/6_12.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '608/CH6/EX6.12/6_12.sce')
-rwxr-xr-x | 608/CH6/EX6.12/6_12.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/608/CH6/EX6.12/6_12.sce b/608/CH6/EX6.12/6_12.sce new file mode 100755 index 000000000..221413751 --- /dev/null +++ b/608/CH6/EX6.12/6_12.sce @@ -0,0 +1,22 @@ +//Problem 6.12: Capacitances of 1 μF, 3 μF, 5 μF and 6 μF are connected in parallel to a direct voltage supply of 100 V. Determine (a) the equivalent circuit capacitance, (b) the total charge and (c) the charge on each capacitor.
+
+//initializing the variables:
+C1 = 1E-6; // in Farads
+C2 = 3E-6; // in Farads
+C3 = 5E-6; // in Farads
+C4 = 6E-6; // in Farads
+Vt = 100; // in Volts
+
+//calculation:
+// in Parallel
+Cp = C1 + C2 + C3 + C4
+Qt = Vt*Cp
+Q1 = C1*Vt
+Q2 = C2*Vt
+Q3 = C3*Vt
+Q4 = C4*Vt
+
+printf("\n\nResult\n\n")
+printf("\n (a)Equivalent Capacitance in Parallel %.2E F",Cp)
+printf("\n (b)Total charge %.2E C",Qt)
+printf("\n (c)Charge on each capacitors (C1, C2, C3, C4) %.2E C, %.2E C, %.2E C, %.2E C respectively",Q1,Q2,Q3,Q4)
\ No newline at end of file |