summaryrefslogtreecommitdiff
path: root/608/CH6/EX6.07
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH6/EX6.07
downloadScilab-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.07')
-rwxr-xr-x608/CH6/EX6.07/6_07.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/608/CH6/EX6.07/6_07.sce b/608/CH6/EX6.07/6_07.sce
new file mode 100755
index 000000000..a3c6b2f09
--- /dev/null
+++ b/608/CH6/EX6.07/6_07.sce
@@ -0,0 +1,16 @@
+//Problem 6.07: (a) A ceramic capacitor has an effective plate area of 4 cm2 separated by 0.1 mm of ceramic of relative permittivity 100. Calculate the capacitance of the capacitor in picofarads. (b) If the capacitor in part (a) is given a charge of 1.2 μC what will be the pd between the plates?
+
+//initializing the variables:
+A = 4E-4; // in m2
+d = 0.1E-3; // in m
+e0 = 8.85E-12; // in F/m
+er = 100;
+Q = 1.2E-6; // in coulomb
+
+//calculation:
+C = e0*er*A/d
+V = Q/C
+
+printf("\n\nResult\n\n")
+printf("\n (a)Capacitance %.2E F",C)
+printf("\n (b)P.d.= %.0f Volts(V)\n",V) \ No newline at end of file