diff options
Diffstat (limited to '3665/CH10/EX10.1/Ex10_1.sce')
-rw-r--r-- | 3665/CH10/EX10.1/Ex10_1.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/3665/CH10/EX10.1/Ex10_1.sce b/3665/CH10/EX10.1/Ex10_1.sce new file mode 100644 index 000000000..2df972e1d --- /dev/null +++ b/3665/CH10/EX10.1/Ex10_1.sce @@ -0,0 +1,18 @@ +clc//
+//
+//
+
+//Variable declaration
+C=2*10^-6; //capacitance(F)
+V=1000; //voltage(V)
+epsilon_r=100;
+
+//Calculation
+W=C*V^2/2; //energy stored in the condenser(J)
+C0=C/epsilon_r;
+W0=C0*V^2/2;
+E=1-W0; //energy stored in the dielectric(J)
+
+//Result
+printf("\n energy stored in the condenser is %0.3f J",W)
+printf("\n energy stored in the dielectric is %0.3f J",E)
|