def _vect_div(one, other):
 if (isinstance(one, Vector) and isinstance(other, Vector)):
  raise TypeError('Cannot divide two vectors')
 elif isinstance(one, Vector):
  if (other == S.Zero):
   raise ValueError('Cannot divide a vector by zero')
  return VectorMul(one, Pow(other, S.NegativeOne))
 else:
  raise TypeError('Invalid division involving a vector')

def _vect_div ( one , other ) : if ( isinstance ( one , Vector ) and isinstance ( other , Vector ) ) : raise TypeError ( 'Cannot divide two vectors' ) elif isinstance ( one , Vector ) : if ( other == S . Zero ) : raise ValueError ( 'Cannot divide a vector by zero' ) return VectorMul ( one , Pow ( other , S . NegativeOne ) ) else : raise TypeError ( 'Invalid division involving a vector' )
helper for division involving vectors .