SymbolicUtils.jl icon indicating copy to clipboard operation
SymbolicUtils.jl copied to clipboard

`simplify_fractions` return `Float64` coefficients

Open etiennedeg opened this issue 3 years ago • 1 comments

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)

etiennedeg avatar Aug 26 '22 13:08 etiennedeg

Related: https://github.com/JuliaSymbolics/Symbolics.jl/issues/693#issuecomment-1209969427

bowenszhu avatar Oct 09 '22 00:10 bowenszhu

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.

hersle avatar May 09 '24 19:05 hersle