def fg2(x):
 return (np.sin((2 * x)) + (2 * np.exp(((-16) * (x ** 2)))))

def fg2 ( x ) : return ( np . sin ( ( 2 * x ) ) + ( 2 * np . exp ( ( ( - 16 ) * ( x ** 2 ) ) ) ) )
fan and gijbels example function 2 .