summaryrefslogtreecommitdiff
path: root/3020/CH21/EX21.7/ex21_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3020/CH21/EX21.7/ex21_7.sce')
-rwxr-xr-x3020/CH21/EX21.7/ex21_7.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3020/CH21/EX21.7/ex21_7.sce b/3020/CH21/EX21.7/ex21_7.sce
new file mode 100755
index 000000000..f743ac681
--- /dev/null
+++ b/3020/CH21/EX21.7/ex21_7.sce
@@ -0,0 +1,11 @@
+clc;
+clear all;
+er=80;//relative permittivity
+C=2e-6;//the capacitance
+V=1000;//applied voltage
+E1=C*V^2/2;//energy stored in the capacitor
+C0=C/er;//capacitance of the capacitor when the dielectric is removed
+E2=C0*V^2/2;//energy stored in capacitor with vacume as dielectric
+c=E1-E2;//'energy stored in polarissing the capacitor
+disp('J',E1,'energy stored in the capacitor')
+disp('J',c,'energy stored in polarissing the capacitor:')