diff --git a/src/utilities.jl b/src/utilities.jl index 3465ee25f..db1cc743e 100644 --- a/src/utilities.jl +++ b/src/utilities.jl @@ -27,7 +27,7 @@ end # Allocate for maxiumum possible length of polynomial vector? # # This function rely on that the every complex roots is followed by its exact conjugate, -# and that the first complex root in each pair has positive real part. This format is always +# and that the first complex root in each pair has positive imaginary part. This format is always # returned by LAPACK routines for eigenvalues. function roots2real_poly_factors(roots::Vector{cT}) where cT <: Number T = real(cT) diff --git a/test/test_synthesis.jl b/test/test_synthesis.jl index ceb5a2e7e..8d5743bca 100644 --- a/test/test_synthesis.jl +++ b/test/test_synthesis.jl @@ -63,11 +63,11 @@ A = randn(3,3) B = randn(3,1) p = [3.0,2,1] K = ControlSystems.acker(A,B,p) -@test eigvalsnosort(A-B*K) ≈ p +@test ControlSystems.eigvalsnosort(A-B*K) ≈ p p = [-1+im, -1-im, -1] K = ControlSystems.acker(A,B,p) -@test eigvalsnosort(A-B*K) ≈ p +@test ControlSystems.eigvalsnosort(A-B*K) ≈ p end end