summaryrefslogtreecommitdiff
path: root/2882/CH1/EX1.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2882/CH1/EX1.4
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 '2882/CH1/EX1.4')
-rwxr-xr-x2882/CH1/EX1.4/Ex1_4.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2882/CH1/EX1.4/Ex1_4.sce b/2882/CH1/EX1.4/Ex1_4.sce
new file mode 100755
index 000000000..7c58983fc
--- /dev/null
+++ b/2882/CH1/EX1.4/Ex1_4.sce
@@ -0,0 +1,18 @@
+//Tested on Windows 7 Ultimate 32-bit
+//Chapter 1 Introduction to Electronics Pg no. 12
+clear;
+clc;
+
+//Given Data
+
+area=1;//meter squares
+d=0.25;//distance between plates in centimeters
+e=8.85D-12;//permittivity of air
+
+//Solution
+
+d=d*10^-2;//converting distance into meters
+C=e*area/d;//Capacitance in Farads
+C=C*10^12;//Coverting capacitance to pF from F
+printf("C= %d pF\n",C);
+printf("The capacitor can thus store a charge of %d*10^-12 C with 1 Volt.",C);