You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# if we count i poles within the circle assuming i integrators, we return i
47
-
ifcount(p->abs(p-location) < (i+1)*(eps(T)^(1/i)), p) >= i
48
-
i
49
-
else
50
-
0
46
+
ifcount(p->abs(p-location) < (e^(1/i)), p) == i
47
+
return i
51
48
end
52
49
end
50
+
0
53
51
end
54
52
55
53
"""
56
54
count_integrators(P)
57
55
58
-
Count the number of poles in the origin by finding the maximum value of `n` for which the number of poles within a circle of radius `(n+1)*eps(numeric_type(sys))^(1/n)` arount the origin (1 in discrete time) equals `n`.
56
+
Count the number of poles in the origin by finding the maximum value of `n` for which the number of poles within a circle of radius `eps(maximum(abs, p))^(1/n)` around the origin (1 in discrete time) equals `n`.
0 commit comments