In PYTHON and most likely using recursion I wrote a code wit
In PYTHON and most likely using recursion. I wrote a code with a for loop, but was wondering if there was another way using recursion or another iterable method.
(4) Given a function f of one variable the math symbol works like this f(b) Write a function called sigma that implements this For example, to evaluate 10 you would use your sigma function like this: def fCn): return 1/pow (2,n) print sigma f,2,10))Solution
def f(n):
    return 1.0/pow(2,n)
 def sigma(f,m,n):
    if(m==n):
        return f(m)
    return f(m)+sigma(f,m+1,n)
 print(sigma(f,2,10))
 print(sigma(f,2,2))

