<s> from __future__ import division , print_function , absolute_import <EOL> from numpy import sin , sum <EOL> from . go_benchmark import Benchmark <EOL> class Infinity ( Benchmark ) : <EOL> r"""<STR_LIT>""" <EOL> def __init__ ( self , dimensions = <NUM_LIT:2> ) : <EOL> Benchmark . __init__ ( self , dimensions ) <EOL> self . _bounds = zip ( [ - <NUM_LIT:1.0> ] * self . N , [ <NUM_LIT:1.0> ] * self . N ) <EOL> self . global_optimum = [ [ <NUM_LIT> for _ in range ( self . N ) ] ] <EOL> self . fglob = <NUM_LIT:0.0> <EOL> self . change_dimensionality = True <EOL> def fun ( self , x , * args ) : <EOL> self . nfev += <NUM_LIT:1> <EOL> return sum ( x ** <NUM_LIT> * ( sin ( <NUM_LIT:1.0> / x ) + <NUM_LIT> ) ) </s>
