summaryrefslogtreecommitdiff
path: root/2258/CH6/EX6.5
diff options
context:
space:
mode:
Diffstat (limited to '2258/CH6/EX6.5')
-rwxr-xr-x2258/CH6/EX6.5/6_5.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2258/CH6/EX6.5/6_5.sce b/2258/CH6/EX6.5/6_5.sce
new file mode 100755
index 000000000..c15fd6c30
--- /dev/null
+++ b/2258/CH6/EX6.5/6_5.sce
@@ -0,0 +1,15 @@
+clc();
+clear;
+// To calculate the capacitance and charge
+epsilon_0=8.854*10^-12; //f/m
+A=100; //area in cm^2
+A=A*10^-4; //area in m^2
+V=100; //potential in V
+d=1; //plate seperation in cm
+d=d*10^-2; //plate seperation in m
+C=(epsilon_0*A)/d;
+Q=C*V;
+printf("charge on the plates in F is");
+disp(C);
+printf("charge on the capacitor in coulomb is");
+disp(Q);