#NEWLINE# def test_golden( self ) : #NEWLINE# #INDENT# x = optimize . golden ( self . fun ) #NEWLINE# assert_allclose ( x , self . solution , atol = 1e-06 ) #NEWLINE# x = optimize . golden ( self . fun , brack = ( ( - 3 ) , ( - 2 ) ) ) #NEWLINE# assert_allclose ( x , self . solution , atol = 1e-06 ) #NEWLINE# x = optimize . golden ( self . fun , full_output = True ) #NEWLINE# assert_allclose ( x [ 0 ] , self . solution , atol = 1e-06 ) #NEWLINE# x = optimize . golden ( self . fun , brack = ( ( - 15 ) , ( - 1 ) , 15 ) ) #NEWLINE# assert_allclose ( x , self . solution , atol = 1e-06 )