We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e6a7eb commit 365ec83Copy full SHA for 365ec83
1 file changed
src/analysis.jl
@@ -95,11 +95,11 @@ Compute the dcgain of system `sys`.
95
96
equal to G(0) for continuous-time systems and G(1) for discrete-time systems.
97
98
-`ϵ` can be provided to evaluate the dcgain at a small
99
-non-zero frequency.
+`ϵ` can be provided to evaluate the dcgain with a small perturbation into
+the stability region of the complex plane.
100
"""
101
function dcgain(sys::LTISystem, ϵ=0)
102
- return iscontinuous(sys) ? evalfr(sys, -ϵ) : evalfr(sys, 1-ϵ)
+ return iscontinuous(sys) ? evalfr(sys, -ϵ) : evalfr(sys, exp(-ϵ*G.Ts))
103
end
104
105
0 commit comments