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
sqrt() for QQbar and AA should have a parameter "all" #8802
Comments
Attachment: trac_8802-sqrt-qqbar.patch.gz Add all and extend parameters to sqrt for QQbar and AA |
This comment has been minimized.
This comment has been minimized.
comment:2
Patch based on 4.4.2 and works fine on 4.4.3. The two problems identified by cremona have been resolved:
The following command
returns an error, like it should. |
comment:4
Mostly looks good. Some minor comments:
|
Attachment: trac_8802-sqrt-qqbar-v2.patch.gz As before, but addresses the ordering issue raised by robertwb |
Attachment: trac_8802-sqrt-qqbar-v3.patch.gz Fixed docstring format issues and simplified: applies to 4.4.4.alpha0 |
comment:7
Version 3 of the patch (jointly written by Barinder and John) simplifies the code more and fixes docstring issues. We removed the sign normalisation code, since the pow function already delivers a normalised result. |
Author: John Cremona, Barinder Banwait |
Reviewer: Robert Bradshaw, David Loeffler |
comment:9
Looks good to me too. |
Merged: sage-4.4.4.alpha1 |
This is inconsistent with other versions of sqrt():
In addition, there should be a parameter "extend" to handle this:
In the second example, we should not return a root in QQbar unless extend=True.
CC: @robertwb @loefflerd @JohnCremona
Component: algebra
Author: John Cremona, Barinder Banwait
Reviewer: Robert Bradshaw, David Loeffler
Merged: sage-4.4.4.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/8802
The text was updated successfully, but these errors were encountered: