summaryrefslogtreecommitdiff
path: root/1430/CH5/EX5.9
diff options
context:
space:
mode:
Diffstat (limited to '1430/CH5/EX5.9')
-rw-r--r--1430/CH5/EX5.9/exa5_9.jpgbin0 -> 56563 bytes
-rw-r--r--1430/CH5/EX5.9/exa5_9.sce16
2 files changed, 16 insertions, 0 deletions
diff --git a/1430/CH5/EX5.9/exa5_9.jpg b/1430/CH5/EX5.9/exa5_9.jpg
new file mode 100644
index 000000000..64c508e56
--- /dev/null
+++ b/1430/CH5/EX5.9/exa5_9.jpg
Binary files differ
diff --git a/1430/CH5/EX5.9/exa5_9.sce b/1430/CH5/EX5.9/exa5_9.sce
new file mode 100644
index 000000000..9090fb256
--- /dev/null
+++ b/1430/CH5/EX5.9/exa5_9.sce
@@ -0,0 +1,16 @@
+// Example 5.9
+// Capacitor discharge
+// From Figure 5.25
+R=2*10^6;
+C=300*10^-6;
+v_0=1000; // Initial condition
+i_0=0; // Initial condition
+function v_n_dot=f(t,v_n)
+ v_n_dot= -v_n/(C*R);
+endfunction
+t=0:5000;
+v_n=ode(v_0,i_0,t,f);
+plot(t,v_n);
+xlabel('t');
+ylabel('v_n(t)')
+title('Decaying Exponential waveform v_n(t)=1000*exp(-t/600)');