I don't think it is reasonable to ask the contributors to sage-support to write your programs for you if you do not know how to program in python. Sage uses the programming language python; there are many books and online resources out there from which you can learn how to program in python, and I think you need to read some of them.
This will be far more use to you than if I just translate the pseudocode in your post into python for you. I myself had written a single line of python 5 years ago, but there are hundreds (possibly thousands) of lines in the Sage source code written by me. It is not a hard language to learn. John Cremona On 14 April 2013 12:27, Neda <[email protected]> wrote: > > hello I want to write this algorithm in sage, but I don't know how to write > it as an algorithm in sage, could you please help me > > Algorithm : update basis-update of intermediate basis G with reduct h Given: > a finite set G_old ? B[X] and the reduct 0!=h ? B[X] > > Find: updates G_new ? B[X] of G_old > > begin > > 1: G_new <-- Ø > > 2: while G_old !=Ø do > > 3: selecting from G_old ; G_old <-- G_old {g} > > 4: if HT(h) not divisible HT(g) then > > 5: G_new <-- G_new U {g} > > 6: end > > 7:end > > 8: G_new <-- G_new U {h} > > 9: return G_new > > end > > thank you so much > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sage-support?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
