ilayn / harold

An open-source systems and controls toolbox for Python3
MIT License
173 stars 19 forks source link

MAINT: Make Bode plots more precise about the pole/zero discovery for discrete time systems #53

Closed ilayn closed 5 years ago

ilayn commented 5 years ago

This code

from harold import *
H = Transfer([0.05634, -0.00093524, -0.00093524, 0.05634],
             [ 1.       , -0.7631   , -0.1919863,  0.5434631], dt=1)

bode_plot(H)

gives image

But in fact, say, bode_plot(H, np.logspace(-2, 0.2, 1000)) gives

image

Fix it please you self speaking person...