#NEWLINE# def minIgnoreNaNAndMaxValue( self , x1 , x2 ) : #NEWLINE# #INDENT# if ( ( Double . NaN == x1 ) or ( Double . MAX_VALUE == x1 ) or ( ( - Double . MAX_VALUE ) == x1 ) ) : #NEWLINE# #INDENT# result = x2 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( Double . NaN == x2 ) or ( Double . MAX_VALUE == x2 ) or ( ( - Double . MAX_VALUE ) == x2 ) ) : #NEWLINE# #INDENT# result = x1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# result = min ( x1 , x2 ) #NEWLINE# #UNINDENT# #UNINDENT# return result