Skip to content

Simplifying floating point exponents sometimes doesn't cancel terms #630

@MarcBerliner

Description

@MarcBerliner

E.g.

julia> @variables x y
(x, y)

julia> simplify(x^2.0/(x*y)^2.0)
x ^ 2.0 * inv((x * y) ^ 2.0) ^ 1

compared to

julia> simplify(x^2/(x*y)^2)
inv(y) ^ 2

Removing the parentheses works as well

julia> simplify(x^2.0/x^2.0/y^2.0)
inv(y ^ 2.0) ^ 1

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