def l2_norm(f, lim):
    return sqrt(integrate(Abs(f)**2, lim))
Calculates L2 norm of the function "f", over the domain lim=(x, a, b).
dataset/ETHPy150Open sympy/sympy/examples/advanced/gibbs_phenomenon.py/l2_norm