Skip to content

Simplify can't simplify a/(b/c) #1725

@thunderkid

Description

@thunderkid

I'm finding that simplify isn't working well with ratios of monomials.
I think this is probably due to it not even being able to simplify a/(b/c) - it just returns the same thing.

This is most obvious when you give it a/(a/c). Instead of giving c it just gives you back a/(a/c).

To work around this, I'm currently trying to use a patchwork of simplify and rationalize calls.
eg I use rationalize for
a/(a/c) -> a*c/a
then use simplify for
a*c/a -> c

For more complex examples, I loop through rationalize then simplify several times. This approach is obviously very ugly and unpredictable, and anyhow can't be used for a lot of monomials since rationalize crashes on them due to #1724.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions