summaryrefslogtreecommitdiff
path: root/1535/CH13/EX13.2/Ch13Ex2.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1535/CH13/EX13.2/Ch13Ex2.sci
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 '1535/CH13/EX13.2/Ch13Ex2.sci')
-rwxr-xr-x1535/CH13/EX13.2/Ch13Ex2.sci13
1 files changed, 13 insertions, 0 deletions
diff --git a/1535/CH13/EX13.2/Ch13Ex2.sci b/1535/CH13/EX13.2/Ch13Ex2.sci
new file mode 100755
index 000000000..16929120e
--- /dev/null
+++ b/1535/CH13/EX13.2/Ch13Ex2.sci
@@ -0,0 +1,13 @@
+// Scilab Code Ex13.2: Parallel plate capacitor: Page-287 (2010)
+epsilon_0 = 8.854e-012; // Absolute electrical permittivity of free space, farad per metre
+A = 100e-004; // Area of a plate of parallel plate capacitor, metre square
+d = 1e-002; // Distance between the plates of the capacitor, m
+V = 100; // Potential applied to the plates of the capacitor, volt
+C = epsilon_0*A/d; // Capacitance of parallel plate capacitor, farad
+Q = C/V; // Charge on the plates of the capacitor, coulomb
+printf("\nThe capacitance of parallel plate capacitor = %5.3e F", C);
+printf("\nThe charge on the plates of the capacitor = %5.3e C", Q);
+
+// Result
+// The capacitance of parallel plate capacitor = 8.854e-012 F
+// The charge on the plates of the capacitor = 8.854e-014 C \ No newline at end of file