#NEWLINE# def test_sine_weighted_infinite( self ) : #NEWLINE# #INDENT# def myfunc( x , a ) : #NEWLINE# #INDENT# return exp ( ( ( - x ) * a ) ) #NEWLINE# #UNINDENT# a = 4.0 #NEWLINE# ome = 3.0 #NEWLINE# assert_quad ( quad ( myfunc , 0 , Inf , args = a , weight = 'sin' , wvar = ome ) , ( ome / ( ( myfunc ** 2 ) + ( ome ** 2 ) ) ) )