class_docstr: The class used to define vectors.
  
  It along with ReferenceFrame are the building blocks of describing a
  classical mechanics system in PyDy and sympy.physics.vector.
  
  Attributes
  ==========
  
  simp : Boolean
      Let certain methods use trigsimp on their outputs
class_docstr_tok: ["The","class","used","to","define","vectors",".","It","along","with","ReferenceFrame","are","the","building","blocks","of","describing","a","classical","mechanics","system","in","PyDy","and","sympy.physics.vector",".","Attributes","==========","simp",":","Boolean","Let","certain","methods","use","trigsimp","on","their","outputs"]
docstr: Replace occurrences of objects within the measure numbers of the
  vector.
  
  Parameters
  ==========
  
  rule : dict-like
      Expresses a replacement rule.
  
  Returns
  =======
  
  Vector
      Result of the replacement.
  
  Examples
  ========
  
  >>> from sympy import symbols, pi
  >>> from sympy.physics.vector import ReferenceFrame
  >>> A = ReferenceFrame('A')
  >>> x, y, z = symbols('x y z')
  >>> ((1 + x*y) * A.x).xreplace({x: pi})
  (pi*y + 1)*A.x
  >>> ((1 + x*y) * A.x).xreplace({x: pi, y: 2})
  (1 + 2*pi)*A.x
  
  Replacements occur only if an entire node in the expression tree is
  matched:
  
  >>> ((x*y + z) * A.x).xreplace({x*y: pi})
  (z + pi)*A.x
  >>> ((x*y*z) * A.x).xreplace({x*y: pi})
  x*y*z*A.x
docstr_tok: ["Replace","occurrences","of","objects","within","the","measure","numbers","of","the","vector",".","Parameters","==========","rule",":","dict-like","Expresses","a","replacement","rule",".","Returns","=======","Vector","Result","of","the","replacement",".","Examples","========",">",">",">","from","sympy","import","symbols",",","pi",">",">",">","from","sympy.physics.vector","import","ReferenceFrame",">",">",">","A","=","ReferenceFrame","(","'","A","'",")",">",">",">","x",",","y",",","z","=","symbols","(","'","x","y","z","'",")",">",">",">","(","(","1","+","x","*","y",")","*","A.x",")",".xreplace","(","{","x",":","pi","}",")","(","pi","*","y","+","1",")","*","A.x",">",">",">","(","(","1","+","x","*","y",")","*","A.x",")",".xreplace","(","{","x",":","pi",",","y",":","2","}",")","(","1","+","2","*","pi",")","*","A.x","Replacements","occur","only","if","an","entire","node","in","the","expression","tree","is","matched",":",">",">",">","(","(","x","*","y","+","z",")","*","A.x",")",".xreplace","(","{","x","*","y",":","pi","}",")","(","z","+","pi",")","*","A.x",">",">",">","(","(","x","*","y","*","z",")","*","A.x",")",".xreplace","(","{","x","*","y",":","pi","}",")","x","*","y","*","z","*","A.x"]
code: def xreplace(self, rule):
      """Replace occurrences of objects within the measure numbers of the
      vector.
  
      Parameters
      ==========
  
      rule : dict-like
          Expresses a replacement rule.
  
      Returns
      =======
  
      Vector
          Result of the replacement.
  
      Examples
      ========
  
      >>> from sympy import symbols, pi
      >>> from sympy.physics.vector import ReferenceFrame
      >>> A = ReferenceFrame('A')
      >>> x, y, z = symbols('x y z')
      >>> ((1 + x*y) * A.x).xreplace({x: pi})
      (pi*y + 1)*A.x
      >>> ((1 + x*y) * A.x).xreplace({x: pi, y: 2})
      (1 + 2*pi)*A.x
  
      Replacements occur only if an entire node in the expression tree is
      matched:
  
      >>> ((x*y + z) * A.x).xreplace({x*y: pi})
      (z + pi)*A.x
      >>> ((x*y*z) * A.x).xreplace({x*y: pi})
      x*y*z*A.x
  
      """
  
      new_args = []
      for mat, frame in self.args:
          mat = mat.xreplace(rule)
          new_args.append([mat, frame])
      return Vector(new_args)
  
imports: from sympy import S, sympify, expand, sqrt, Add, zeros, acos, ImmutableMatrix, simplify
  from sympy.simplify.trigsimp import trigsimp
  from sympy.printing.defaults import Printable
  from sympy.utilities.misc import filldedent
  from sympy.core.evalf import EvalfMixin
  from mpmath.libmp.libmpf import prec_to_dps
label_desc: Use image node_id 36 for calling the Vector obj's underlying member method code with example usage: obj.xreplace(rule) and returns: Vector