#NEWLINE# def test_issue_8469( ) : #NEWLINE# #INDENT# N = 40 #NEWLINE# def g( w , theta ) : #NEWLINE# #INDENT# return ( 1 / ( 1 + exp ( ( w - theta ) ) ) ) #NEWLINE# #UNINDENT# ws = symbols ( [ ( 'w%i' % i ) for i in range ( N ) ] ) #NEWLINE# import functools #NEWLINE# expr = functools . reduce ( i , ws )