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 /2453/CH6/EX6.6 | |
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 '2453/CH6/EX6.6')
-rwxr-xr-x | 2453/CH6/EX6.6/6_6.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2453/CH6/EX6.6/6_6.sce b/2453/CH6/EX6.6/6_6.sce new file mode 100755 index 000000000..f0496519b --- /dev/null +++ b/2453/CH6/EX6.6/6_6.sce @@ -0,0 +1,13 @@ +//To calculate the capacitance and charge on plates
+epsilon0 = 8.85*10^-12;
+V = 100; //potential, V
+A = 100; //area, cm^2
+A = A*10^-4; //area, m^2
+d = 1; //plate seperation, cm
+d = d*10^-2; //plate seperation, m
+C = epsilon0*A/d; //capacitance, farad
+printf("capacitance of capacitor in F is");
+disp(C);
+Q = C*V; //charge on plates
+printf("charge on plates in coulomb is");
+disp(Q);
|