Open fernandohds564 opened 1 year ago
Linear systems with complex coefficients are not supported.
@ilayn is it worth adding a note about complex coefficients in the documentation? Also is this something we want to keep as an enhancement?
Hi guys. Sorry, I didn't know that complex coefficients were not supported. Would you prefer that I close this issue?
Just as a feedback from a user point of view, I think it would be useful to have support for complex coefficients in the future. While I don't think they're strictly necessary, being able to use them many times makes modeling simpler and more intuitive.
Thank you for the quick reply, and all the work developing the library!
Describe your issue.
When a
dlti
system with complex coefficients is created, the functionsdstep
and the methodstep
from thedlti
object don't work properly. I think it is because of a bug in functiondlsim
, which assumes real arrays for the object states.The code below creates this image, where we can see that when we have a complex an discrete system the imaginary part of the step-response is zero and the real part does not match the ones generated with equivalent discrete real transfer function and the continuous transfer function with complex coefficients.
Reproducing Code Example
Error message
SciPy/NumPy/Python version and system information