summaryrefslogtreecommitdiff
path: root/2303/CH4/EX4.6/4_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '2303/CH4/EX4.6/4_6.sce')
-rwxr-xr-x2303/CH4/EX4.6/4_6.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2303/CH4/EX4.6/4_6.sce b/2303/CH4/EX4.6/4_6.sce
new file mode 100755
index 000000000..9156ad586
--- /dev/null
+++ b/2303/CH4/EX4.6/4_6.sce
@@ -0,0 +1,17 @@
+//Example 4.6
+//MAXIMA SCILAB TOOLBOX REQUIRED FOR THIS PROGRAM
+
+clear;
+clc ;
+close ;
+syms n z;
+
+f1=1;
+F1= symsum (f1*(z^(-n)),n ,-%inf, -1 );
+
+f2=(0.5)^n;
+F2= symsum (f2*(z^(-n)),n ,0,%inf );
+//Display the result in command window
+F=F1+F2;
+disp (F,"Z-transform of f(n) is:");
+disp('ROC is the Region 0.5 < mod(z) <1 ')