import numpy as np import control # %% Creating the z-transfer function: Ts = 0.1 num = np.array([0.1, 0]) den = np.array([1, -1]) H = control.tf(num, den, Ts) # %% Displaying the transfer function: print('H(z) =', H)