diff options
Diffstat (limited to '1523/CH12/EX12.2')
-rwxr-xr-x | 1523/CH12/EX12.2/ex12_2.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1523/CH12/EX12.2/ex12_2.sce b/1523/CH12/EX12.2/ex12_2.sce new file mode 100755 index 000000000..16cc3fad6 --- /dev/null +++ b/1523/CH12/EX12.2/ex12_2.sce @@ -0,0 +1,17 @@ +// Network Synthesis : example 12.2 : (pg 12.2)
+s=poly(0,'s');
+p1=((s^4)+(5*(s)^2)+4);
+p2=((s^3)+(3*s));
+[r,q]=pdiv(p1,p2);
+[r1,q1]=pdiv(p2,r);
+[r2,q2]=pdiv(r,r1);
+[r3,q3]=pdiv(r1,r2);
+printf("\nEven part of P(s) = (s^4)+(5s^3)+4");
+printf("\nOdd part of P(s) = (s^3)+(3s)");
+printf("\nQ(s)= m(s)/n(s)");
+// values of quotients in continued fraction expansion
+disp(q);
+disp(q1);
+disp(q2);
+disp(q3);
+printf("\nSince all the quotient terms are positive, P(s) is hurwitz");
|