Re: Surrogate factoring, reasons for my concerns
From: Marcel Martin (mm_at_ellipsa.no.sp.am.net)
Date: 07/15/04
- Previous message: David C. Ullrich: "Re: Surrogate factoring, update"
- In reply to: Jeroen Boschma: "Re: Surrogate factoring, reasons for my concerns"
- Next in thread: James Harris: "Re: Surrogate factoring, reasons for my concerns"
- Reply: James Harris: "Re: Surrogate factoring, reasons for my concerns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 15 Jul 2004 12:11:09 +0200
Jeroen Boschma a écrit :
>
> James Harris wrote:
> > > function [k_num, k_denom] = get_k(j, N)
> > >
> > > k_num = (-j*N + N^2*sqrt(j^2 - N^2 + 1));
> > > k_denom = (j^2 - N^2);
> > >
> >
> > You forgot that it's "+/-" not just "+".
> >
> > You need to check both possibilities wherever there's a square root
> > taken.
> >
> > In a way it's a minor mistake, but I just kind of find it freaking
> > annoying.
>
> There's possibly a good explanation why Claude only left the plus-sign (I had his mail on the screen
> when I typed in the code). I did not search for it, but a small code-change is quickly made:
>
> * f_1 f_2 = (T^2-1)/4
> * plus and minus sign in k-calculation
>
> There were no result changes (0 percent factored for primes up to 1e4).
Yes, gcd(x - yN, N) = gcd(x + yN, N) but since this is not obvious 'for
the eye', JSH believes this is different.
-- mm http://www.ellipsa.net/ mm@ellipsa.no.sp.am.net ( suppress no.sp.am. )
- Previous message: David C. Ullrich: "Re: Surrogate factoring, update"
- In reply to: Jeroen Boschma: "Re: Surrogate factoring, reasons for my concerns"
- Next in thread: James Harris: "Re: Surrogate factoring, reasons for my concerns"
- Reply: James Harris: "Re: Surrogate factoring, reasons for my concerns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|