summaryrefslogtreecommitdiff
path: root/215/CH9/EX9.4/ex9_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /215/CH9/EX9.4/ex9_4.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '215/CH9/EX9.4/ex9_4.sce')
-rwxr-xr-x215/CH9/EX9.4/ex9_4.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/215/CH9/EX9.4/ex9_4.sce b/215/CH9/EX9.4/ex9_4.sce
new file mode 100755
index 000000000..7b8316a0e
--- /dev/null
+++ b/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)