Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docstring for nyquist uses im as an output argument –> clash with the imaginary unit im #924

Open
hurak opened this issue Apr 27, 2024 · 0 comments

Comments

@hurak
Copy link
Contributor

hurak commented Apr 27, 2024

Docstring for nyquist

re, im, w = nyquist(sys[, w])
usesim as an output argument, but this unnecessarily clashes with the imaginary unit im in Julia.

In this particular case it can be even more troubling as some users of nyquist may want to create the full complex frequency response by assembling the provided real and imaginary parts as in G(jw) = re(jw) + i im(jw). In fact, this is how I myself encountered the trouble: Gjw = re + im*im.

Of course users can rename their output arguments as they like, but some of them may just copy and paste. And why promoting the habit of overwriting Julia's keywords.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant