diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /40/CH9/EX9.6 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '40/CH9/EX9.6')
-rwxr-xr-x | 40/CH9/EX9.6/Exa_9_6.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/40/CH9/EX9.6/Exa_9_6.sce b/40/CH9/EX9.6/Exa_9_6.sce new file mode 100755 index 000000000..eae65a968 --- /dev/null +++ b/40/CH9/EX9.6/Exa_9_6.sce @@ -0,0 +1,12 @@ +//Mappings from integration algorithm
+//(a)Trapezoidal integration algorithm
+s=%s;z=%z;
+a=input('enter the value of a')
+ts=input('enter the value of sampling time')
+HS=1/(s+1);
+HZa=horner(HS,2*(z-1)/(ts*(z+1)))
+za=roots(denom(HZa))//pole always less than 1 ,hence HZ is stable
+//(b)simphson's algorithm
+HZb=horner(HS,3*(z^2-1)/(ts*(z^2+4*z+1)))
+zb=roots(denom(HZb))
+//magnitude of 1 pole always greater than 1 ,hence HZ is unstable
\ No newline at end of file |