+
    
þÎj¼z  ã                   ó’   € R t ^ RIHt ^ RIHtHt ^ RIHtHtH	t	H
t
HtHtHtHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt  ! R R	4      tR
# )zA
This module can be used to solve problems related
to 2D Cables.
)Úsympify)ÚSymbolÚsymbols)ÚsinÚcosÚpiÚatanÚdiffÚ	PiecewiseÚsolveÚrad)Úsqrt)Úlinsolve)ÚMatrix)Úplotc                   óì   a € ] tR t^t o RtR t]R 4       t]R 4       t]R 4       t	]R 4       t
]R 4       t]R 4       t]R	 4       t]R
 4       tR tR tR tR tR tR tR tR tR tR tR tRtV tR# )ÚCablea•  
Cables are structures in engineering that support
the applied transverse loads through the tensile
resistance developed in its members.

Cables are widely used in suspension bridges, tension
leg offshore platforms, transmission lines, and find
use in several other engineering applications.

Examples
========
A cable is supported at (0, 10) and (10, 10). Two point loads
acting vertically downwards act on the cable, one with magnitude 3 kN
and acting 2 meters from the left support and 3 meters below it, while
the other with magnitude 2 kN is 6 meters from the left support and
6 meters below it.

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c = Cable(('A', 0, 10), ('B', 10, 10))
>>> c.apply_load(-1, ('P', 2, 7, 3, 270))
>>> c.apply_load(-1, ('Q', 6, 4, 2, 270))
>>> c.loads
{'distributed': {}, 'point_load': {'P': [3, 270], 'Q': [2, 270]}}
>>> c.loads_position
{'P': [2, 7], 'Q': [6, 4]}
c                óþ  € . V n         . V n        / V n        . V n        R/ R/ /V n        / V n        ^ V n        / V n        / V n        \        ^ 4      V n
        \        ^ 4      V n        RV n        RV n        V^ ,          V^ ,          8X  d   \        R4      hV^,          V^,          8X  d   \        R4      h\        V^,          4      p\        V^,          4      pW4.V P                  V^ ,          &   \        V^,          4      p\        V^,          4      pWV.V P                  V^ ,          &   V^,          V^,          8  d²   V P                   P                  V4       V P                   P                  V4       V P                  P                  V4       V P                  P                  V4       V P                  P                  V^ ,          4       V P                  P                  V^ ,          4       M°V P                   P                  V4       V P                   P                  V4       V P                  P                  V4       V P                  P                  V4       V P                  P                  V^ ,          4       V P                  P                  V^ ,          4       V P                   FO  p^ V P                  \!        RV,           R,           4      &   ^ V P                  \!        RV,           R,           4      &   KQ  	  R# )	a5  
Initializes the class.

Parameters
==========

support_1 and support_2 are tuples of the form
(label, x, y), where

label : String or symbol
    The label of the support

x : Sympifyable
    The x coordinate of the position of the support

y : Sympifyable
    The y coordinate of the position of the support
ÚdistributedÚ
point_loadNz$Supports can not have the same labelz(Supports can not be at the same locationÚR_Ú_xÚ_y)Ú_left_supportÚ_right_supportÚ	_supportsÚ_support_labelsÚ_loadsÚ_loads_positionÚ_lengthÚ_reaction_loadsÚ_tensionr   Ú_lowest_x_globalÚ_lowest_y_globalÚ
_cable_eqnÚ_tension_funcÚ
ValueErrorÚappendr   )ÚselfÚ	support_1Ú	support_2Úx1Úy1Úx2Úy2Úis   &&&     Ú]/opt/data/home/.local/lib/python3.14/site-packages/sympy/physics/continuum_mechanics/cable.pyÚ__init__ÚCable.__init__)   sl  € ð&  ˆÔØ ˆÔØˆŒØ!ˆÔØ$ b¨,¸Ð;ˆŒØ!ˆÔØˆŒØ!ˆÔØˆŒÜ '¨£
ˆÔÜ '¨£
ˆÔØˆŒØ!ˆÔØ�Q�<˜9 Q�<Ô'ÜÐCÓDÐDà�q�\˜Y q�\Ô)ÜÐGÓHÐHä�Y˜q•\Ó"ˆÜ�Y˜q•\Ó"ˆØ(* xˆ�‰�y •|Ñ$ä�Y˜q•\Ó"ˆÜ�Y˜q•\Ó"ˆØ(* xˆ�‰�y •|Ñ$à�Q�<˜) A�,Ô&Ø×Ñ×%Ñ% bÔ)Ø×Ñ×%Ñ% bÔ)Ø×Ñ×&Ñ& rÔ*Ø×Ñ×&Ñ& rÔ*Ø× Ñ ×'Ñ'¨	°!­Ô5Ø× Ñ ×'Ñ'¨	°!­Õ5ð ×Ñ×%Ñ% bÔ)Ø×Ñ×%Ñ% bÔ)Ø×Ñ×&Ñ& rÔ*Ø×Ñ×&Ñ& rÔ*Ø× Ñ ×'Ñ'¨	°!­Ô5Ø× Ñ ×'Ñ'¨	°!­Ô5à×%Ô%ˆAØ:;ˆD× Ñ ¤¨¨a­°­Ó!6Ñ7Ø:;ˆD× Ñ ¤¨¨a­°­Ó!6Ó7ó &ó    c                ó   € V P                   # )z?
Returns the supports of the cable along with their
positions.
)r   ©r(   s   &r0   ÚsupportsÚCable.supportsk   s   € ð �~‰~Ðr3   c                ó   € V P                   # )z+
Returns the position of the left support.
)r   r5   s   &r0   Úleft_supportÚCable.left_supports   s   € ð
 ×!Ñ!Ð!r3   c                ó   € V P                   # )z,
Returns the position of the right support.
)r   r5   s   &r0   Úright_supportÚCable.right_supportz   s   € ð
 ×"Ñ"Ð"r3   c                ó   € V P                   # )zG
Returns the magnitude and direction of the loads
acting on the cable.
)r   r5   s   &r0   ÚloadsÚCable.loads�   s   € ð �{‰{Ðr3   c                ó   € V P                   # )z>
Returns the position of the point loads acting on the
cable.
)r   r5   s   &r0   Úloads_positionÚCable.loads_position‰   ó   € ð ×#Ñ#Ð#r3   c                ó   € V P                   # )z"
Returns the length of the cable.
)r   r5   s   &r0   ÚlengthÚCable.length‘   s   € ð
 �|‰|Ðr3   c                ó   € V P                   # )zJ
Returns the reaction forces at the supports, which are
initialized to 0.
)r    r5   s   &r0   Úreaction_loadsÚCable.reaction_loads˜   rD   r3   c                ó   € V P                   # )zF
Returns the tension developed in the cable due to the loads
applied.
)r!   r5   s   &r0   ÚtensionÚCable.tension    s   € ð �}‰}Ðr3   c                óJ  € RV P                   P                  4       9  d   \        R4      hWP                  ^ ,          8”  g   WP                  ^ ,          8  d   \        R4      hV P                   R,          p\        R4      pVP                  W1V P                  ,
          /4      # )zN
Returns the tension at a given value of x developed due to
distributed load.
r   z4No distributed load added or solve method not calledz1The value of x should be between the two supportsÚX)r!   Úkeysr&   r   r   r   Úsubsr"   )r(   ÚxÚArO   s   &&  r0   Ú
tension_atÚCable.tension_at¨   s†   € ð
  §¡× 2Ñ 2Ó 4Ô4ÜÐSÓTÐTà×"Ñ" 1Õ%Ô%¨×-?Ñ-?ÀÕ-BÔ)BÜÐPÓQÐQà�M‰M˜-Õ(ˆÜ�3‹Kˆà�v‰v�q˜D×1Ñ1Õ1Ð3Ó4Ð4r3   c                ó  € V P                   ^ ,          V P                  ^ ,          ,
          ^,          V P                   ^,          V P                  ^,          ,
          ^,          ,
          R,          pW8  d   \        R4      hWn        R# )a  
This method specifies the length of the cable

Parameters
==========

length : Sympifyable
    The length of the cable

Examples
========

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c = Cable(('A', 0, 10), ('B', 10, 10))
>>> c.apply_length(20)
>>> c.length
20
z@length should not be less than the distance between the supportsNç      à?)r   r   r&   r   )r(   rF   Údists   && r0   Úapply_lengthÚCable.apply_length¸   ss   € ð& ×#Ñ# AÕ&¨×)<Ñ)<¸QÕ)?Õ?À!ÕCØ×%Ñ% aÕ(¨4×+>Ñ+>¸qÕ+AÕAÀAÕEõFØILõNˆð Œ=ÜÐ_Ó`Ð`àŽr3   c                ó8  € WP                   9  d   \        R4      hV P                  P                  V4      pV P                  V^,           ^,          ,          pV P                   V,          ^ ,          pV P                   V,          ^,          p\	        V^,          4      p\	        V^,          4      pV P
                   F<  p	V	^ ,          \        Wu4      8¼  g   V	^ ,          \        Wu4      8:  g   K3  \        R4      h	  V P                   P                  V4       V P                  P                  4        V P                  P                  4        V P                  P                  4        V P                  P                  V4       Wx.V P                   V^ ,          &   WW8  d�   V P                  P                  V4       V P                  P                  V4       V P                  P                  V4       V P                  P                  V4       V P                  P                  V^ ,          4       M�V P                  P                  V4       V P                  P                  V4       V P                  P                  V4       V P                  P                  V4       V P                  P                  ^ V^ ,          4       V P                   FO  p^ V P                  \!        RV,           R,           4      &   ^ V P                  \!        RV,           R,           4      &   KQ  	  R# )a®  
This method changes the mentioned support with a new support.

Parameters
==========
label: String or symbol
    The label of the support to be changed

new_support: Tuple of the form (new_label, x, y)
    new_label: String or symbol
        The label of the new support

    x: Sympifyable
        The x-coordinate of the position of the new support.

    y: Sympifyable
        The y-coordinate of the position of the new support.

Examples
========

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c = Cable(('A', 0, 10), ('B', 10, 10))
>>> c.supports
{'A': [0, 10], 'B': [10, 10]}
>>> c.change_support('B', ('C', 5, 6))
>>> c.supports
{'A': [0, 10], 'C': [5, 6]}
z&No support exists with the given labelz>The change in support will throw an existing load out of ranger   r   r   N)r   r&   r   Úindexr   r   ÚmaxÚminÚpopr   Úclearr   r    Úremover'   Úinsertr   )
r(   ÚlabelÚnew_supportr/   Ú	rem_labelr+   r,   rR   ÚyÚls
   &&&       r0   Úchange_supportÚCable.change_supportÓ   sZ  € ð< Ÿ™Ô&ÜÐEÓFÐFà× Ñ ×&Ñ& uÓ-ˆØ×(Ñ(¨!¨A­#¨q­Õ1ˆ	Ø�^‰^˜IÕ& qÕ)ˆØ�^‰^˜IÕ& qÕ)ˆä�K •NÓ#ˆÜ�K •NÓ#ˆà×%Ô%ˆAØ��t”s˜1“zÔ! Q q¥T¬S°«ZÖ%7Ü Ð!aÓbÐbñ &ð 	�‰×Ñ˜5Ô!Ø×Ñ× Ñ Ô"Ø×Ñ×!Ñ!Ô#Ø×Ñ×"Ñ"Ô$Ø×Ñ×#Ñ# EÔ*à*+¨ˆ�‰�{ 1•~Ñ&àŒ6Ø×Ñ×%Ñ% bÔ)Ø×Ñ×%Ñ% bÔ)Ø×Ñ×&Ñ& qÔ)Ø×Ñ×&Ñ& qÔ)Ø× Ñ ×'Ñ'¨°A­Õ7ð ×Ñ×%Ñ% aÔ(Ø×Ñ×%Ñ% aÔ(Ø×Ñ×&Ñ& rÔ*Ø×Ñ×&Ñ& rÔ*Ø× Ñ ×'Ñ'¨¨;°q­>Ô:à×%Ô%ˆAØ:;ˆD× Ñ ¤¨¨a­°­Ó!6Ñ7Ø:;ˆD× Ñ ¤¨¨a­°­Ó!6Ó7ó &r3   c                ó*  € VR	8X  Ed   \        V P                  R,          4      ^ 8w  d   \        R4      hV^ ,          pW0P                  R,          9   d   \        R4      h\        V^,          4      p\        V^,          4      pW@P                  ^ ,          8”  g   W@P
                  ^ ,          8  d   \        R4      h\        V^,          4      p\        V^,          4      pWg.V P                  R,          V&   WE.V P                  V&   R# V^ 8X  dz   \        V P                  4      ^ 8w  d   \        R4      hV^ ,          pW0P                  R,          9   d   \        R4      h\        V^,          4      pW`P                  R,          V&   R# \        R4      h)
aV  
This method adds load to the cable.

Parameters
==========

order : Integer
    The order of the applied load.

        - For point loads, order = -1
        - For distributed load, order = 0

load : tuple

    * For point loads, load is of the form (label, x, y, magnitude, direction), where:

    label : String or symbol
        The label of the load

    x : Sympifyable
        The x coordinate of the position of the load

    y : Sympifyable
        The y coordinate of the position of the load

    magnitude : Sympifyable
        The magnitude of the load. It must always be positive

    direction : Sympifyable
        The angle, in degrees, that the load vector makes with the horizontal
        in the counter-clockwise direction. It takes the values 0 to 360,
        inclusive.


    * For uniformly distributed load, load is of the form (label, magnitude)

    label : String or symbol
        The label of the load

    magnitude : Sympifyable
        The magnitude of the load. It must always be positive

Examples
========

For a point load of magnitude 12 units inclined at 30 degrees with the horizontal:

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c = Cable(('A', 0, 10), ('B', 10, 10))
>>> c.apply_load(-1, ('Z', 5, 5, 12, 30))
>>> c.loads
{'distributed': {}, 'point_load': {'Z': [12, 30]}}
>>> c.loads_position
{'Z': [5, 5]}


For a uniformly distributed load of magnitude 9 units:

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c = Cable(('A', 0, 10), ('B', 10, 10))
>>> c.apply_load(0, ('X', 9))
>>> c.loads
{'distributed': {'X': 9}, 'point_load': {}}
r   zDistributed load already existsr   zLabel already existsz2The load should be positioned between the supportszPoint load(s) already existzOrder should be either -1 or 0Néÿÿÿÿ)Úlenr   r&   r   r   r   r   )r(   ÚorderÚloadrc   rR   rf   Ú	magnitudeÚ	directions   &&&     r0   Ú
apply_loadÚCable.apply_load  sV  € ðB �B�;Ü�4—;‘;˜}Õ-Ó.°!Ô3Ü Ð!BÓCÐCà˜•GˆEØŸ™ LÕ1Ô1Ü Ð!7Ó8Ð8ä˜˜Q�Ó ˆAÜ˜˜Q�Ó ˆAà×&Ñ& qÕ)Ô)¨Q×1CÑ1CÀAÕ1FÔ-FÜ Ð!UÓVÐVä  Q¥Ó(ˆIÜ  Q¥Ó(ˆIà09Ð/EˆD�K‰K˜Õ% eÑ,Ø+,¨&ˆD× Ñ  Ó'à�aŒZÜ�4×'Ñ'Ó(¨AÔ-Ü Ð!>Ó?Ð?à˜•GˆEØŸ™ MÕ2Ô2Ü Ð!7Ó8Ð8ä  Q¥Ó(ˆIà09�K‰K˜Õ& uÓ-ô Ð=Ó>Ð>r3   c                óÎ  € V FÞ  p\        V P                  4      ^ 8X  dU   W P                  R,          9  d   \        RV,           R,           4      hV P                  R,          P	                  V4       Kq  W P                  R,          9  d   \        RV,           R,           4      hV P                  R,          P	                  V4       V P                  P	                  V4       Kà  	  R# )aæ  
This methods removes the specified loads.

Parameters
==========
This input takes multiple label(s) as input
label(s): String or symbol
    The label(s) of the loads to be removed.

Examples
========

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c = Cable(('A', 0, 10), ('B', 10, 10))
>>> c.apply_load(-1, ('Z', 5, 5, 12, 30))
>>> c.loads
{'distributed': {}, 'point_load': {'Z': [12, 30]}}
>>> c.remove_loads('Z')
>>> c.loads
{'distributed': {}, 'point_load': {}}
r   zError removing load z: no such load existsÚdisrtibutedr   N)rl   r   r   r&   r_   )r(   Úargsr/   s   &* r0   Úremove_loadsÚCable.remove_loads~  sµ   € ó, ˆAÜ�4×'Ñ'Ó(¨AÔ-ØŸK™K¨Õ6Ô6Ü$Ð%;¸aÕ%?ÐBYÕ%YÓZÐZð —K‘K Õ.×2Ñ2°1Ö5ð ŸK™K¨Õ5Ô5Ü$Ð%;¸aÕ%?ÐBYÕ%YÓZÐZð —K‘K Õ-×1Ñ1°!Ô4Ø×(Ñ(×,Ñ,¨QÖ/ó r3   c           
     óH#  € \        V P                  4      ^ 8w  Edz   \        V P                  P                  4       R R7      pVP	                  V P
                  ^,          4       VP                  ^ V P
                  ^ ,          4       V P                  P                  4        ^ p^ p^ p^ p^ V n	        . p\        R4      p\        ^\        V4      ^,
          4       EFÑ  p	V	^8X  d³   V ;P                  \        V P                  ^ ,          V P                  W),          ^ ,          ,          ^ ,          ,
          ^,          V P                  ^,          V P                  W),          ^ ,          ,          ^,          ,
          ^,          ,           4      ,          un	        MçV ;P                  \        V P                  W)^,
          ,          ^ ,          ,          ^ ,          V P                  W),          ^ ,          ,          ^ ,          ,
          ^,          V P                  W)^,
          ,          ^ ,          ,          ^,          V P                  W),          ^ ,          ,          ^,          ,
          ^,          ,           4      ,          un	        V	\        V4      ^,
          8X  d²   V ;P                  \        V P                  ^ ,          V P                  W),          ^ ,          ,          ^ ,          ,
          ^,          V P                  ^,          V P                  W),          ^ ,          ,          ^,          ,
          ^,          ,           4      ,          un	        W0P                  R,          W),          ^ ,          ,          ^ ,          \!        \"        V P                  R,          W),          ^ ,          ,          ^,          ,          ^´,          4      ,          \%        V P                  ^,          V P                  W),          ^ ,          ,          ^,          ,
          4      ,          ,          pW0P                  R,          W),          ^ ,          ,          ^ ,          \'        \"        V P                  R,          W),          ^ ,          ,          ^,          ,          ^´,          4      ,          \%        V P                  ^ ,          V P                  W),          ^ ,          ,          ^ ,          ,
          4      ,          ,          pWPP                  R,          W),          ^ ,          ,          ^ ,          \!        \"        V P                  R,          W),          ^ ,          ,          ^,          ,          ^´,          4      ,          ,          pW`P                  R,          W),          ^ ,          ,          ^ ,          \'        \"        V P                  R,          W),          ^ ,          ,          ^,          ,          ^´,          4      ,          ,          p\)        W),          ^ ,          R,           W)^,           ,          ^ ,          ,           4      p
V P                  W),          ^ ,          ,          ^,          pV P                  W),          ^ ,          ,          ^ ,          p^ p^ pV	\        V4      ^,
          8X  d(   V P                  ^ ,          pV P                  ^,          pM\V P                  W)^,           ,          ^ ,          ,          ^ ,          pV P                  W)^,           ,          ^ ,          ,          ^,          p\+        WÛ,
          Wì,
          ,          4      pV) \%        V P                  ^,          V P                  W),          ^ ,          ,          ^,          ,
          4      \!        V4      ,          \%        V P                  ^ ,          V P                  W),          ^ ,          ,          ^ ,          ,
          4      \'        V4      ,          ,           ,          pVV P                  V
&   VP	                  VWŽ8*  34       W@P                  R,          W),          ^ ,          ,          ^ ,          \!        \"        V P                  R,          W),          ^ ,          ,          ^,          ,          ^´,          4      ,          \%        V P                  ^,          V P                  W),          ^ ,          ,          ^,          ,
          4      ,          ,          pW@P                  R,          W),          ^ ,          ,          ^ ,          \'        \"        V P                  R,          W),          ^ ,          ,          ^,          ,          ^´,          4      ,          \%        V P                  ^ ,          V P                  W),          ^ ,          ,          ^ ,          ,
          4      ,          ,          pEKÔ  	  \)        V^ ,          ^ ,          R,           V^,          ^ ,          ,           4      p
V P                  V^,          ^ ,          ,          ^,          pV P                  V^,          ^ ,          ,          ^ ,          pV P                  ^ ,          pV P                  ^,          p\+        W½,
          WÎ,
          ,          4      ) pV) \%        V P                  ^,          V P                  V^,          ^ ,          ,          ^,          ,
          4      \!        V4      ,          \%        V P                  ^ ,          V P                  V^,          ^ ,          ,          ^ ,          ,
          4      \'        V4      ,          ,           ,          pVV P                  V
&   VP                  ^ VWŒ8*  34       \-        V!  V n        \"        ^,          V,
          pV P
                  ^ ,          p
\'        V4      ) V,          V P0                  \)        RV
,           R,           4      &   V\'        V4      ) V,          ,          p\!        V4      V,          V P0                  \)        RV
,           R,           4      &   V\!        V4      V,          ,          pV P
                  ^,          p
V) V P0                  \)        RV
,           R,           4      &   V) V P0                  \)        RV
,           R,           4      &   R# \        V P                  R	,          4      ^ 8w  Edì   \        V4      ^ 8X  d   \3        R
4      h\5        V^ ,          4      pVV n        \)        RRR7      p\)        R4      p\9        V P                  ^ ,          V,
          ^,          ^V P                  ^,          .V P                  ^ ,          V,
          ^,          ^V P                  ^,          ..4      p\;        \=        VVV34      4      p\        V4      ^ 8X  g   V^ ,          ^ ,          ^ 8X  d   \3        R4      hV^ ,          ^ ,          pV^ ,          ^,          V^ ,          ^ ,          V^,          ,          ,           pRV^ ,          ^ ,          ,          V,          pV^ ,          ^,          V n        V P>                  p\)        R4      p\)        R4      pVVV,           ^,          ,          VVV,           ,          ,           V,           V,
          p\;        V P                  R	,          PA                  4       4      pV^ ,          pVV P                  ^ ,          V,
          ^,          ,          ^V P                  ^,          V,
          ,          ,          pV P                  P                  4        \C        VV4      pV\!        \+        V4      4      ,          V P                  R	&   V P
                  ^ ,          p
V PE                  V P                  ^ ,          4      \!        \+        VPG                  VV P                  ^ ,          V,
          4      4      4      ,          V P0                  \)        RV
,           R,           4      &   V PE                  V P                  ^ ,          4      \'        \+        VPG                  VV P                  ^ ,          V,
          4      4      4      ,          V P0                  \)        RV
,           R,           4      &   V P
                  ^,          p
V PE                  V P                  ^ ,          4      \!        \+        VPG                  VV P                  ^ ,          V,
          4      4      4      ,          V P0                  \)        RV
,           R,           4      &   V PE                  V P                  ^ ,          4      \'        \+        VPG                  VV P                  ^ ,          V,
          4      4      4      ,          V P0                  \)        RV
,           R,           4      &   R# R# )a  
This method solves for the reaction forces at the supports, the tension developed in
the cable, and updates the length of the cable.

Parameters
==========
This method requires no input when solving for point loads
For distributed load, the x and y coordinates of the lowest point of the cable are
required as

x: Sympifyable
    The x coordinate of the lowest point

y: Sympifyable
    The y coordinate of the lowest point

Examples
========
For point loads,

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c = Cable(("A", 0, 10), ("B", 10, 10))
>>> c.apply_load(-1, ('Z', 2, 7.26, 3, 270))
>>> c.apply_load(-1, ('X', 4, 6, 8, 270))
>>> c.solve()
>>> c.tension
{A_Z: 8.91403453669861, X_B: 19*sqrt(13)/10, Z_X: 4.79150773600774}
>>> c.reaction_loads
{R_A_x: -5.25547445255474, R_A_y: 7.2, R_B_x: 5.25547445255474, R_B_y: 3.8}
>>> c.length
5.7560958484519 + 2*sqrt(13)

For distributed load,

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c=Cable(("A", 0, 40),("B", 100, 20))
>>> c.apply_load(0, ("X", 850))
>>> c.solve(58.58)
>>> c.tension
{'distributed': 36465.0*sqrt(0.00054335718671383*X**2 + 1)}
>>> c.tension_at(0)
61717.4130533677
>>> c.reaction_loads
{R_A_x: 36465.0, R_A_y: -49793.0, R_B_x: 44399.9537590861, R_B_y: 42868.2071025955}
c                 ó"   € V ^,          ^ ,          # ©é   © ©Úitems   &r0   Ú<lambda>ÚCable.solve.<locals>.<lambda>Ô  ó   € ÐW[Ð\]ÕW^Ð_`ÖWar3   ©ÚkeyrR   r   Ú_r   r   r   r   z%Provide the lowest point of the cableÚaT)ÚpositiveÚcz2The lowest point is inconsistent with the supportsrO   ÚYNéþÿÿÿ)$rl   r   ÚsortedÚitemsr'   r   rb   r!   r`   r   r   Úranger   r   r   r   r   r   Úabsr   r   r   r
   r%   r    r&   r   r"   r   Úlistr   r#   Úvaluesr	   rT   rQ   ) r(   ru   Úsorted_positionÚmoment_sum_from_left_supportÚmoment_sum_from_right_supportÚF_xÚF_yÚtension_funcrR   r/   rc   r.   r-   r,   r+   Úangle_with_horizontalrL   Úlowest_xr…   r‡   ÚMÚcoefficient_solutionrS   ÚCÚBÚlowest_yrO   rˆ   Ú	temp_listÚapplied_forceÚhorizontal_force_constantÚtangent_slope_to_curves    &*                              r0   r   ÚCable.solve¤  s8  € ô^ ˆt×#Ñ#Ó$¨Õ)Ü$ T×%9Ñ%9×%?Ñ%?Ó%AÑIaÔbˆOà×"Ñ" 4×#7Ñ#7¸Õ#:Ô;Ø×"Ñ" 1 d×&:Ñ&:¸1Õ&=Ô>à�M‰M×ÑÔ!Ø+,Ð(Ø,-Ð)ØˆCØˆCØˆDŒLØˆLÜ˜“ˆAÜ˜1œc /Ó2°1Õ4×5�Ø˜”6Ø—L’L¤$¨×(:Ñ(:¸1Õ(=À×@TÑ@TÐUdÕUgÐhiÕUjÕ@kÐlmÕ@nÕ(nÐqrÕ'rÐvz÷  wIñ  wIð  JKõ  wLð  OS÷  Ocñ  Ocð  dsõ  dvð  wxõ  dyõ  Ozð  {|õ  O}õ  w}ð  @Aõ  vAõ  (Aó  #Bõ  B–Lð —L’L¤$¨×(<Ñ(<¸_ÈqÍSÕ=QÐRSÕ=TÕ(UÐVWÕ(XÐ[_×[oÑ[oÐpõ  qCð  DEõ  qFõ  \Gð  HIõ  \Jõ  )Jð  MNõ  (Nð  RV÷  Rfñ  Rfð  gvð  yzõ  wzõ  g{ð  |}õ  g~õ  Rð  @Aõ  RBð  EI÷  EYñ  EYð  Ziõ  Zlð  mnõ  Zoõ  Epð  qrõ  Esõ  Rsð  vwõ  Qwõ  (wó  #xõ  x•Làœ˜OÓ,¨QÕ.Ô.Ø—L’L¤$¨×(;Ñ(;¸AÕ(>À×AUÑAUÐVeÕVhÐijÕVkÕAlÐmnÕAoÕ(oÐrsÕ'sÐw{÷  xKñ  xKð  LMõ  xNð  QU÷  Qeñ  Qeð  fuõ  fxð  yzõ  f{õ  Q|ð  }~õ  Qõ  xð  BCõ  wCõ  (Có  #Dõ  D•Là,·±¸LÕ0IÈ/ÕJ\Ð]^ÕJ_Õ0`ÐabÕ0cÔfiÔjlÐos×ozÑozð  |Hõ  pIð  JYõ  J\ð  ]^õ  J_õ  p`ð  abõ  pcõ  kcð  fiõ  kió  gjõ  1jô  mpð  qu÷  qCñ  qCð  DEõ  qFð  IM÷  I]ñ  I]ð  ^mõ  ^pð  qrõ  ^sõ  Itð  uvõ  Iwõ  qwó  mxõ  1xõ  xÐ,Ø,·±¸LÕ0IÈ/ÕJ\Ð]^ÕJ_Õ0`ÐabÕ0cÔfiÔjlÐos×ozÑozð  |Hõ  pIð  JYõ  J\ð  ]^õ  J_õ  p`ð  abõ  pcõ  kcð  fiõ  kió  gjõ  1jô  mpð  qu÷  qCñ  qCð  DEõ  qFð  IM÷  I]ñ  I]ð  ^mõ  ^pð  qrõ  ^sõ  Itð  uvõ  Iwõ  qwó  mxõ  1xõ  xÐ,à—{‘{ <Õ0°Õ1CÀAÕ1FÕGÈÕJÌSÔQSÐVZ×VaÑVaÐbnÕVoÐpõ  qCð  DEõ  qFõ  WGð  HIõ  WJõ  RJð  MPõ  RPó  NQõ  Qõ  Q�Ø—{‘{ <Õ0°Õ1CÀAÕ1FÕGÈÕJÌSÔQSÐVZ×VaÑVaÐbnÕVoÐpõ  qCð  DEõ  qFõ  WGð  HIõ  WJõ  RJð  MPõ  RPó  NQõ  Qõ  Q�ä˜Õ1°!Õ4°SÕ8¸È1ÍÕ9MÈaÕ9PÕPÓQ�Ø×)Ñ)¨/Õ*<¸QÕ*?Õ@ÀÕC�Ø×)Ñ)¨/Õ*<¸QÕ*?Õ@ÀÕC�Ø�Ø�àœ˜OÓ,¨QÕ.Ô.Ø×,Ñ,¨QÕ/�BØ×,Ñ,¨QÕ/‘Bð ×-Ñ-¨oÀ½cÕ.BÀ1Õ.EÕFÀqÕI�BØ×-Ñ-¨oÀ½cÕ.BÀ1Õ.EÕFÀqÕI�Bä(,¨b­g¸½Õ-@Ó(AÐ%à8Ð9¼3¸t×?QÑ?QÐRSÕ?TÐW[×WkÑWkÐl{Õl~ð  @Aõ  mBõ  XCð  DEõ  XFõ  @Fó  <Gô  HKð  Laó  Hbõ  <bô  ehð  im÷  i{ñ  i{ð  |}õ  i~ð  AE÷  AUñ  AUð  Veõ  Vhð  ijõ  Vkõ  Alð  mnõ  Aoõ  ioó  epô  qtð  uJó  qKõ  eKõ  <Kõ  L�Ø'.�—‘˜eÑ$Ø×#Ñ# W¨a©eÐ$4Ô5Ø-·±¸\Õ1JÈ?ÕK]Ð^_ÕK`Õ1aÐbcÕ1dÔgjÔkmÐpt×p{Ñp{ð  }Iõ  qJð  KZõ  K]ð  ^_õ  K`õ  qað  bcõ  qdõ  ldð  gjõ  ljó  hkõ  2kô  nqð  rv÷  rEñ  rEð  FGõ  rHð  KO÷  K_ñ  K_ð  `oõ  `rð  stõ  `uõ  Kvð  wxõ  Kyõ  ryó  nzõ  2zõ  zÐ-Ø-·±¸\Õ1JÈ?ÕK]Ð^_ÕK`Õ1aÐbcÕ1dÔgjÔkmÐpt×p{Ñp{ð  }Iõ  qJð  KZõ  K]ð  ^_õ  K`õ  qað  bcõ  qdõ  ldð  gjõ  ljó  hkõ  2kô  nqð  rv÷  rEñ  rEð  FGõ  rHð  KO÷  K_ñ  K_ð  `oõ  `rð  stõ  `uõ  Kvð  wxõ  Kyõ  ryó  nzõ  2zõ  zÓ-ñI 6ôL ˜?¨1Õ-¨aÕ0°Õ4°_ÀQÕ5GÈÕ5JÕJÓKˆEØ×%Ñ% o°aÕ&8¸Õ&;Õ<¸QÕ?ˆBØ×%Ñ% o°aÕ&8¸Õ&;Õ<¸QÕ?ˆBØ×#Ñ# AÕ&ˆBØ×#Ñ# AÕ&ˆBä%)¨2­7°RµWÕ*=Ó%>Ð$>Ð!Ø5Ð6¼¸D×<OÑ<OÐPQÕ<RÐUY×UiÑUiÐjyÐz{Õj|Ð}~Õjõ  VAð  BCõ  VDõ  =Dó  9Eô  FIð  J_ó  F`õ  9`ô  cfð  gk÷  gzñ  gzð  {|õ  g}ð  @D÷  @Tñ  @Tð  Udð  efõ  Ugð  hiõ  Ujõ  @kð  lmõ  @nõ  gnó  coô  psð  tIó  pJõ  cJõ  9Jõ  KˆGØ#*ˆD�M‰M˜%Ñ à×Ñ  7¨A©EÐ"2Ô3Ü!*¨LÑ!9ˆDÔÜ$& q¥DÐ+@Õ$@Ð!Ø×(Ñ(¨Õ+ˆEÜ=@ÐAVÓ=WÐ<WÐZaÕ<aˆD× Ñ ¤¨¨U­
°4­Ó!8Ñ9Ø”CÐ-Ó.Ð.°Õ8Õ8ˆCÜ<?Ð@UÓ<VÐY`Õ<`ˆD× Ñ ¤¨¨U­
°4­Ó!8Ñ9Ø”3Ð,Ó-°Õ7Õ7ˆCà×(Ñ(¨Õ+ˆEØ=@¸DˆD× Ñ ¤¨¨U­
°4­Ó!8Ñ9Ø=@¸DˆD× Ñ ¤¨¨U­
°4­Ó!8Ó9ä�—‘˜]Õ+Ó,°Õ1ä�4‹y˜AŒ~Ü Ð!HÓIÐIä˜t A�wÓ'ˆHØ$,ˆDÔ!ä�s TÔ*ˆAÜ�s“ˆAô Ø×%Ñ% aÕ(¨Õ1°AÕ5°q¸$×:LÑ:LÈQÕ:OÐPØ×%Ñ% aÕ(¨Õ1°AÕ5°q¸$×:MÑ:MÈaÕ:PÐQðóˆAô
 $(¬°°Q¸°FÓ(;Ó#<Ð ÜÐ'Ó(¨1Ô,Ð0DÀQÕ0GÈÕ0JÈQÔ0NÜ Ð!UÓVÐVà$ QÕ'¨Õ*ˆAØ$ QÕ'¨Õ*Ð-AÀ!Õ-DÀQÕ-GÈÐRSÍÕ-SÕSˆAØÐ'¨Õ*¨1Õ-Õ-¨hÕ6ˆAØ$8¸Õ$;¸AÕ$>ˆDÔ!Ø×,Ñ,ˆHô �s“ˆAÜ�s“ˆAØ�1�x•< !Õ#Õ# a¨¨X­Õ&6Õ6¸Õ:¸XÕEˆAä˜TŸ[™[¨Õ7×>Ñ>Ó@ÓAˆIØ% a�LˆMà)6¸$×:MÑ:MÈaÕ:PÐS[Õ:[Ð^_Õ9_Õ)_ÐdeÐim×i|Ñi|Ð}~Õið  CKõ  jKõ  eLõ  )MÐ%à�M‰M×ÑÔ!Ü%)¨!¨Q£ZÐ"Ø+DÌÌDÐQgÓLhÓHiÕ+jˆD�M‰M˜-Ñ(à×(Ñ(¨Õ+ˆEØ<@¿O¹OÈD×L^ÑL^Ð_`ÕLaÓ<bÔehÔimð  oE÷  oJñ  oJð  KLð  NR÷  N`ñ  N`ð  abõ  Ncð  fnõ  Nnó  ooó  jpó  fqõ  =qˆD× Ñ ¤¨¨U­
°4­Ó!8Ñ9Ø<@¿O¹OÈD×L^ÑL^Ð_`ÕLaÓ<bÔehÔimð  oE÷  oJñ  oJð  KLð  NR÷  N`ñ  N`ð  abõ  Ncð  fnõ  Nnó  ooó  jpó  fqõ  =qˆD× Ñ ¤¨¨U­
°4­Ó!8Ñ9à×(Ñ(¨Õ+ˆEØ<@¿O¹OÈD×L^ÑL^Ð_`ÕLaÓ<bÔehÔimð  oE÷  oJñ  oJð  KLð  NR÷  Nañ  Nað  bcõ  Ndð  goõ  Noó  opó  jqó  frõ  =rˆD× Ñ ¤¨¨U­
°4­Ó!8Ñ9Ø<@¿O¹OÈD×L^ÑL^Ð_`ÕLaÓ<bÔehÔimð  oE÷  oJñ  oJð  KLð  NR÷  Nañ  Nað  bcõ  Ndð  goõ  Noó  opó  jqó  frõ  =rˆD× Ñ ¤¨¨U­
°4­Ó!8Ó9ña 2r3   c                óž  € \        R4      p. pV P                  4       p\        V P                  ^ ,          V P                  4      p\        V P                  ^ ,          \        V P                  ^,          V P                  ^,          4      4      pWT,
          p\        V P                  4      ^ 8w  d/   V P                  R4      V n
        W P                  R4      ,          pMN\        V P                  R,          4      ^ 8w  d.   V P                  ^ 4      V n
        W P                  ^ 4      ,          pV P                  '       g   \        R4      h\        . V P                  OWP                  ^ ,          V P                  ^ ,          3N5RVRV,          ,
          VRV,          ,           3RVRV,          ,
          VRV,          ,           3RVRR	R
VRR	/ pV# )aá  
This method is used to obtain a plot for the specified cable with its supports,
shape and loads.

Examples
========

For point loads,

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c = Cable(("A", 0, 10), ("B", 10, 10))
>>> c.apply_load(-1, ('Z', 2, 7.26, 3, 270))
>>> c.apply_load(-1, ('X', 4, 6, 8, 270))
>>> c.solve()
>>> p = c.draw()
>>> p  # doctest: +ELLIPSIS
Plot object containing:
[0]: cartesian line: Piecewise((10 - 1.37*x, x <= 2), (8.52 - 0.63*x, x <= 4), (2*x/3 + 10/3, x <= 10)) for x over (0.0, 10.0)
...
>>> p.show()

For uniformly distributed loads,

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c=Cable(("A", 0, 40),("B", 100, 20))
>>> c.apply_load(0, ("X", 850))
>>> c.solve(58.58)
>>> p = c.draw()
>>> p # doctest: +ELLIPSIS
Plot object containing:
[0]: cartesian line: 0.0116550116550117*(x - 58.58)**2 + 0.00447086247086247 for x over (0.0, 100.0)
[1]: cartesian line: -7.49552913752915 for x over (0.0, 100.0)
...
>>> p.show()
rR   r   zRsolve method not called and/or values provided for loads and supports not adequateÚxlimrW   ÚylimÚ
rectanglesÚshowFÚannotationsÚaxisrk   )r   Ú_draw_supportsr^   r   r#   r]   r   rl   r   Ú_draw_cabler$   Ú_draw_loadsr   r&   r   )r(   rR   r§   Úsupport_rectanglesÚxy_minÚxy_maxÚmax_diffÚcab_plots   &       r0   ÚdrawÚ
Cable.drawP  s¶  € ôH �3‹KˆØˆØ!×0Ñ0Ó2Ðä�T×'Ñ'¨Õ*¨4×+@Ñ+@ÓAˆÜ�T×(Ñ(¨Õ+¬S°×1DÑ1DÀQÕ1GÈ×HZÑHZÐ[\ÕH]Ó-^Ó_ˆØ•?ˆÜˆt×#Ñ#Ó$¨Ô)Ø"×.Ñ.¨rÓ2ˆDŒOØ×+Ñ+¨BÓ/Õ/‰Kä�—‘˜]Õ+Ó,°Ô1Ø"×.Ñ.¨qÓ1ˆDŒOØ×+Ñ+¨AÓ.Õ.ˆKà��ˆÜÐqÓrÐräð g˜Ÿ™ð g¨!×,>Ñ,>¸qÕ,AÀ$×BUÑBUÐVWÕBXÐ)Yò gØ$ S¨¥\Õ1°&¸¸X½Õ2EÐFðgà$ S¨¥\Õ1°&¸¸X½Õ2EÐFðgð $6ðgð =Bðgð OZðgð afñgˆð
 ˆr3   c                ó  € . p\        V P                  ^ ,          V P                  4      p\        V P                  ^ ,          \        V P                  ^,          V P                  ^,          4      4      pW2,
          pRV,          pVP                  RV P                  ^ ,          V,
          V P                  ^,          3RVRVRRRR/4       VP                  RV P                  ^ ,          V P                  ^,          3RVRVRRRR/4       V# )	é    ç333333³?ÚxyÚwidthÚheightÚcolorÚbrownÚfillF)r^   r   r#   r]   r   r'   )r(   Úmember_rectanglesr­   r®   r¯   Ú
supp_widths   &     r0   r©   ÚCable._draw_supports�  s  € ØÐÜ�T×'Ñ'¨Õ*¨4×+@Ñ+@ÓAˆÜ�T×(Ñ(¨Õ+¬S°×1DÑ1DÀQÕ1GÈ×HZÑHZÐ[\ÕH]Ó-^Ó_ˆØ•?ˆà˜8•^ˆ
à× Ñ à�t×)Ñ)¨!Õ,¨ZÕ7¸×8JÑ8JÈ1Õ8MÐNØ˜Ø˜Ø˜Ø˜ðô	
ð 	× Ñ à�t×*Ñ*¨1Õ-¨d×.AÑ.AÀ!Õ.DÐEØ˜Ø˜Ø˜Ø˜ðô	
ð !Ð r3   c           	     óž  € \        V P                  ^ ,          V P                  4      p\        V P                  ^ ,          \        V P                  ^,          V P                  ^,          4      4      pW2,
          pVR8X  Ed´   \        R4      w  rV. p\        V P                  P                  4       R R7      p\        \        V4      4       EFŒ  p	V	^ 8X  d™   W‰,          ^,          ^,          V P                  ^,          ,
          WPP                  ^ ,          ,
          ,          W‰,          ^,          ^ ,          V P                  ^ ,          ,
          ,          V P                  ^,          ,           pMÀW‰,          ^,          ^,          W‰^,
          ,          ^,          ^,          ,
          WXV	^,
          ,          ^,          ^ ,          ,
          ,          W‰,          ^,          ^ ,          W‰^,
          ,          ^,          ^ ,          ,
          ,          W‰^,
          ,          ^,          ^,          ,           pVP                  WeW‰,          ^,          ^ ,          8*  34       EK�  	  V\        V4      ^,
          ,          ^,          ^,          V P                  ^,          ,
          WPP                  ^ ,          ,
          ,          VX	,          ^,          ^ ,          V P                  ^ ,          ,
          ,          V P                  ^,          ,           pVP                  WeV P                  ^ ,          8*  34       \        V!  .# V^ 8X  Ed   V P                  p
VR,          p\        R4      w  rÍrVWÅV
,
          ^,          ,          V,           V,
          pV P                  ^ ,          V P                  ^,          3V P                  ^ ,          V P                  ^,          3.p. pV F*  w  ppVP                  VP                  VVVV/4      4       K,  	  \        VWÍ34      pVV,          WZ,
          ^,          ,          VV,          ,           pWàP                  V,
          .# R# )r´   zx yc                 ó"   € V ^,          ^ ,          # rz   r|   r}   s   &r0   r   Ú#Cable._draw_cable.<locals>.<lambda>²  r�   r3   r‚   rµ   za c x yNrk   )r^   r   r#   r]   r   r   rŠ   r   r‹   rŒ   rl   r'   r
   r"   rQ   r   )r(   rm   r­   r®   r¯   rR   rf   Ú	line_funcr�   r/   Úx0Údiff_force_heightr…   r‡   Úparabola_eqnÚpointsÚ	equationsÚpxÚpyÚsolutions   &&                  r0   rª   ÚCable._draw_cable«  sd  € Ü�T×'Ñ'¨Õ*¨4×+@Ñ+@ÓAˆÜ�T×(Ñ(¨Õ+¬S°×1DÑ1DÀQÕ1GÈ×HZÑHZÐ[\ÕH]Ó-^Ó_ˆØ•?ˆØ�B�;Ü˜%“.‰CˆAØˆIÜ$ T×%9Ñ%9×%?Ñ%?Ó%AÑIaÔbˆOäœ3˜Ó/×0�Ø�a”4Ø)Õ,¨QÕ/°Õ2°T×5GÑ5GÈÕ5JÕJÈQ×OaÑOaÐbcÕOdÕMdÕeÐhwÕhzÐ{|Õh}Ð~õ  iAð  CG÷  CUñ  CUð  VWõ  CXõ  iXõ  Yð  \`÷  \nñ  \nð  opõ  \qõ  q‘Aà)Õ,¨QÕ/°Õ2°_ÀqÅSÕ5IÈ!Õ5LÈQÕ5OÕOÐSTÐefÐghÕehÕUiÐjkÕUlÐmnÕUoÕSoÕpð  tCõ  tFð  GHõ  tIð  JKõ  tLð  N]ð  `aõ  ^aõ  Nbð  cdõ  Neð  fgõ  Nhõ  thõ  ið  l{ð  ~õ  |õ  l@ð  ABõ  lCð  DEõ  lFõ  F�AØ× Ñ  ! Õ'9¸!Õ'<¸QÕ'?Ñ$?Ð!@×Añ 1ð "¤# oÓ"6°qÕ"8Õ9¸!Õ<¸QÕ?À$×BUÑBUÐVWÕBXÕXÐ[\×]pÑ]pÐqrÕ]sÕ[sÕtð  xGð  HIõ  xJð  KLõ  xMð  NOõ  xPð  RV÷  Reñ  Reð  fgõ  Rhõ  xhõ  ið  lp÷  lñ  lð  @Aõ  lBõ  BˆAØ×Ñ˜a 4×#6Ñ#6°qÕ#9Ñ 9Ð:Ô;Ü˜yÑ)Ð*Ð*à�a�ZØ×&Ñ&ˆBØ (¨¥Ðä˜iÓ(‰GˆA�Ø �d Q�Y�;¨�?¨QÕ.ˆLà×)Ñ)¨!Õ,¨T×-?Ñ-?ÀÕ-BÐCÀT×EXÑEXÐYZÕE[Ð\`×\oÑ\oÐpqÕ\rÐDsÐtˆFØˆIÛ ‘��BØ× Ñ  ×!2Ñ!2°A°r¸1¸b°>Ó!BÖCñ !ä˜Y¨¨Ó/ˆHØ# A�;¨­¨q¥yÕ0°8¸Aµ;Õ>ˆLØ ×"7Ñ"7Ð:KÕ"KÐLÐLñ r3   c                ón  € \        V P                  ^ ,          V P                  4      p\        V P                  ^ ,          \        V P                  ^,          V P                  ^,          4      4      pW2,
          pVR8X  Ed$   VR,          p. pV P
                  R,           EFþ  pVP                  RRRV P                  V,          ^ ,          V\        \        V P
                  R,          V,          ^,          4      4      ,          ,           V P                  V,          ^,          V\        \        V P
                  R,          V,          ^,          4      4      ,          ,           3RV P                  V,          ^ ,          V P                  V,          ^,          3RR^R	^R
^RR//4       V P
                  R,          V,          ^ ,          pVP                  RV R2RV P                  V,          ^ ,          VR,          \        \        V P
                  R,          V,          ^,          4      4      ,          ,           V P                  V,          ^,          VR,          \        \        V P
                  R,          V,          ^,          4      4      ,          ,           3/4       EK  	  V# V^ 8X  Ed…   \        R4      p	. p\        ^^
4       U
u. uFS  q P                  ^ ,          V P                  ^ ,          V P                  ^ ,          ,
          ^
,          V
,          ,           NKU  	  pp
V Fh  p
VP                  RRRV
V P                  ^ ,          P                  Wš4      3RV
V P                  ^,          P                  Wš4      3RR^R	RR
RRR//4       Kj  	  ^ pV P
                  R,           F#  pW€P
                  R,          V,          ,          pK%  	  VP                  RV R2RV P                  ^ ,          V P                  ^ ,          ,           ^,          V P                  VR,          ,
          3/4       V# R# u up
i )r´   gš™™™™™¹?r   ÚtextÚ r¶   ÚxytextÚ
arrowpropsr·   Ú
headlengthÚ	headwidthÚ	facecolorÚblackÚNgš™™™™™ù?rR   g      @r   z N/mg333333Ã?Nrk   )r^   r   r#   r]   r   r   r'   r   r   r   r   r   rŒ   r$   rQ   )r(   rm   r­   r®   r¯   Úarrow_lengthÚforce_arrowsrƒ   ÚmagrR   r/   Úx_vals   &&          r0   r«   ÚCable._draw_loadsÎ  sÐ  € Ü�T×'Ñ'¨Õ*¨4×+@Ñ+@ÓAˆÜ�T×(Ñ(¨Õ+¬S°×1DÑ1DÀQÕ1GÈ×HZÑHZÐ[\ÕH]Ó-^Ó_ˆØ•?ˆØ�"�9Ø# C�<ˆLØˆLØ—{‘{ <×0Ñ0�Ø×#Ñ#à Ø˜d×2Ñ2°3Õ7¸Õ:¸<ÌÌCÐPT×P[ÑP[Ð\hÕPiÐjmÕPnÐopÕPqÓLrÓHsÕ;sÕsØ"×2Ñ2°3Õ7¸Õ:¸\Ì#ÌcÐRV×R]ÑR]Ð^jÕRkÐloÕRpÐqrÕRsÓNtÓJuÕ=uÕuðwà  4×#7Ñ#7¸Õ#<¸QÕ#?À×@TÑ@TÐUXÕ@YÐZ[Õ@\Ð"]Ø$ w°°<ÀÀ;ÈqÐS^Ð`gÐ&jðôð —k‘k ,Õ/°Õ4°QÕ7�Ø×#Ñ#à #  a˜yØ˜t×3Ñ3°CÕ8¸Õ;¸LÈÕ<LÌSÔQTÐUY×U`ÑU`ÐamÕUnÐorÕUsÐtuÕUvÓQwÓMxÕ<xÕxØ#×3Ñ3°CÕ8¸Õ;¸lÈ3Õ>NÌsÔSVÐW[×WbÑWbÐcoÕWpÐqtÕWuÐvwÕWxÓSyÓOzÕ>zÕzð|ð÷ñ 1ð$  Ðà�q�jÜ˜“ˆAØˆLÜlqÐrsÐtvÔlwÓxÑlwÐgh×'Ñ'¨Õ*¨t×/BÑ/BÀ1Õ/EÀd×FXÑFXÐYZÕF[Õ/[Ð]_Õ._ÐabÕ-b×bÐbÑlwˆEÐxÛ�Ø×#Ñ#à˜rØ ØØ ŸO™O¨AÕ.×3Ñ3°AÓ8ð"ð ØØ ŸO™O¨AÕ.×3Ñ3°AÓ8ðð % g¨a°¸cÀ;ÈsÐT_Ð`gÐ%hðöñ ð ˆCØ—{‘{ =×1Ð1�Ø—{‘{ =Õ1°#Õ6Õ6’ñ 2ð ×Ñà˜c˜U $˜<Ø˜4×-Ñ-¨aÕ0°×1DÑ1DÀQÕ1GÕGÈÕJÈ4×K`ÑK`ÐckÐlpÕcpÕKpÐqðôð  Ðñ; ùò ys   ËAP2c                óh  € \        V P                  4      ^ 8w  dJ   \        R4      p\        V P                  WP
                  ^ ,          V P                  ^ ,          3RR7      pV# \        R4      p\        V P                  R,          W0P
                  ^ ,          V P                  ^ ,          3RR7      pV# )an  
Returns the diagram/plot of the tension generated in the cable at various points.

Examples
========

For point loads,

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c = Cable(("A", 0, 10), ("B", 10, 10))
>>> c.apply_load(-1, ('Z', 2, 7.26, 3, 270))
>>> c.apply_load(-1, ('X', 4, 6, 8, 270))
>>> c.solve()
>>> p = c.plot_tension()
>>> p
Plot object containing:
[0]: cartesian line: Piecewise((8.91403453669861, x <= 2), (4.79150773600774, x <= 4), (19*sqrt(13)/10, x <= 10)) for x over (0.0, 10.0)
>>> p.show()

For uniformly distributed loads,

>>> from sympy.physics.continuum_mechanics.cable import Cable
>>> c=Cable(("A", 0, 40),("B", 100, 20))
>>> c.apply_load(0, ("X", 850))
>>> c.solve(58.58)
>>> p = c.plot_tension()
>>> p
Plot object containing:
[0]: cartesian line: 36465.0*sqrt(0.00054335718671383*X**2 + 1) for X over (0.0, 100.0)
>>> p.show()

rR   F)r¦   rO   r   )rl   r   r   r   r%   r   r   r!   )r(   rR   Útension_plotrO   s   &   r0   Úplot_tensionÚCable.plot_tension  s¡   € ôB ˆt×#Ñ#Ó$¨Ô)Ü˜“ˆAÜ  ×!3Ñ!3°a×8JÑ8JÈ1Õ8MÈd×NaÑNaÐbcÕNdÐ5eÐlqÔrˆLð Ðô ˜“ˆAÜ  §¡¨}Õ!=À×BTÑBTÐUVÕBWÐX\×XkÑXkÐlmÕXnÐ?oÐv{Ô|ˆLØÐr3   )r$   r   r   r   r   r"   r#   r    r   r   r   r!   r%   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r1   Úpropertyr6   r9   r<   r?   rB   rF   rI   rL   rT   rY   rh   rq   rv   r   r±   r©   rª   r«   rÝ   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r0   r   r      sù   ø‡ € ñò4@<ðD ñó ðð ñ"ó ð"ð ñ#ó ð#ð ñó ðð ñ$ó ð$ð ñó ðð ñ$ó ð$ð ñó ðò5ò ò6E<òNb?òH$0òLjròX;òz!ò<!MòF8 ÷t'ð 'r3   r   N)rã   Úsympy.core.sympifyr   Úsympy.core.symbolr   r   Úsympyr   r   r   r   r	   r
   r   r   Ú(sympy.functions.elementary.miscellaneousr   Úsympy.solvers.solvesetr   Úsympy.matricesr   Úsympy.plottingr   r   r|   r3   r0   Ú<module>rï      s3   ðñõ
 'ß ,ß A× AÓ AÝ 9Ý +Ý !Ý ÷aó ar3   