summaryrefslogtreecommitdiff
path: root/29/CH6/EX6.10.2/exa6_10_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /29/CH6/EX6.10.2/exa6_10_2.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 '29/CH6/EX6.10.2/exa6_10_2.sce')
-rwxr-xr-x29/CH6/EX6.10.2/exa6_10_2.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/29/CH6/EX6.10.2/exa6_10_2.sce b/29/CH6/EX6.10.2/exa6_10_2.sce
new file mode 100755
index 000000000..0819482cb
--- /dev/null
+++ b/29/CH6/EX6.10.2/exa6_10_2.sce
@@ -0,0 +1,22 @@
+//Caption:time_response_for_unit_impulse_and_step_function
+//example 6.10.2
+//page 171
+//G(s)=(4*s+1)/4*(s^2);H(s)=1;
+clc;
+s=%s;
+syms t;
+G=(4*s+1)/(4*(s^2))//G(s)
+b=1;
+a=G/.(b);
+disp(a,"C(s)/R(s)=");
+//for unit impulse response R(s)=1 ; so C(s)=a;
+disp("for unit impulse response R(s)=1 ; so C(s)=a;")
+disp(a,"C(s)=");
+c=ilaplace(a,s,t);
+disp(c,"c(t)=");
+//for unit step response R(s)=1/s
+disp('for unit step response R(s)=1/s, so');
+d=a*(1/s);
+disp(d,"C(s)=");
+e=ilaplace(d,s,t);
+disp(e,"c(t)="); \ No newline at end of file