summaryrefslogtreecommitdiff
path: root/842/CH10/EX10.2/Example10_2.sce
blob: aeb94a22712b5798003268e2622505bbfa85f4a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//clear//
//Example 10.2:Z transform of x[n] = -a^n. u[-n-1]
//a = 0.5
clear;
close;
clc;
syms n z;
a = 0.5;
x=-(0.5)^(-n)
X=symsum(x*(z^(n)),n,1,%inf)
disp(X,"ans=")
//Result
//-1.0*(2^(%inf+1)*z^(%inf+1)-2*z)/(2*z-1) 
//Equivalent to -1*-2*z/(2*z-1) = 1/(1-0.5*z^-1)