#NEWLINE# def test_sine_weighted_finite( self ) : #NEWLINE# #INDENT# def myfunc( x , a ) : #NEWLINE# #INDENT# return exp ( ( a * ( x - 1 ) ) ) #NEWLINE# #UNINDENT# ome = ( 2.0 ** 3.4 ) #NEWLINE# assert_quad ( quad ( myfunc , 0 , 1 , args = 20 , weight = 'sin' , wvar = ome ) , ( ( ( ( 20 * sin ( ome ) ) - ( ome * cos ( ome ) ) ) + ( ome * exp ( ( - 20 ) ) ) ) / ( ( 20 ** 2 ) + ( ome ** 2 ) ) ) )