summaryrefslogtreecommitdiff
path: root/620/CH21/EX21.8/example21_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '620/CH21/EX21.8/example21_8.sce')
-rw-r--r--620/CH21/EX21.8/example21_8.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/620/CH21/EX21.8/example21_8.sce b/620/CH21/EX21.8/example21_8.sce
new file mode 100644
index 000000000..d23f351bf
--- /dev/null
+++ b/620/CH21/EX21.8/example21_8.sce
@@ -0,0 +1,13 @@
+c1=40*10^(-6);
+v1=450;
+c2=20*10^(-6);
+v2=500;
+v=400;
+disp("Part a");
+w1=0.5*c1*v^2;
+disp("energy stored (in J) in 40 μF capacitor is"); disp(w1);
+w2=0.5*c2*v^2;
+disp("energy stored (in J) in 20 μF capacitor is"); disp(w2);
+disp("Part b");
+w=w1+w2;
+disp("total energy stored (in J) is"); disp(w); \ No newline at end of file