2008/7/19 William Stein <[EMAIL PROTECTED]>: > > On Sat, Jul 19, 2008 at 10:29 AM, doctorantinfo <[EMAIL PROTECTED]> wrote: >> >> >> Hello >> I wrote this program in SAGE online, but i failed to find error, I >> need help >> >> def gcd_multipliers(x, alpha, i): >> fac=factor(alpha) >> projections=[] >> for p,v in fac: >> l=[0]*len(x); >> if gcd(x[i],p)!= 1: l[i]=1; >> for j in range(1, len(x)): >> if gcd(x[j],p) == 1: >> l[j]=1; break >> projections.append(l) >> return CRT_vectors(projections, [p^v for p,v in fac]) >> >> Regards > > In Python indentation is meaningful. So you have to post a program > here that is correctly indendented or it isn't meaningful. > > -- William
Also, if you want help debugging your program you should say what the program is trying do do: what is the input and what should be the output. Otherwise how can people help you? John > > > > --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
