Skip to content

isapprox for SisoRational broken #547

@baggepinnen

Description

@baggepinnen
julia> using ControlSystems

julia> G1  = tf([0.8], [1,0,0.25], 1)

TransferFunction{Discrete{Int64}, ControlSystems.SisoRational{Float64}}
     0.8
-------------
1.0z^2 + 0.25

Sample Time: 1 (seconds)
Discrete-time transfer function model

julia> G2  = tf([0.8, 0], [1,0,0.25], 1)
TransferFunction{Discrete{Int64}, ControlSystems.SisoRational{Float64}}
    0.8z
-------------
1.0z^2 + 0.25

Sample Time: 1 (seconds)
Discrete-time transfer function model

julia> isapprox(G1, G2)
true

note the different orders of the numerators
ref baggepinnen/ControlSystemIdentification.jl#75 (comment)

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