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

Solving rational function equations by converting to polynomial equations #1269

Closed
zengmao opened this issue Sep 12, 2024 · 1 comment
Closed

Comments

@zengmao
Copy link
Contributor

zengmao commented Sep 12, 2024

symbolic_solve fails for some equations involving rational functions, unless the user manually multiplies out denominators to convert the equations into polynomial equations. Example below. Can the conversion be automated?

julia> using Symbolics, Nemo

julia> @variables x;

julia> symbolic_solve(x ~ 1/x, x) # denominators cannot be handled
┌ Warning: This expression cannot be solved with the methods available to ia_solve. Try a numerical method instead.
└ @ Symbolics ~/.julia/packages/Symbolics/e7UFe/src/solver/ia_main.jl:176

julia> symbolic_solve(x^2 ~ 1, x) # multiply both sides by `x` to get polynomials
2-element Vector{BigInt}:
 -1
  1

(Julia 1.10.5, Symbolics 6.4.0, Nemo 0.45.7, SymbolicUtils 3.5.0)

@ufechner7
Copy link

Duplicate of #1268

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