summaryrefslogtreecommitdiff
path: root/22/CH5/EX5.17/ch5ex17.sce
diff options
context:
space:
mode:
Diffstat (limited to '22/CH5/EX5.17/ch5ex17.sce')
-rwxr-xr-x22/CH5/EX5.17/ch5ex17.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/22/CH5/EX5.17/ch5ex17.sce b/22/CH5/EX5.17/ch5ex17.sce
new file mode 100755
index 000000000..2ea480242
--- /dev/null
+++ b/22/CH5/EX5.17/ch5ex17.sce
@@ -0,0 +1,12 @@
+//Z transform of x[n] = a^n.u[n]+b^-n.u[-n-1]
+syms n z;
+a=0.9
+b = 1.2;
+
+x1=(a)^(n)
+x2=(b)^(-n)
+//plot2d3(n1,x1+x2)
+X1=symsum(x1*(z^(-n)),n,0,%inf)
+X2=symsum(x2*(z^(n)),n,1,%inf)
+X = X1+X2;
+disp(X,"ans=")