def smoothstep(edge0, edge1, x):
 x = np.clip(((x - edge0) / (edge1 - edge0)), 0.0, 1.0)
 return ((x * x) * (3 - (2 * x)))

def smoothstep ( edge0 , edge1 , x ) : x = np . clip ( ( ( x - edge0 ) / ( edge1 - edge0 ) ) , 0.0 , 1.0 ) return ( ( x * x ) * ( 3 - ( 2 * x ) ) )
returns the hermite interpolation for x between a and b .