def normpdf(x, *args):
 (mu, sigma) = args
 return ((1.0 / (np.sqrt((2 * np.pi)) * sigma)) * np.exp(((-0.5) * (((1.0 / sigma) * (x - mu)) ** 2))))

def normpdf ( x , * args ) : ( mu , sigma ) = args return ( ( 1.0 / ( np . sqrt ( ( 2 * np . pi ) ) * sigma ) ) * np . exp ( ( ( - 0.5 ) * ( ( ( 1.0 / sigma ) * ( x - mu ) ) ** 2 ) ) ) )
return the normal pdf evaluated at *x*; args provides *mu* .