+
    
þÎj  ã            	       óv   € ^ RI Ht ^ RIHtHtHtHt ^ RIHt . ROt	RR lt
R t ! R R]! RRR	.4      4      tR
# )é    )Úsympify)ÚPointÚDyadicÚReferenceFrameÚouter)Ú
namedtupleÚInertiac                óÒ  € \        V \        4      '       g   \        R4      h\        V4      \        V4      \        V4      r2p\        V4      \        V4      \        V4      repV\	        V P
                  V P
                  4      ,          V\	        V P
                  V P                  4      ,          ,           V\	        V P
                  V P                  4      ,          ,           V\	        V P                  V P
                  4      ,          ,           V\	        V P                  V P                  4      ,          ,           V\	        V P                  V P                  4      ,          ,           V\	        V P                  V P
                  4      ,          ,           V\	        V P                  V P                  4      ,          ,           V\	        V P                  V P                  4      ,          ,           # )a  Simple way to create inertia Dyadic object.

Explanation
===========

Creates an inertia Dyadic based on the given tensor values and a body-fixed
reference frame.

Parameters
==========

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.physics.mechanics import ReferenceFrame, inertia
>>> N = ReferenceFrame('N')
>>> inertia(N, 1, 2, 3)
(N.x|N.x) + 2*(N.y|N.y) + 3*(N.z|N.z)

z%Need to define the inertia in a frame)Ú
isinstancer   Ú	TypeErrorr   r   ÚxÚyÚz)ÚframeÚixxÚiyyÚizzÚixyÚiyzÚizxs   &&&&&&&ÚU/opt/data/home/.local/lib/python3.14/site-packages/sympy/physics/mechanics/inertia.pyÚinertiar      sN  € ôJ �eœ^×,Ò,ÜÐ?Ó@Ð@Ü˜C“L¤'¨#£,´¸³ˆc€CÜ˜C“L¤'¨#£,´¸³ˆc€CØ”�e—g‘g˜uŸw™wÓ'Õ'¨#¬e°E·G±G¸U¿W¹WÓ.EÕ*EÕEØ”�e—g‘g˜uŸw™wÓ'Õ'õ(Ø*-¬e°E·G±G¸U¿W¹WÓ.EÕ*EõFà”�e—g‘g˜uŸw™wÓ'Õ'õ(à*-¬e°E·G±G¸U¿W¹WÓ.EÕ*EõFð ”�e—g‘g˜uŸw™wÓ'Õ'õ(ð +.¬e°E·G±G¸U¿W¹WÓ.EÕ*EõFð ”�e—g‘g˜uŸw™wÓ'Õ'õ	(ð )ó    c                ó0  € V \        VP                  VP                  4      \        VP                  VP                  4      ,           \        VP                  VP                  4      ,           VP	                  V4      ,          \        W4      ,
          ,          # )a  Inertia dyadic of a point mass relative to point O.

Parameters
==========

mass : Sympifyable
    Mass of the point mass
pos_vec : Vector
    Position from point O to point mass
frame : ReferenceFrame
    Reference frame to express the dyadic in

Examples
========

>>> from sympy import symbols
>>> from sympy.physics.mechanics import ReferenceFrame, inertia_of_point_mass
>>> N = ReferenceFrame('N')
>>> r, m = symbols('r m')
>>> px = r * N.x
>>> inertia_of_point_mass(m, px, N)
m*r**2*(N.y|N.y) + m*r**2*(N.z|N.z)

)r   r   r   r   Údot)ÚmassÚpos_vecr   s   &&&r   Úinertia_of_point_massr   8   ss   € ð4 Ü	ˆu�w‰w˜Ÿ™Ó	 Ü	ˆu�w‰w˜Ÿ™Ó	 õ
!ä	ˆu�w‰w˜Ÿ™Ó	 õ
!ð 
�‰�WÓ	õ	ô "' wÓ!8õ	9õ:ð :r   c                   ób   a a€ ] tR t^Yt oRtRtV 3R lt]RR l4       tR t	R t
]	t]
tRtVtV ;t# )r	   a  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)

c                ó  <€ \        V\        4      '       d   \        V\        4      '       d   Yr\        V\        4      '       g   \        R 4      h\        V\        4      '       g   \        R4      h\        SV `  WV4      # )z'Reference point should be of type Pointz-Inertia value should be expressed as a Dyadic)r   r   r   r   ÚsuperÚ__new__)ÚclsÚdyadicÚpointÚ	__class__s   &&&€r   r"   ÚInertia.__new__}   sd   ø€ ä�fœe×$Ò$¬°E¼6×)BÒ)BØ"�6Ü˜%¤×'Ò'ÜÐEÓFÐFÜ˜&¤&×)Ò)ÜÐKÓLÐLÜ‰w‰˜s¨EÓ2Ð2r   c	                ó,   € V ! \        W#WEWgV4      V4      # )aŽ  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]])

)r   )	r#   r%   r   r   r   r   r   r   r   s	   &&&&&&&&&r   Úfrom_inertia_scalarsÚInertia.from_inertia_scalars‡   s   € ñf ”7˜5 s°¸3Ó?ÀÓGÐGr   c                óv   € \        R V P                  P                   RVP                  P                   R24      h)z$unsupported operand type(s) for +: 'ú' and 'Ú'©r   r&   Ú__name__©ÚselfÚothers   &&r   Ú__add__ÚInertia.__add__¼   ó@   € Üð Ø ŸN™N×3Ñ3Ð4ð 5Ø!ŸO™O×4Ñ4Ð5°Qð8ó 9ð 	9r   c                óv   € \        R V P                  P                   RVP                  P                   R24      h)z$unsupported operand type(s) for *: 'r,   r-   r.   r0   s   &&r   Ú__mul__ÚInertia.__mul__Á   r5   r   © ©r   r   r   )r/   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r"   Úclassmethodr)   r3   r7   Ú__radd__Ú__rmul__Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r&   Ú__classdict__s   @@r   r	   r	   Y   sF   ù‡ € ñ ðB €Iõ3ð ó2Hó ð2Hòh9ò
9ð
 €HØ‡H€Hr   r$   r%   N)r   r   r	   r:   )Úsympyr   Úsympy.physics.vectorr   r   r   r   Úcollectionsr   Ú__all__r   r   r	   r9   r   r   Ú<module>rK      s<   ðÝ ß EÓ EÝ "â
9€ô-)ò`:ôBn‰j˜ X¨wÐ$7Ó8ö nr   