Almost sure,

you can look in the pdf page 3
http://www.maths.qmul.ac.uk/~whitty/LSBU/MathsStudyGroup/Buchberger.pdf
It is exactly this one that I want to write.
Naturally it is a repeat loop because you enter at least once in the loop.


Le mardi 18 mars 2014 22:16:11 UTC+1, projetmbc a écrit :
>
> Are sure of the validity of your algorithm because you "always" append 
> element to the list S ?
>
>
> 2014-03-18 22:07 GMT+01:00 etienne mann <etienn...@gmail.com <javascript:>
> >:
>
>> I want to program the Buchberger algo to compute a grobner basis. I know 
>> it is already in sage but for my students, I want them to rewrite it.
>> The loop is something like
>>     repeat:
>>         S=[]; 
>>         for i in range(1,len(G)):
>>             for j in range(1,len(G)):
>>                 r= AlgoDivision(SPolynomial(G[i],G[j]),G)[2];
>>                 if not(r==0):
>>                     Append(~S,r)
>>         G=G + S;
>>     until S==[]; 
>>
>> Le mardi 18 mars 2014 22:01:17 UTC+1, projetmbc a écrit :
>>>
>>> Hello,
>>> you have to learn Python a little before using Sage.
>>>
>>> In Python you just have while and for loops. 
>>>
>>> What kind of repeat loop do you want to do ?
>>>
>>> Christophe BAL
>>>
>>>
>>> 2014-03-18 21:57 GMT+01:00 etienne mann <etienn...@gmail.com>:
>>>
>>>> Hi,
>>>>
>>>> I did not find a reference for programing a repeat loop in sage?
>>>> Of course, I can also use a while loop but it seems strange that there 
>>>> is no repeat loop :)
>>>>
>>>> thx for a clue
>>>> Etienne
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "sage-support" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to sage-support...@googlegroups.com.
>>>> To post to this group, send email to sage-s...@googlegroups.com.
>>>>
>>>> Visit this group at http://groups.google.com/group/sage-support.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-support...@googlegroups.com <javascript:>.
>> To post to this group, send email to sage-s...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/sage-support.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to