Skip to content

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

Open
@hurak

Description

@hurak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions