#NEWLINE# def diffuse_array_expressions( iter_num ) : #NEWLINE# #INDENT# u = np . zeros ( ( Lx , Ly ) , dtype = np . float64 ) #NEWLINE# temp_u = np . zeros_like ( u ) #NEWLINE# temp_u [ ( ( Lx / 2 ) , ( Ly / 2 ) ) ] = 1000.0 #NEWLINE# for _ in range ( iter_num ) : #NEWLINE# #INDENT# u [ 1 : ( - 1 ) , 1 : ( - 1 ) ] = ( mu * ( ( ( ( temp_u [ 2 : , 1 : ( - 1 ) ] + temp [ : ( - 2 ) , 1 : ( - 1 ) ] ) + temp_u [ 1 : ( - 1 ) , 2 : ] ) + temp_u [ 1 : ( - 1 ) , : ( - 2 ) ] ) - ( 4 * temp_u [ 1 : ( - 1 ) , 1 : ( - 1 ) ] ) ) ) #NEWLINE# temp = u #NEWLINE# u = temp_u #NEWLINE# temp_u = temp #NEWLINE# #UNINDENT# return u