summaryrefslogtreecommitdiff
path: root/1430/CH13/EX13.8/exa13_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1430/CH13/EX13.8/exa13_8.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1430/CH13/EX13.8/exa13_8.sce')
-rw-r--r--1430/CH13/EX13.8/exa13_8.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1430/CH13/EX13.8/exa13_8.sce b/1430/CH13/EX13.8/exa13_8.sce
new file mode 100644
index 000000000..f0ad8cb85
--- /dev/null
+++ b/1430/CH13/EX13.8/exa13_8.sce
@@ -0,0 +1,22 @@
+// Example 13.8
+// Inversion with Time delay
+s=%s;
+// x(t)=20*u(t)40*u(t-3)
+// time domain analysis for the response y(t) yields the DE
+// y'(t)-5*y(t)=-x(t)=-20*u(t)+40*u(t-3)--equation (1)
+// after taking Laplace transform of equation (1)
+disp("Y(s)=(-20+40*exp(-3*s))/(s*(s-5)");
+disp("=> Y(s)= F1_s-2*F1_s*exp(-3*t)")
+F1_s= -20/(s*(s-5));
+pfe=pfss(F1_s);
+
+// Taking inverse Laplace of pfe, we get
+f1=4-4*exp(5*t);
+
+t=0:0.001:5;
+//from expansion of Y(s)
+y=4-4*exp(5*t)-(8-8*exp(5*(t-3))); // Using Time delay property , t>=0
+plot(t,y)
+xlabel('t')
+ylabel('y(t)')
+title('Function Waveform')