Skip to content

Commit 365ec83

Browse files
authored
Update analysis.jl
1 parent 5e6a7eb commit 365ec83

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/analysis.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ Compute the dcgain of system `sys`.
9595
9696
equal to G(0) for continuous-time systems and G(1) for discrete-time systems.
9797
98-
`ϵ` can be provided to evaluate the dcgain at a small
99-
non-zero frequency.
98+
`ϵ` can be provided to evaluate the dcgain with a small perturbation into
99+
the stability region of the complex plane.
100100
"""
101101
function dcgain(sys::LTISystem, ϵ=0)
102-
return iscontinuous(sys) ? evalfr(sys, -ϵ) : evalfr(sys, 1-ϵ)
102+
return iscontinuous(sys) ? evalfr(sys, -ϵ) : evalfr(sys, exp(-ϵ*G.Ts))
103103
end
104104

105105
"""

0 commit comments

Comments
 (0)