#!/usr/bin/python ## 4.5 from scipy import signal def respol(num,den): if num[-1] == 0: num = num[:-1] return signal.residuez(num,den)[:-1]