summaryrefslogtreecommitdiff
path: root/52/CH2/EX2.41.a/Example2_41_a.sce
diff options
context:
space:
mode:
Diffstat (limited to '52/CH2/EX2.41.a/Example2_41_a.sce')
-rwxr-xr-x52/CH2/EX2.41.a/Example2_41_a.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/52/CH2/EX2.41.a/Example2_41_a.sce b/52/CH2/EX2.41.a/Example2_41_a.sce
new file mode 100755
index 000000000..68a491f3d
--- /dev/null
+++ b/52/CH2/EX2.41.a/Example2_41_a.sce
@@ -0,0 +1,12 @@
+//Example 2.41 (a)
+//MAXIMA SCILAB TOOLBOX REQUIRED FOR THIS PROGRAM
+//Z- transform of n.(-1)^n u(n)
+clear;
+clc ;
+close ;
+syms a n z;
+x =(-1) ^n;
+X= symsum (x*(z^(-n)),n ,0, %inf )
+Y = diff (X,z);
+//Display the result in command window
+disp (Y,"Z-transform of n.(-1)^n u(n) is:"); \ No newline at end of file