ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 03 Jan 2015 12:55:13 +0100How to create a loop with two variables?https://ask.sagemath.org/question/25383/how-to-create-a-loop-with-two-variables/I have defined the following functions:
def I(x):
return 1
def Moebius(x):
return sum(moebius(i) * I(x*i^(-1)) for i in range(1,x+1))
The output is of course Mertens function. How do I turn `Moebius(x)` into an operator, so that I can define `Moebius^2(x)` as the Moebius transform of the output?
Kevin SmithSat, 03 Jan 2015 12:55:13 +0100https://ask.sagemath.org/question/25383/