#NEWLINE# def test_cosine_weighted_infinite( self ) : #NEWLINE# #INDENT# def myfunc( x , a ) : #NEWLINE# #INDENT# return exp ( ( x * a ) ) #NEWLINE# #UNINDENT# a = 2.5 #NEWLINE# ome = 2.3 #NEWLINE# assert_quad ( quad ( myfunc , ( - Inf ) , 0 , args = a , weight = 'cos' , wvar = ome ) , ( a / ( ( a ** 2 ) + ( ome ** 2 ) ) ) )