SymbolicUtils.jl
SymbolicUtils.jl copied to clipboard
`simplify_fractions` return `Float64` coefficients
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)
Related: https://github.com/JuliaSymbolics/Symbolics.jl/issues/693#issuecomment-1209969427
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.