summaryrefslogtreecommitdiff
path: root/147/CH1/EX1.14
diff options
context:
space:
mode:
Diffstat (limited to '147/CH1/EX1.14')
-rw-r--r--147/CH1/EX1.14/Example1_14.sce16
-rw-r--r--147/CH1/EX1.14/Result1_14.txt1
2 files changed, 17 insertions, 0 deletions
diff --git a/147/CH1/EX1.14/Example1_14.sce b/147/CH1/EX1.14/Example1_14.sce
new file mode 100644
index 000000000..720aba908
--- /dev/null
+++ b/147/CH1/EX1.14/Example1_14.sce
@@ -0,0 +1,16 @@
+//Capacitance C, Energy stored in capacitor1 Ui
+close();
+clear;
+clc;
+C1 = 40 * 10^(-6);//F
+Ui = 0.2;//J
+C2 = 60*10^(-6);//F
+//Initial charge on C1
+Q1 = (2*Ui*C1)^(1/2);
+//Final Voltage
+V = Q1/(C1+C2);
+Uf1 = 1/2*C1*V^2;
+Uf2 = 1/2*C2*V^2;
+//Final Energy
+Uf = Uf1+Uf2;
+mprintf('Final energy of the system, U = %0.2f J',Uf); \ No newline at end of file
diff --git a/147/CH1/EX1.14/Result1_14.txt b/147/CH1/EX1.14/Result1_14.txt
new file mode 100644
index 000000000..66dc5ac57
--- /dev/null
+++ b/147/CH1/EX1.14/Result1_14.txt
@@ -0,0 +1 @@
+Final energy of the system, U = 0.08 J \ No newline at end of file