diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /887/CH3/EX3.5/3_5.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '887/CH3/EX3.5/3_5.sce')
-rwxr-xr-x | 887/CH3/EX3.5/3_5.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/887/CH3/EX3.5/3_5.sce b/887/CH3/EX3.5/3_5.sce new file mode 100755 index 000000000..4e4a3c588 --- /dev/null +++ b/887/CH3/EX3.5/3_5.sce @@ -0,0 +1,23 @@ +clc
+//ex3.5
+C_1=1*10^-6;
+C_2=1*10^-6;
+//Before the switch is closed
+V_1=100;
+V_2=0;
+W_1=(1/2)*C_1*V_1^2;
+W_2=0; //V_2=0
+W_t_1=W_1+W_2; //total energy stored by both the capacitors before switch is closed
+q_1=C_1*V_1;
+q_2=0;
+//After the switch is closed
+q_eq=q_1+q_2; //charge on equivalent capacitance
+C_eq=C_1+C_2; //C_1 and C_2 in parallel
+V_eq=q_eq/C_eq;
+V_1=V_eq; //parallel combination
+V_2=V_eq; //parallel combination
+W_1=(1/2)*C_1*V_eq^2;
+W_2=(1/2)*C_2*V_eq^2;
+W_t_2=W_1+W_2; //total energy stored by both the capacitors after switch is closed
+disp(W_t_1*10^3,'Total energy stored by both the capacitors before switch is closed in mJ') //mJ-milli Joules(10^-3)
+disp(W_t_2*10^3,'Total energy stored by both the capacitors after switch is closed in mJ') //mJ-milli Joules(10^-3)
|