class_docstr: A Dyadic object.
  
  See:
  https://en.wikipedia.org/wiki/Dyadic_tensor
  Kane, T., Levinson, D. Dynamics Theory and Applications. 1985 McGraw-Hill
  
  A more powerful way to represent a rigid body's inertia. While it is more
  complex, by choosing Dyadic components to be in body fixed basis vectors,
  the resulting matrix is equivalent to the inertia tensor.
class_docstr_tok: ["A","Dyadic","object",".","See",":","https",":","\/\/en.wikipedia.org\/wiki\/Dyadic_tensor","Kane",",","T.",",","Levinson",",","D.","Dynamics","Theory","and","Applications",".","1985","McGraw-Hill","A","more","powerful","way","to","represent","a","rigid","body","'s","inertia",".","While","it","is","more","complex",",","by","choosing","Dyadic","components","to","be","in","body","fixed","basis","vectors",",","the","resulting","matrix","is","equivalent","to","the","inertia","tensor","."]
docstr: Substitution on the Dyadic.
  
  Examples
  ========
  
  >>> from sympy.physics.vector import ReferenceFrame
  >>> from sympy import Symbol
  >>> N = ReferenceFrame('N')
  >>> s = Symbol('s')
  >>> a = s*(N.x|N.x)
  >>> a.subs({s: 2})
  2*(N.x|N.x)
docstr_tok: ["Substitution","on","the","Dyadic",".","Examples","========",">",">",">","from","sympy.physics.vector","import","ReferenceFrame",">",">",">","from","sympy","import","Symbol",">",">",">","N","=","ReferenceFrame","(","'N","'",")",">",">",">","s","=","Symbol","(","'s","'",")",">",">",">","a","=","s","*","(","N.x|N.x",")",">",">",">","a.subs","(","{","s",":","2","}",")","2","*","(","N.x|N.x",")"]
code: def subs(self, *args, **kwargs):
      """Substitution on the Dyadic.
  
      Examples
      ========
  
      >>> from sympy.physics.vector import ReferenceFrame
      >>> from sympy import Symbol
      >>> N = ReferenceFrame('N')
      >>> s = Symbol('s')
      >>> a = s*(N.x|N.x)
      >>> a.subs({s: 2})
      2*(N.x|N.x)
  
      """
  
      return sum(
          [
              Dyadic([(v[0].subs(*args, **kwargs), v[1], v[2])])
              for v in self.args
          ],
          Dyadic(0),
      )
  
imports: from sympy import sympify, Add, ImmutableMatrix
  from sympy.core.evalf import EvalfMixin
  from sympy.printing.defaults import Printable
  from mpmath.libmp.libmpf import prec_to_dps
label_desc: Use image node_id 23 for calling the Dyadic obj's underlying member method code with example usage: obj.subs() and returns: sum