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
rational powers in ZZ[X] and QQ[X] #20086
Comments
Branch: u/cheuberg/polynomials/power |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Author: Clemens Heuberger |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:6
The fact that for a in QQ, the value of I see you take the effort of trying to put the result back in the original parent. Don't you think it's better to force that? i.e., raise an error if it doesn't work, rather than give a result back in SR? The problem is that if someone is computing with polynomials, it's almost certainly not desired to end up in SR (where things like Also, if you're implementing the (partial) map |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:9
Replying to @nbruin:
very valid points, thank you. I now raise an exception.
I needed a fix a bug which did bite me somewhere else, see initial description. Of course, it would be nice to have that, too; but I'd prefer to leave that to a follow-up ticket and to have this functionality here soon. |
Changed branch from u/cheuberg/polynomials/power to u/behackl/polynomials/power |
comment:11
I've fixed the segmentation fault from Also, +1 for extending this functionality on a follow-up ticket; I'd also like to have this in as soon as possible. I've reviewed your changes, please cross-review. If you are satisfied and if there are no other objections, I'd set this to New commits:
|
Reviewer: Benjamin Hackl |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed branch from u/behackl/polynomials/power to u/cheuberg/polynomials/power |
comment:81
Replying to @videlec:
Fixed, will push in a moment. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:84
Patchbot reports doctest failure due to the change in the error message. |
comment:85
I have an implementation for a much faster implementation of n-th root at #20571. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:88
Replying to @videlec:
Indeed, and this can be fixed straightforward. However, there is (once again ...) a slight inconvenience: there are superfluous parentheses in, e.g.
or
Should we live with that? Fixing it would require querying something like EDIT:
|
comment:89
I would think most people would prioritize #20571 over such typographical issues, so I wouldn't sweat too hard over parentheses at this point. Another issue: while it's nice to have informative error messages, error strings that cost a lot to be constructed only to be caught by an "except" statement can mean a performance penalty. This is more an issue in python than in many other languages because there's a culture in python (and perhaps even more so in some parts of sage) to use exceptions for regular program flow control, not just for error conditions. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:91
Replying to @nbruin:
Yes, that's my feeling too. While it is somehow unfortunate, I can very well live with it. I've fixed the doctests and tested the entire |
comment:93
Let's move to #20571. |
Changed branch from public/20086 to |
Until now,
because only integer exponents were allowed for polynomials.
Implement arbitrary powers of constant polynomials by handing over to the rational field.
This was originally observed in the asymptotic ring:
follow up: #20571
CC: @behackl @dkrenn
Component: basic arithmetic
Author: Clemens Heuberger, Vincent Delecroix, Benjamin Hackl
Branch/Commit:
5fc1027
Reviewer: Benjamin Hackl, Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/20086
The text was updated successfully, but these errors were encountered: