+
    
þÎj?  ã                   ó<   € R t ^ RIHt ^ RIHu Ht RR ltRR lt	R# )zOThis module contains some sample symbolic models used for testing and
examples.)ÚbackendNc                óú  € \         P                  ! RP                  V 4      4      p\         P                  ! RP                  V 4      4      p\         P                  ! RP                  V 4      4      p\         P                  ! R4      p\        P                  ! RP                  V 4      4      p\        P                  ! RP                  V 4      4      p\        P                  ! RP                  V 4      4      p	\        P
                  ! R4      p
\        P                  ! R	4      pVP                  V
^ 4       V.p. p. p. p\        V 4       EFô  pVR,          P                  R
P                  V4      VV,          V
P                  ,          4      pVP                  W¬R,          P                  V
4      VV,          V
P                  ,          ,           4       VP                  V4       \        P                  ! RP                  V4      VVV,          4      pVP                  VV,          VV,          P                  4       ,
          4       VV,          ) VV,          ,          VV,          VV,          ,          ,
          p VVV^,           ,          VV^,           ,          ,          VV^,           ,          VV^,           ,          ,          ,           ,          pV'       d   VVV,          V,          ,          pV'       d   VV	V,          ,          pVP                  VVV
P                  ,          34       VP                  V4       EK÷  	  \        P                   ! W§VVR7      pVP#                  Wï4       V#   \         d     Lªi ; i)aç  Returns a system containing the symbolic equations of motion and
associated variables for a simple multi-degree of freedom point mass,
spring, damper system with optional gravitational and external
specified forces. For example, a two mass system under the influence of
gravity and external forces looks like:

::

    ----------------
     |     |     |   | g
     \    | |    |   V
  k0 /    --- c0 |
     |     |     | x0, v0
    ---------    V
    |  m0   | -----
    ---------    |
     | |   |     |
     \ v  | |    |
  k1 / f0 --- c1 |
     |     |     | x1, v1
    ---------    V
    |  m1   | -----
    ---------
       | f1
       V

Parameters
==========

n : integer
    The number of masses in the serial chain.
apply_gravity : boolean
    If true, gravity will be applied to each mass.
apply_external_forces : boolean
    If true, a time varying external force will be applied to each mass.

Returns
=======

kane : sympy.physics.mechanics.kane.KanesMethod
    A KanesMethod object.

úm:{}zk:{}zc:{}Úgzx:{}zv:{}zf:{}ÚNÚoriginzcenter{}zblock{}©Úq_indÚu_indÚkd_eqséÿÿÿÿ)ÚsmÚsymbolsÚformatÚmeÚdynamicsymbolsÚReferenceFrameÚPointÚset_velÚrangeÚ	locatenewÚxÚvelÚappendÚParticleÚdiffÚ
IndexErrorÚKanesMethodÚkanes_equations)ÚnÚapply_gravityÚapply_external_forcesÚmassÚ	stiffnessÚdampingÚacceleration_due_to_gravityÚcoordinatesÚspeedsÚ
specifiedsÚceilingr   ÚpointsÚkinematic_equationsÚ	particlesÚforcesÚiÚcenterÚblockÚtotal_forceÚkanes   &&&                  ÚT/opt/data/home/.local/lib/python3.14/site-packages/sympy/physics/mechanics/models.pyÚmulti_mass_spring_damperr4   
   s¥  € ô\ �:Š:�f—m‘m AÓ&Ó'€DÜ—
’
˜6Ÿ=™=¨Ó+Ó,€IÜ�jŠj˜Ÿ™ qÓ)Ó*€Gä"$§*¢*¨S£/Ðä×#Ò# F§M¡M°!Ó$4Ó5€KÜ×Ò˜vŸ}™}¨QÓ/Ó0€FÜ×"Ò" 6§=¡=°Ó#3Ó4€Jä×Ò Ó$€GÜ�XŠX�hÓ€FØ
‡N�N�7˜AÔàˆX€FØÐØ€IØ€Fä�1�Xˆà˜•×%Ñ% j×&7Ñ&7¸Ó&:Ø&1°!¥n°w·y±yÕ&@óBˆà�‰�w r¥
§¡¨wÓ 7Ø˜a•y 7§9¡9Õ,õ!-ô 	.à�‰�fÔä—’˜I×,Ñ,¨QÓ/°¸¸a½ÓAˆà×"Ñ" 6¨!¥9¨{¸1­~×/BÑ/BÓ/DÕ#DÔEà! !��} {°1¥~Õ5Ø˜q•z F¨1¥IÕ-õ.ˆð	Ø˜I a¨!¥eÕ,¨{¸1¸q½5Õ/AÕAØ# A¨¥E�N¨V°A¸µE­]Õ:õ;õ <ˆK÷
 Ø˜4 �7Ð%@Õ@Õ@ˆKç Ø˜: a�=Õ(ˆKà�‰�v˜{¨W¯Y©YÕ6Ð7Ô8à×Ñ˜×ñ9 ô< �>Š>˜'¸FØ!4ô6€Dà×Ñ˜Ô+à€Køô# ô 	Ùð	ús   É9AM,Í,M:Í9M:c                ó¬
  € V ^ 8:  d   \        R4      h\        P                  ! RP                  V ^,           4      4      p\        P                  ! RP                  V ^,           4      4      pVRJ d-   \        P                  ! RP                  V ^,           4      4      p\        P
                  ! RP                  V ^,           4      4      p\        P
                  ! RP                  V 4      4      p\        P
                  ! R4      w  r‰\        P                  ! R	4      p
\        P                  ! R
4      pVP                  V
^ 4       \        P                  ! R4      pVP                  W³^ ,          V
P                  ,          4       VP                  W¤^ ,          V
P                  ,          4       \        P                  ! RWÆ^ ,          4      pV
.pV.pV.pWÆ^ ,          ) V,          V
P                  ,          3.pV^ ,          P                  V	4      V^ ,          ,
          .pVRJ g   VRJ d   . pMRp\        V 4       EF™  pV
P                  RP                  V4      RVV^,           ,          V
P                   .4      pVP#                  W¤V^,           ,          V
P                   ,          4       VP%                  V4       VR,          P'                  RP                  V^,           4      VV,          VP                  ,          4      pVP)                  VR,          V
V4       VP%                  V4       \        P                  ! R\+        V^,           4      ,           VVV^,           ,          4      pVP%                  V4       VP%                  VVV^,           ,          ) V,          V
P                  ,          34       VRJ dÖ   VP%                  XV,          4       V^ 8X  d,   VP%                  W¥V,          ) V
P                   ,          34       VV ^,
          8X  d-   VP%                  VVV,          V
P                   ,          34       MQVP%                  VVV,          V
P                   ,          VV^,           ,          V
P                   ,          ,
          34       VP%                  VV^,           ,          P                  V	4      VV^,           ,          ,
          4       EKœ  	  VRJ dL   \        P                  ! R4      pVP%                  VVV
P                  ,          34       VP%                  V4       \        P,                  ! W£VVR7      pVP/                  VV4       V# )a�  Returns the system containing the symbolic first order equations of
motion for a 2D n-link pendulum on a sliding cart under the influence of
gravity.

::

              |
     o    y   v
      \ 0 ^   g
       \  |
      --\-|----
      |  \|   |
  F-> |   o --|---> x
      |       |
      ---------
       o     o

Parameters
==========

n : integer
    The number of links in the pendulum.
cart_force : boolean, default=True
    If true an external specified lateral force is applied to the cart.
joint_torques : boolean, default=False
    If true joint torques will be added as specified inputs at each
    joint.

Returns
=======

kane : sympy.physics.mechanics.kane.KanesMethod
    A KanesMethod object.

Notes
=====

The degrees of freedom of the system are n + 1, i.e. one for each
pendulum link and one for the lateral motion of the cart.

M x' = F, where x = [u0, ..., un+1, q0, ..., qn+1]

The joint angles are all defined relative to the ground where the x axis
defines the ground line and the y axis points up. The joint torques are
applied between each adjacent link and the between the cart and the
lower link where a positive torque corresponds to positive angle.

z/The number of links must be a positive integer.zq:{}zu:{}TzT1:{}r   zl:{}zg tÚIÚOÚP0ÚPa0NzB{}ÚAxiszP{}ÚPaÚFr   r   )Ú
ValueErrorr   r   r   r   r   r   r   r   Úset_posr   r   Úyr   r   Ú	orientnewÚzÚset_ang_velr   r   Úv2pt_theoryÚstrr   r   )r   Ú
cart_forceÚjoint_torquesÚqÚuÚTÚmÚlr   Útr6   r7   r8   r9   Úframesr*   r,   r-   ÚkindiffsÚ	specifiedr.   ÚBiÚPiÚPair<   r2   s   &&&                       r3   Ún_link_pendulum_on_cartrS   p   sÑ  € ðb 	ˆA„vÜÐJÓKÐKä
×Ò˜&Ÿ-™-¨¨A­Ó.Ó/€AÜ
×Ò˜&Ÿ-™-¨¨A­Ó.Ó/€Aà˜ÓÜ×Ò˜gŸn™n¨Q°­UÓ3Ó4ˆä
�
Š
�6—=‘=  Q¥Ó'Ó(€AÜ
�
Š
�6—=‘= Ó#Ó$€AÜ�:Š:�eÓ�D€Aä
×Ò˜#Ó€AÜ
�Š�‹€AØ‡I�Iˆa�„Oä	�Š�$‹€BØ‡J�Jˆq�A•$˜Ÿ™•*ÔØ‡J�Jˆq�A•$˜Ÿ™•*ÔÜ
�+Š+�e˜R 1¥Ó
&€CàˆS€FØˆT€FØ�€IØ�a•D�5˜1•9˜qŸs™s•?Ð#Ð$€FØ�!•—	‘	˜!“˜q �tÕ#Ð$€Hà�TÓ˜]¨dÓ2Ø‰	àˆ	ä�1�XˆØ�[‰[˜Ÿ™ a›¨&°1°Q¸µUµ8¸Q¿S¹S°/ÓBˆØ
�‰�q˜A �E�( Q§S¡S�.Ô)Ø�‰�bÔà�B�Z×!Ñ! %§,¡,¨q°1­uÓ"5°q¸µt¸b¿d¹dµ{ÓCˆØ
�‰�v˜b•z 1 bÔ)Ø�‰�bÔä�kŠk˜$¤ Q¨¥U£Õ+¨R°°1°qµ5µÓ:ˆØ×Ñ˜Ôà�‰�r˜A˜a !�e�H˜9 q�=¨1¯3©3Õ.Ð/Ô0à˜DÓ à×Ñ˜Q˜q�TÔ"à�AŒvØ—‘˜q Q¥4 %¨!¯#©#¥+Ð.Ô/à�A˜•EŒzØ—‘˜r 1 Q¥4¨!¯#©#¥:Ð.Õ/à—‘˜r 1 Q¥4¨!¯#©#¥:°°!°aµ%µ¸1¿3¹3µÕ#>Ð?Ô@à�‰˜˜!˜a�%�Ÿ™ aÓ(¨1¨Q°­U­8Õ3×4ñ5 ð8 �TÓÜ×Ò˜cÓ"ˆØ�‰�r˜1˜qŸs™s�7�mÔ$Ø×Ñ˜Ôä�>Š>˜!¨A°hÔ?€DØ×Ñ˜ FÔ+à€Kó    )é   FF)rU   TF)
Ú__doc__Ú
sympy.corer   r   Úsympy.physics.mechanicsÚphysicsÚ	mechanicsr   r4   rS   © rT   r3   Ú<module>r\      s"   ðñõ %ß $Ð $ôcöLvrT   