summaryrefslogtreecommitdiff
path: root/Working_Examples/215/CH9/EX9.4
diff options
context:
space:
mode:
Diffstat (limited to 'Working_Examples/215/CH9/EX9.4')
-rwxr-xr-xWorking_Examples/215/CH9/EX9.4/Figure9_4.jpgbin0 -> 37049 bytes
-rwxr-xr-xWorking_Examples/215/CH9/EX9.4/ex9_4.sce13
2 files changed, 13 insertions, 0 deletions
diff --git a/Working_Examples/215/CH9/EX9.4/Figure9_4.jpg b/Working_Examples/215/CH9/EX9.4/Figure9_4.jpg
new file mode 100755
index 0000000..f4fc8be
--- /dev/null
+++ b/Working_Examples/215/CH9/EX9.4/Figure9_4.jpg
Binary files differ
diff --git a/Working_Examples/215/CH9/EX9.4/ex9_4.sce b/Working_Examples/215/CH9/EX9.4/ex9_4.sce
new file mode 100755
index 0000000..7b8316a
--- /dev/null
+++ b/Working_Examples/215/CH9/EX9.4/ex9_4.sce
@@ -0,0 +1,13 @@
+clc
+//Example 9.4
+//Calculate settling time
+t=0:0.1:5
+ic=2*exp(-t)-4*exp(-t)
+plot(t,ic)
+xtitle('ic vs t','t in s','ic in A')
+//Let ts be the settling time
+//From the graph the maximum value is|-2|=2A
+//'ts' is the time when ic has decreased to 0.02A
+//On solving for 'ts'
+ts=-log(0.02/4)
+printf("ts=%3.2f s\n",ts)