#NEWLINE# def l2_inner_product( a , b , lim ) : #NEWLINE# #INDENT# '\n    Calculates the L2 inner product (a, b) over the domain lim.\n    ' #NEWLINE# return integrate ( ( conjugate ( a ) * b ) , lim )