parameters: (u: np.ndarray, v: np.ndarray)
return_statement: return math.acos(cos)
docstring: Angle between two vectors.
  
      >>> u = [ 0.99500417, -0.33333333, -0.09983342]
      >>> v = [ -0.99500417, +0.33333333, +0.09983342]
      >>> vector_angle(u, u)
      0.0
      >>> np.isclose(vector_angle(u, v), np.pi)
      True
docstring_summary: Angle between two vectors.
docstring_tokens: Angle between two vectors .
function: def vector_angle(u: np.ndarray, v: np.ndarray) -> float:
      """Angle between two vectors.
  
      >>> u = [ 0.99500417, -0.33333333, -0.09983342]
      >>> v = [ -0.99500417, +0.33333333, +0.09983342]
      >>> vector_angle(u, u)
      0.0
      >>> np.isclose(vector_angle(u, v), np.pi)
      True
      """
      cos = np.dot(u, v) / math.sqrt(np.dot(u, u) * np.dot(v, v))
      cos = np.clip(cos, -1, 1)
      return math.acos(cos)
function_tokens: def vector_angle ( u : np . ndarray , v : np . ndarray ) -> float : cos = np . dot ( u , v ) / math . sqrt ( np . dot ( u , u ) * np . dot ( v , v ) ) cos = np . clip ( cos , - 1 , 1 ) return math . acos ( cos )