def l2_projection(f, basis, lim):
    r = 0
    for b in basis:
        r += l2_inner_product(f, b, lim) * b
    return r
Encapsulates working with a database.
dataset/ETHPy150Open sympy/sympy/examples/advanced/gibbs_phenomenon.py/l2_projection--crossover with--dataset/ETHPy150Open openstack/swift/swift/common/db.py/DatabaseBroker.__init__