+
    
þÎj©  ã                  ó�   € R t ^ RIHt ^ RIHt ^ RIHtHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ^ RIHt ^R	IHt  ! R
 R]4      tR# )zG
Unit system for physical quantities; include definition of constants.
)Úannotations)ÚAdd)Ú
DerivativeÚFunction)ÚMul)ÚPow)ÚS)Ú_QuantityMapper©ÚQuantity)Ú	Dimensionc                  ó  a € ] tR t^t$ Rt/ tR]R&   RRRR/ 3R V 3R llltR tR	 t	RRRR/ 3R
 R llt
R tV 3R ltV 3R lt]R 4       t]R 4       t]R 4       t]R 4       t]R R l4       tR tR tR R ltRtV ;t# )Ú
UnitSystemzÜ
UnitSystem represents a coherent set of units.

A unit system is basically a dimension system with notions of scales. Many
of the methods are defined in the same way.

It is much better if all base units have a symbol.
zdict[str, UnitSystem]Ú_unit_systemsÚ Nc               ó   € V ^8„  d   QhRR/# ©é   Úderived_unitsúdict[Dimension, Quantity]© )Úformats   "ÚT/opt/data/home/.local/lib/python3.14/site-packages/sympy/physics/units/unitsystem.pyÚ__annotate__ÚUnitSystem.__annotate__   s   € ÷ ñ Ðfñ ó    c                	óø   <€ V \         P                  V&   W0n        W@n        Wn        WPn        \        \        V4      \        V4      ,          4      V n        \        V4      V n        W`n	        \        SV `-  4        R # ©N)r   r   ÚnameÚdescrÚ_base_unitsÚ_dimension_systemÚtupleÚsetÚ_unitsÚ_derived_unitsÚsuperÚ__init__)ÚselfÚ
base_unitsÚunitsr   r   Údimension_systemr   Ú	__class__s   &&&&&&&€r   r'   ÚUnitSystem.__init__   s`   ø€ à)-Œ
× Ñ  Ñ&àŒ	ØŒ
à%ÔØ!1ÔÜœC 
›O¬c°%«jÕ8Ó9ˆŒÜ  Ó,ˆÔØ+Ôä‰ÑÖr   c                óŽ   € V P                   R8w  d   V P                   # RRP                  R V P                   4       4      ,          # )zz
Return the name of the system.

If it does not exist, then it makes a list of symbols (or names) of
the base dimensions.
r   zUnitSystem((%s))ú, c              3  ó8   "  € T F  p\        V4      x € K  	  R # 5ir   )Ústr)Ú.0Úds   & r   Ú	<genexpr>Ú%UnitSystem.__str__.<locals>.<genexpr>7   s   é € ð 22Ù 0˜1”�A—�Ó 0ùs   ‚)r   Újoinr    ©r(   s   &r   Ú__str__ÚUnitSystem.__str__,   sD   € ð �9‰9˜Œ?Ø—9‘9Ðà%¨¯	©	ñ 22Ø $× 0Ò 0ó22ó )2õ 2ð 2r   c                	ó:   € R \        V P                  4      ,          # )z<UnitSystem: %s>)Úreprr    r7   s   &r   Ú__repr__ÚUnitSystem.__repr__:   s   € Ø!¤D¨×)9Ñ)9Ó$:Õ:Ð:r   c               ó   € V ^8„  d   QhRR/# r   r   )r   s   "r   r   r   =   s   € ÷ vñ vÐd}ñ vr   c           	     óª   € V P                   \        V4      ,           pV P                  \        V4      ,           p\        WW4V/ V P                  CVC4      # )zåExtend the current system into a new one.

Take the base and normal units of the current system to merge
them to the base and normal units given in argument.
If not provided, name and description are overridden by empty strings.
)r    r"   r$   r   r%   )r(   Úbaser*   r   Údescriptionr+   r   s   &&&&&&&r   ÚextendÚUnitSystem.extend=   sN   € ð ×Ñ¤%¨£+Õ-ˆØ—‘œe E›lÕ*ˆä˜$ tÐ:JÐLtÈt×ObÑObÐLtÐfsÐLtÓuÐur   c                	ó   € V P                   # r   )r!   r7   s   &r   Úget_dimension_systemÚUnitSystem.get_dimension_systemJ   s   € Ø×%Ñ%Ð%r   c                	ór   <€ V P                  4       P                  pW9   d	   W!,          # \        SV `  V4      # r   )rE   Ú_quantity_dimension_mapr&   Úget_quantity_dimension)r(   ÚunitÚqdmr,   s   && €r   rI   Ú!UnitSystem.get_quantity_dimensionM   s4   ø€ Ø×'Ñ'Ó)×AÑAˆØŒ;Ø•9ÐÜ‰wÑ-¨dÓ3Ð3r   c                	ór   <€ V P                  4       P                  pW9   d	   W!,          # \        SV `  V4      # r   )rE   Ú_quantity_scale_factorsr&   Úget_quantity_scale_factor)r(   rJ   Úqsfmr,   s   && €r   rO   Ú$UnitSystem.get_quantity_scale_factorS   s4   ø€ Ø×(Ñ(Ó*×BÑBˆØŒ<Ø•:ÐÜ‰wÑ0°Ó6Ð6r   c           	     	ó
  € \        V \        4      '       d   V # V \        P                  9  dA   \        R P	                  RP                  \        \        P                  4      4      4      4      h\        P                  V ,          # )zDUnit system is not supported. Currentlysupported unit systems are {}r/   )Ú
isinstancer   r   Ú
ValueErrorr   r6   Úsorted)Úunit_systems   &r   Úget_unit_systemÚUnitSystem.get_unit_systemY   si   € ä�k¤:×.Ò.ØÐàœj×6Ñ6Ô6Üð0ß06±Ø—I‘Iœf¤Z×%=Ñ%=Ó>Ó?ó1óð ô ×'Ñ'¨Õ4Ð4r   c                 	ó0   € \         P                  R ,          # )ÚSI)r   r   r   r   r   Úget_default_unit_systemÚ"UnitSystem.get_default_unit_systemh   s   € ä×'Ñ'¨Õ-Ð-r   c                ó,   € \        V P                  4      # )zZ
Give the dimension of the system.

That is return the number of units forming the basis.
)Úlenr    r7   s   &r   ÚdimÚUnitSystem.diml   s   € ô �4×#Ñ#Ó$Ð$r   c                ó6   € V P                  4       P                  # )z9
Check if the underlying dimension system is consistent.
)rE   Úis_consistentr7   s   &r   rb   ÚUnitSystem.is_consistentu   s   € ð ×(Ñ(Ó*×8Ñ8Ð8r   c               ó   € V ^8„  d   QhRR/# )r   Úreturnr   r   )r   s   "r   r   r   ~   s   € ÷ #ñ #Ð8ñ #r   c                	ó   € V P                   # r   )r%   r7   s   &r   r   ÚUnitSystem.derived_units}   s   € à×"Ñ"Ð"r   c                	ó  € ^ RI Hp \        V\        4      '       d2   \        VP                   Uu. uF  q0P                  V4      NK  	  up!  # \        V\        4      '       d-   V P                  VP                  4      VP                  ,          # \        V\        4      '       d#   V P                  VP                  ^ ,          4      # \        V\        4      '       dQ   V P                  VP                  4      pVP                   F#  w  rVW@P                  V4      V,          ,          pK%  	  V# \        V\        4      '       d„   VP                   Uu. uF  qpP                  V4      NK  	  pp\        ;QJ d    R V 4       F  '       d   K   RM	  RM! R V 4       4      '       d   \        P                   # VP"                  ! V!  # \        W4      '       d   V P%                  V4      P&                  # \        P                   # u upi u upi )é    r
   c              3  ó*   "  € T F	  q^8H  x € K  	  R# 5i)é   Nr   )r2   Úis   & r   r4   Ú2UnitSystem.get_dimensional_expr.<locals>.<genexpr>�   s   é € Ð(¡4˜a˜–6£4ùs   ‚FT)Úsympy.physics.unitsr   rS   r   ÚargsÚget_dimensional_exprr   r@   Úexpr   r   ÚexprÚvariable_countr   Úallr   ÚOneÚfuncrI   r   )	r(   rr   r   rl   r_   ÚindependentÚcountÚargro   s	   &&       r   rp   ÚUnitSystem.get_dimensional_expr�   sy  € Ý0Ü�dœC× Ò Ü¸t¿yºyÓI¹y¸!×2Ñ2°1Ö5¹yÑIÑJÐJÜ˜œc×"Ò"Ø×,Ñ,¨T¯Y©YÓ7¸4¿8¹8ÕCÐCÜ˜œc×"Ò"Ø×,Ñ,¨T¯Y©Y°q­\Ó:Ð:Ü˜œj×)Ò)Ø×+Ñ+¨D¯I©IÓ6ˆCØ&*×&9Ô&9Ñ"�Ø×0Ñ0°Ó=¸uÕDÕD’ñ ':àˆJÜ˜œh×'Ò'Ø>B¿iºiÓH¹i°s×-Ñ-¨cÖ2¹iˆDÐHß‹sÑ(¡4Ó(�s�sŠsÑ(¡4Ó(×(Ò(Ü—u‘u�Ø—9’9˜dÑ#Ð#Ü˜×'Ò'Ø×.Ñ.¨tÓ4×9Ñ9Ð9Ü�u‰uˆùò# Jùò Is   °HÅHc                ót  € ^ RI Hp \        W4      '       d   VP                  VP                  3# \        V\
        4      '       dG   ^p\        ^4      pVP                   F&  pV P                  V4      w  rgW6,          pWG,          pK(  	  W43# \        V\        4      '       dy   V P                  VP                  4      w  r8V P                  VP                  4      w  ršV P                  4       P                  V
4      '       d   ^p
W9,          W‰V
,          ,          3# \        V\        4      '       d�   V P                  VP                  ^ ,          4      w  r8VP                  R,           F^  pV P                  V4      w  rÍV P                  4       P                  W�4      '       g   \!        RP#                  W½V4      4      hW<,          pK`  	  W83# \        V\$        4      '       dq   V P                  VP                  ^ ,          4      w  r8VP&                   F9  w  rïV P                  V4      w  ppVVV,          ,          pVVV,          ,          pK;  	  W83# \        V\(        4      '       d”   VP                   Uu. uF  qPP                  V4      NK  	  ppV Uu. uFC  pV P                  4       P                  V^,          4      '       d   \        ^4      MV^,          NKE  	  ppVP*                  ! R V 4       !  .VO5# \        V\        4      '       d   \,        P.                  V3# V\        ^4      3# u upi u upi )zE
Return tuple with scale factor expression and dimension expression.
r
   :rk   NNz,Dimension of "{}" is {}, but it should be {}c              3  ó2   "  € T F  q^ ,          x € K  	  R# 5i)ri   Nr   )r2   Úfs   & r   r4   Ú;UnitSystem._collect_factor_and_dimension.<locals>.<genexpr>Â   s   é € Ð2©c¨ !§¢«cùs   ‚)rn   r   rS   Úscale_factorÚ	dimensionr   r   ro   Ú_collect_factor_and_dimensionr   r@   rq   rE   Úis_dimensionlessr   Úequivalent_dimsrT   r   r   rs   r   rv   r   ru   )r(   rr   r   Úfactorr€   ry   Ú
arg_factorÚarg_dimr_   Ú
exp_factorÚexp_dimÚaddendÚaddend_factorÚ
addend_dimrw   rx   ÚifactorÚidimÚfdsr3   Údimss   &&                   r   r�   Ú(UnitSystem._collect_factor_and_dimension—   sÅ  € õ 	1Ü�d×%Ò%Ø×$Ñ$ d§n¡nÐ4Ð4Ü˜œc×"Ò"ØˆFÜ! !›ˆIØ—y”y�Ø&*×&HÑ&HÈÓ&MÑ#�
ØÕ$�ØÕ$’	ñ !ð Ð$Ð$Ü˜œc×"Ò"Ø×<Ñ<¸T¿Y¹YÓG‰KˆFØ"&×"DÑ"DÀTÇXÁXÓ"NÑˆJØ×(Ñ(Ó*×;Ñ;¸G×DÒDØ�ØÕ'¨¸gÕ1EÕ)FÐFÐFÜ˜œc×"Ò"Ø×<Ñ<¸T¿Y¹YÀq½\ÓJ‰KˆFØŸ)™) BŸ-˜-�à×6Ñ6°vÓ>ñ *�à×0Ñ0Ó2×BÑBÀ3×SÒSÜ$ð.ß.4©fØ"°ó/5ó6ð 6ð Õ'’ñ (ð �;ÐÜ˜œj×)Ò)Ø×<Ñ<¸T¿Y¹YÀq½\ÓJ‰KˆFØ&*×&9Ô&9Ñ"�Ø $× BÑ BÀ;Ó O‘�˜Ø˜' 5�.Õ(�Ø�t˜U•{Õ"’ñ ':ð �;ÐÜ˜œh×'Ò'ØFJÇiÂiÓPÁi¸s×5Ñ5°cÖ:ÁiˆCÐPÙjmÓnÑjmÐef D×$=Ñ$=Ó$?×$PÑ$PÐQRÐSTÕQU×$VÒ$V”I˜a”LÐ\]Ð^_Õ\`Ò`ÑjmˆDÐnØ—I’IÑ2©cÓ2Ñ3Ð;°dÑ;Ð;Ü˜œi×(Ò(Ü—5‘5˜$�;Ðàœ 1›Ð%Ð%ùò QùÚns   É6L0Ê0L5ËL5c               ó   € V ^8„  d   QhRR/# )r   re   zset[Quantity]r   )r   s   "r   r   r   È   s   € ÷ dñ d¨ñ dr   c                óB   € \        \        R V P                  4      4      # )z;
Return the units of the system that do not have a prefix.
c                óV   € V P                   '       * ;'       d    V P                  '       * # r   )Úis_prefixedÚis_physical_constant)Úus   &r   Ú<lambda>Ú3UnitSystem.get_units_non_prefixed.<locals>.<lambda>Ì   s   € ¨¯©Ô$5×$TÐ$T¸a×>TÑ>TÔ:TÐ$Tr   )r#   Úfilterr$   r7   s   &r   Úget_units_non_prefixedÚ!UnitSystem.get_units_non_prefixedÈ   s   € ô ”6ÑTÐVZ×VaÑVaÓbÓcÐcr   )r    r%   r!   r$   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú__annotations__r'   r8   r<   rB   rE   rI   rO   ÚstaticmethodrW   r[   Úpropertyr_   rb   r   rp   r�   rš   Ú__static_attributes__Ú__classcell__)r,   s   @r   r   r      sÜ   ø‡ ñð ,.€MÐ(Ó-à)+°"¸BÐQUð  AC÷ ò ò2ò;ð "$¨"¸"Ètð  A÷ vò&õ4õ7ð ñ5ó ð5ð ñ.ó ð.ð ñ%ó ð%ð ñ9ó ð9ð ô#ó ð#òò,/&÷bdó dr   r   N)r    Ú
__future__r   Úsympy.core.addr   Úsympy.core.functionr   r   Úsympy.core.mulr   Úsympy.core.powerr   Úsympy.core.singletonr   Úsympy.physics.units.dimensionsr	   Úsympy.physics.units.quantitiesr   Ú
dimensionsr   r   r   r   r   Ú<module>r¯      s7   ðñõ #å ß 6Ý Ý  Ý "Ý :Ý 3å !ô{d�ö {dr   