In [1]:
%matplotlib inline
from lcapy import *
from lcapy.discretetime import *
In [11]:
h = 2 * ui(n) - ui(n-2)
h
Out[11]:
In [3]:
h.plot();
In [4]:
H = h(z)
H
Out[4]:
In [5]:
ax = H.plot();
In [6]:
H.DTFT()
Out[6]:
In [7]:
H.DTFT().subs(dt, 1).plot();
In [8]:
h.difference_equation()
Out[8]:
In [9]:
h.difference_equation()(z)
Out[9]: