diff options
Diffstat (limited to '3850/CH31/EX31.7/Ex31_7.sce')
-rw-r--r-- | 3850/CH31/EX31.7/Ex31_7.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3850/CH31/EX31.7/Ex31_7.sce b/3850/CH31/EX31.7/Ex31_7.sce new file mode 100644 index 000000000..dad58a9e2 --- /dev/null +++ b/3850/CH31/EX31.7/Ex31_7.sce @@ -0,0 +1,16 @@ + +//To Calculate the Energy stored in Capacitor
+
+//Example 31.7
+
+clear;
+
+clc;
+
+C=100*10^-6;//Capacitance of the capacitor in Faraday
+
+V=20;//Potential Difference in Volts
+
+U=1/2*C*V^2;//Formula for finding the energy stored in a capacitor
+
+printf("The energy stored in the capacitor= %f J",U);
|