#13596: Improvements to IntegerMod is_square
-------------------------------------+-------------------------------------
Reporter: roed | Owner: AlexGhitza
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.1
Component: basic arithmetic | Resolution:
Keywords: | Merged in:
Authors: David Roe, Peter | Reviewers: Francis Clarke, Peter
Bruin | Bruin
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: #15193, #11868 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by pbruin):
* changetime: 09/23/13 03:30:22 => 09/23/13 03:30:22
* dependencies: #15193 => #15193, #11868
* time: 10/12/12 19:05:55 => 10/12/12 19:05:55
Old description:
> Currently we don't check first to see if the Jacobi symbol is -1 (in
> which case we can declare non-squareness without factoring the modulus).
> This patch fixes this. If this test does not prove that the element is
> not a square, we now call PARI's `Zn_issquare` function with the factored
> modulus.
>
> Apply: [attachment:13596_new.patch]
New description:
Currently we don't check first to see if the Jacobi symbol is -1 (in which
case we can declare non-squareness without factoring the modulus). This
patch fixes this. If this test does not prove that the element is not a
square, we now call PARI's `Zn_issquare` function with the factored
modulus.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/13596#comment:20>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.