def l2_inner_product(a, b, lim):
 return integrate((conjugate(a) * b), lim)

def l2_inner_product ( a , b , lim ) : return integrate ( ( conjugate ( a ) * b ) , lim )
calculates the l2 inner product over the domain lim .