Hi William,

Some worries because solve_mod was broken already in version 4.1...!
It seems that 'automatic' testing is more and more vital to keep SAGE
clean / running safe.

In the current setup users finds bugs by a 'random' process. Can
(heavy) users help in a more structural manner?

For instance, I have many worksheet with fixed outcomes. I assume many
others have too. Not a big deal to run these worksheets as a check
just after downloading a new release. A small (time) offer for a great
community....

Interested?

Roland

On 1 feb, 00:43, William Stein <[email protected]> wrote:
> 2010/1/31 Rolandb <[email protected]>:
>
>
>
> > Hi,
>
> > Consider:
>
> > var('a,b')
> > print solve_mod([a^2+7*b^2==23],101)
> > [(4, 1), (4, 100), (5, 12), (5, 89), (7, 16), (7, 85), (8, 15), (8,
> > 86), (11, 17), (11, 84), (14, 29), (14, 72), (15, 0), (18, 19), (18,
> > 82), (19, 46), (19, 55), (20, 50), (20, 51), (22, 8), (22, 93), (24,
> > 27), (24, 74), (29, 35), (29, 66), (30, 25), (30, 76), (31, 13), (31,
> > 88), (35, 47), (35, 54), (36, 7), (36, 94), (38, 10), (38, 91), (40,
> > 11), (40, 90), (41, 14), (41, 87), (43, 24), (43, 77), (45, 44), (45,
> > 57), (46, 2), (46, 99), (48, 39), (48, 62), (49, 18), (49, 83), (50,
> > 33), (50, 68), (51, 33), (51, 68), (52, 18), (52, 83), (53, 39), (53,
> > 62), (55, 2), (55, 99), (56, 44), (56, 57), (58, 24), (58, 77), (60,
> > 14), (60, 87), (61, 11), (61, 90), (63, 10), (63, 91), (65, 7), (65,
> > 94), (66, 47), (66, 54), (70, 13), (70, 88), (71, 25), (71, 76), (72,
> > 35), (72, 66), (77, 27), (77, 74), (79, 8), (79, 93), (81, 50), (81,
> > 51), (82, 46), (82, 55), (83, 19), (83, 82), (86, 0), (87, 29), (87,
> > 72), (90, 17), (90, 84), (93, 15), (93, 86), (94, 16), (94, 85), (96,
> > 12), (96, 89), (97, 1), (97, 100)]
> > Thus for the first item (4,1) in the above list: 4^2+7*1^2 = 16+7*1 =
> > 23 is a solution because 23%101=23.
>
> > But why is the following list empty?
> > print solve_mod([a^2+7*b^2==23],100)   #Hundred
> > []
>
> > Roland
>
> I reported this a few days ago to trac:
>
>  http://trac.sagemath.org/sage_trac/ticket/8098
>
> William

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to