Skip to content

Dead code in sympy.polys.polyroots.roots() function #22768

@afedotov

Description

@afedotov

While messing around with roots() method I saw things...

if f.length == 2 and f.degree() != 1:

Here f is a Poly instance, and Poly.length() is a function.
So this expression is always False and followed block of code is dead.
Not sure if this can affect roots() correct behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions