summaryrefslogtreecommitdiff
path: root/3850/CH31/EX31.1/Ex31_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3850/CH31/EX31.1/Ex31_1.sce')
-rw-r--r--3850/CH31/EX31.1/Ex31_1.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3850/CH31/EX31.1/Ex31_1.sce b/3850/CH31/EX31.1/Ex31_1.sce
new file mode 100644
index 000000000..0500825ed
--- /dev/null
+++ b/3850/CH31/EX31.1/Ex31_1.sce
@@ -0,0 +1,16 @@
+
+//To Calculate the Capacitance of the capacitor
+
+//Example 31_1
+
+clear;
+
+clc;
+
+Q=60*10^-6;//Charge on the capacitor
+
+V=12;//Potential difference between the plates
+
+C=Q/V;//Formula for finding the capacitance of the capacitor
+
+printf("Capacitance of the capacitor=%f *10^-6 F",C*10^6);