summaryrefslogtreecommitdiff
path: root/1499/CH5/EX5.31/s31.sce
diff options
context:
space:
mode:
Diffstat (limited to '1499/CH5/EX5.31/s31.sce')
-rw-r--r--1499/CH5/EX5.31/s31.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1499/CH5/EX5.31/s31.sce b/1499/CH5/EX5.31/s31.sce
new file mode 100644
index 000000000..bda215bef
--- /dev/null
+++ b/1499/CH5/EX5.31/s31.sce
@@ -0,0 +1,9 @@
+s=%s;
+H=syslin('c',1/(s*(s+1)*(1+2*s)))
+nyquist(H)
+show_margins(H,'nyquist')
+printf("Since P=1 and the pt. -1+j0 is encircled once by the locus")
+printf("Hence N=1 therefore, Z=0(no of zeros in RHP)")
+printf("System is stable")
+gm=g_margin(H) // gain margin
+pm=p_margin(H) // phase margin