class_docstr: Inertia object consisting of a Dyadic and a Point of reference.
  
  Explanation
  ===========
  
  This is a simple class to store the Point and Dyadic, belonging to an
  inertia.
  
  Attributes
  ==========
  
  dyadic : Dyadic
      The dyadic of the inertia.
  point : Point
      The reference point of the inertia.
  
  Examples
  ========
  
  >>> from sympy.physics.mechanics import ReferenceFrame, Point, Inertia
  >>> N = ReferenceFrame('N')
  >>> Po = Point('Po')
  >>> Inertia(N.x.outer(N.x) + N.y.outer(N.y) + N.z.outer(N.z), Po)
  ((N.x|N.x) + (N.y|N.y) + (N.z|N.z), Po)
  
  In the example above the Dyadic was created manually, one can however also
  use the ``inertia`` function for this or the class method ``from_tensor`` as
  shown below.
  
  >>> Inertia.from_inertia_scalars(Po, N, 1, 1, 1)
  ((N.x|N.x) + (N.y|N.y) + (N.z|N.z), Po)
class_docstr_tok: ["Inertia","object","consisting","of","a","Dyadic","and","a","Point","of","reference",".","Explanation","===========","This","is","a","simple","class","to","store","the","Point","and","Dyadic",",","belonging","to","an","inertia",".","Attributes","==========","dyadic",":","Dyadic","The","dyadic","of","the","inertia",".","point",":","Point","The","reference","point","of","the","inertia",".","Examples","========",">",">",">","from","sympy.physics.mechanics","import","ReferenceFrame",",","Point",",","Inertia",">",">",">","N","=","ReferenceFrame","(","'N","'",")",">",">",">","Po","=","Point","(","'Po","'",")",">",">",">","Inertia","(","N.x.outer","(","N.x",")","+","N.y.outer","(","N.y",")","+","N.z.outer","(","N.z",")",",","Po",")","(","(","N.x|N.x",")","+","(","N.y|N.y",")","+","(","N.z|N.z",")",",","Po",")","In","the","example","above","the","Dyadic","was","created","manually",",","one","can","however","also","use","the","``","inertia","``","function","for","this","or","the","class","method","``","from_tensor","``","as","shown","below",".",">",">",">","Inertia.from_inertia_scalars","(","Po",",","N",",","1",",","1",",","1",")","(","(","N.x|N.x",")","+","(","N.y|N.y",")","+","(","N.z|N.z",")",",","Po",")"]
docstr: Simple way to create an Inertia object based on the tensor values.
  
  Explanation
  ===========
  
  This class method uses the :func`~.inertia` to create the Dyadic based
  on the tensor values.
  
  Parameters
  ==========
  
  point : Point
      The reference point of the inertia.
  frame : ReferenceFrame
      The frame the inertia is defined in.
  ixx : Sympifyable
      The xx element in the inertia dyadic.
  iyy : Sympifyable
      The yy element in the inertia dyadic.
  izz : Sympifyable
      The zz element in the inertia dyadic.
  ixy : Sympifyable
      The xy element in the inertia dyadic.
  iyz : Sympifyable
      The yz element in the inertia dyadic.
  izx : Sympifyable
      The zx element in the inertia dyadic.
  
  Examples
  ========
  
  >>> from sympy import symbols
  >>> from sympy.physics.mechanics import ReferenceFrame, Point, Inertia
  >>> ixx, iyy, izz, ixy, iyz, izx = symbols('ixx iyy izz ixy iyz izx')
  >>> N = ReferenceFrame('N')
  >>> P = Point('P')
  >>> I = Inertia.from_inertia_scalars(P, N, ixx, iyy, izz, ixy, iyz, izx)
  
  The tensor values can easily be seen when converting the dyadic to a
  matrix.
  
  >>> I.dyadic.to_matrix(N)
  Matrix([
  [ixx, ixy, izx],
  [ixy, iyy, iyz],
  [izx, iyz, izz]])
docstr_tok: ["Simple","way","to","create","an","Inertia","object","based","on","the","tensor","values",".","Explanation","===========","This","class","method","uses","the",":","func","`","~.inertia","`","to","create","the","Dyadic","based","on","the","tensor","values",".","Parameters","==========","point",":","Point","The","reference","point","of","the","inertia",".","frame",":","ReferenceFrame","The","frame","the","inertia","is","defined","in",".","ixx",":","Sympifyable","The","xx","element","in","the","inertia","dyadic",".","iyy",":","Sympifyable","The","yy","element","in","the","inertia","dyadic",".","izz",":","Sympifyable","The","zz","element","in","the","inertia","dyadic",".","ixy",":","Sympifyable","The","xy","element","in","the","inertia","dyadic",".","iyz",":","Sympifyable","The","yz","element","in","the","inertia","dyadic",".","izx",":","Sympifyable","The","zx","element","in","the","inertia","dyadic",".","Examples","========",">",">",">","from","sympy","import","symbols",">",">",">","from","sympy.physics.mechanics","import","ReferenceFrame",",","Point",",","Inertia",">",">",">","ixx",",","iyy",",","izz",",","ixy",",","iyz",",","izx","=","symbols","(","'ixx","iyy","izz","ixy","iyz","izx","'",")",">",">",">","N","=","ReferenceFrame","(","'N","'",")",">",">",">","P","=","Point","(","'","P","'",")",">",">",">","I","=","Inertia.from_inertia_scalars","(","P",",","N",",","ixx",",","iyy",",","izz",",","ixy",",","iyz",",","izx",")","The","tensor","values","can","easily","be","seen","when","converting","the","dyadic","to","a","matrix",".",">",">",">","I.dyadic.to_matrix","(","N",")","Matrix","(","[","[","ixx",",","ixy",",","izx","]",",","[","ixy",",","iyy",",","iyz","]",",","[","izx",",","iyz",",","izz","]","]",")"]
code: def from_inertia_scalars(
      cls, point, frame, ixx, iyy, izz, ixy=0, iyz=0, izx=0
  ):
      """Simple way to create an Inertia object based on the tensor values.
  
      Explanation
      ===========
  
      This class method uses the :func`~.inertia` to create the Dyadic based
      on the tensor values.
  
      Parameters
      ==========
  
      point : Point
          The reference point of the inertia.
      frame : ReferenceFrame
          The frame the inertia is defined in.
      ixx : Sympifyable
          The xx element in the inertia dyadic.
      iyy : Sympifyable
          The yy element in the inertia dyadic.
      izz : Sympifyable
          The zz element in the inertia dyadic.
      ixy : Sympifyable
          The xy element in the inertia dyadic.
      iyz : Sympifyable
          The yz element in the inertia dyadic.
      izx : Sympifyable
          The zx element in the inertia dyadic.
  
      Examples
      ========
  
      >>> from sympy import symbols
      >>> from sympy.physics.mechanics import ReferenceFrame, Point, Inertia
      >>> ixx, iyy, izz, ixy, iyz, izx = symbols('ixx iyy izz ixy iyz izx')
      >>> N = ReferenceFrame('N')
      >>> P = Point('P')
      >>> I = Inertia.from_inertia_scalars(P, N, ixx, iyy, izz, ixy, iyz, izx)
  
      The tensor values can easily be seen when converting the dyadic to a
      matrix.
  
      >>> I.dyadic.to_matrix(N)
      Matrix([
      [ixx, ixy, izx],
      [ixy, iyy, iyz],
      [izx, iyz, izz]])
  
      """
      return cls(inertia(frame, ixx, iyy, izz, ixy, iyz, izx), point)
  
file_path: sympy/sympy/physics/mechanics/inertia.py
imports: from sympy import sympify
  from sympy.physics.vector import Point, Dyadic, ReferenceFrame
  from collections import namedtuple
label_desc: Use image node_id 2 for calling the Inertia obj's underlying member method code with example usage: obj.from_inertia_scalars(cls, point, frame, ixx, iyy, izz, ixy, iyz, izx) and returns: cls