control.dcgain¶
- control.dcgain(sys)[source]¶
Return the zero-frequency (or DC) gain of the given system.
- Returns
gain – The zero-frequency gain, or (inf + nanj) if the system has a pole at the origin, (nan + nanj) if there is a pole/zero cancellation at the origin.
- Return type
ndarray
Examples
>>> G = ct.tf([1], [1, 2]) >>> ct.dcgain(G) 0.5