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