On 26 April 2012 09:41, Fredrik Johansson <
fredrik....@gmail.com> wrote:
> On Wed, Apr 25, 2012 at 23:45, Bill Hart <
goodwi...@googlemail.com> wrote:
>> Hi all,
>>
>> I just added a new function to the ulong_extras module for computing
>> square roots of a residue c modulo p^exp for a prime p. The function
>> computes all of the square roots and returns them in an array, even
>> when p = 2 or p | c. It also returns the number of roots, which is
>> zero if c is a nonresidue modulo p^exp.
>>
>> I also plan to add a function which will compute all the square roots
>> of a residue c modulo an arbitrary integer n given the factorisation
>> of n. Actually, making this efficient is going to be a bit of work.
>>
>> I may also add fmpz versions of these functions, though there we'd
>> have to rely on the probable prime test in mpir for now since we don't
>> have proper primality testing for large integers.
>
> Great news! I'm curious about how the performance compares to other software.
It's a bit hard to measure given that the number of roots varies
wildly. But it shouldn't be hopeless. It's really just a big case
bash, though there were a couple of bits that I put some effort into
making fast.
Having said that, I don't really know of any other software which does
this computation.
>
> BTW, selmer (and the main flint git repository) still isn't accessible
> to the world (unless you know the magic number).
Yes, the guy who can help us with that has not been responding.
Instead of
selmer.warwick.ac.uk just use 137.205.37.203 for now.
Bill.