#NEWLINE# def value( self , x ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# returnValue = numpy . tan ( x ) #NEWLINE# return ConvertInfAndNanToLargeNumber ( x ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return ( 1e+300 * numpy . ones_like ( x ) )