-
Notifications
You must be signed in to change notification settings - Fork 74
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
Conversions to and from RationalFunction broken #566
Comments
Thanks for letting me know! |
jverzani
added a commit
to jverzani/Polynomials.jl
that referenced
this issue
Apr 26, 2024
jverzani
added a commit
that referenced
this issue
Apr 26, 2024
Note that there are other instances like Polynomials.jl/src/rational-functions/common.jl Lines 52 to 64 in 263b965
convert explicitly uses Polynomial , which may not be the correct type
|
Yes, that one was deliberate. Perhaps it should just be deprecated and the user should convert to a polynomial type without negative powers before using. Thanks again! I really appreciate your time and effort to point these out. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Julia nightly demands that
convert(T, x)
produce a result of typeT
. This is currently not the case withRationalPolynomials
, wherepromote_rule
at various places hard-codesPolynomial
instead of using a proper promotion. As a consequence, the following is broken (and tests fail on Julia nightly in general):The text was updated successfully, but these errors were encountered: