Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify_fractions return Float64 coefficients #466

Closed
etiennedeg opened this issue Aug 26, 2022 · 2 comments
Closed

simplify_fractions return Float64 coefficients #466

etiennedeg opened this issue Aug 26, 2022 · 2 comments

Comments

@etiennedeg
Copy link

using SymbolicUtils
@syms x
simplify_fractions(1/x + 1/(x^2 - x))
=> 1 / (x - 1.0)
simplify_fractions(1/x + 1/(x^2 - 2x))
=> (x - 1.0) / (x^2 - 2x)
@bowenszhu
Copy link
Member

@hersle
Copy link

hersle commented May 9, 2024

After JuliaAlgebra/MultivariatePolynomials.jl/pull/296

using SymbolicUtils
@syms x
simplify_fractions(1/x + 1/(x^2 - x)), simplify_fractions(1/x + 1/(x^2 - 2x))

returns only integer/rational coefficients:

(1 / (-(1//1) + x), (-(1//1) + x) / (-2x + x^2))

So I think this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants