+
    i-                        R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
Ht ^RIHtHt  ! R R]4      t]! ]4      R	 4       tR
# )z
A Printer for generating executable code.

The most important function here is srepr that returns a string so that the
relation eval(srepr(expr))=expr holds in an appropriate environment.
)annotations)Any)AppliedUndef)Mul)repr_dpsto_str)Printerprint_functionc                  x   ] tR t^t$ RtRRRR/tR]R&   R tR	 tR>R
 l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R 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"R$ t#R>R% lt$R& t%R' t&R( t'R) t(R* t)R+ t*R, t+R- t,R. t-R/ t.R0 t/R1 t0R2 t1R3 t2R4 t3R5 t4R6 t5R7 t6R8 t7R9 t8R: t9R; t:R< t;R=t<R# )?ReprPrinter
_sympyreprorderNperm_cyclicTzdict[str, Any]_default_settingsc                j    TP                  V Uu. uF  q0P                  V4      NK  	  up4      # u upi )z7
Prints each item in `args` and joins them with `sep`.
)joindoprint)selfargssepitems   &&& s/Users/tonyclaw/.openclaw/workspace/skills/math-calculator/venv/lib/python3.14/site-packages/sympy/printing/repr.pyreprifyReprPrinter.reprify   s,     xx=d+=>>=s   0c                >   \        V\        4      '       d   V# \        VR4      '       d   VP                  4       # \        VR4      '       d   \        VP                  R4      '       di   . pVP                   F#  pVP                  V P                  V4      4       K%  	  VP                  P                  RRP                  V4      ,          ,           # \        VR4      '       d2   \        VR4      '       d    RVP                  : R	VP                  : R
2# \        V4      # )z
The fallback printer.
	__srepr__r   __iter__(%s), 
__module____name__z<'.z'>)
isinstancestrhasattrr   r   append_print	__class__r    r   r   )r   exprlos   &&  r   emptyPrinterReprPrinter.emptyPrinter    s     dC  KT;''>>##T6""wtyy*'E'EAYYQ( >>**Vdiil-BBBT<((WT:-F-F"&//4==AAt9    c                	    V P                  WR 7      p\        V P                  V4      p\        V4      P                  pVRRP                  V4      ,          ,           # ))r   r   r   )_as_ordered_termsmapr&   typer    r   r   r(   r   r   clsnames   &&&  r   
_print_AddReprPrinter._print_Add2   sL    %%d%84;;%t*%%$))D/111r-   c                	"    VP                  4       # N)__repr__r   r(   s   &&r   _print_CycleReprPrinter._print_Cycle8   s    }}r-   c                	R   ^ RI HpHp ^ RIHp VP
                  pVe   V! RV R2RR^R7       MV P                  P                  R	R
4      pV'       d   VP                  '       g   R# V! V4      ! VP                  ^,
          4      P                  4       \        R4      R pVP                  R4      pV^ 8X  g   RWgR 9  d   WgR VRV ,           pRV,          # VP                  4       pV'       gA   VP                  ^8  d   R\        VP                  4      ,          # RVP                  ,          # \        VP                  RVR,          ^,            4      RVP                  ,          ,           p\        VP                  4      ;r\        V4      \        V
4      8  d   Tp	RV	,          # )    )PermutationCycle)sympy_deprecation_warningNzw
                Setting Permutation.print_cyclic is deprecated. Instead use
                init_printing(perm_cyclic=z).
                z1.6z#deprecated-permutation-print_cyclic)deprecated_since_versionactive_deprecations_target
stacklevelr   TzPermutation()r?   (,zPermutation%szPermutation(%s)zPermutation([], size=%s)z	, size=%s) sympy.combinatorics.permutationsr>   r?   sympy.utilities.exceptionsr@   print_cyclic	_settingsgetsizer8   lenrfindsupportr#   
array_form)r   r(   r>   r?   r@   r   slasttrimusefulls   &&         r   _print_PermutationReprPrinter._print_Permutation;   si   GH!.."%++6- 8 */+P ..,,]DAK999& dDIIM*335c'lmDA773<D19AeH!4eHq$x'"A%%A99q=,s4??/CCC1DII==tz"	23kDII6MMDT__--C4y3t9$$s**r-   c           
     	    V P                  VP                  4      pTR RP                  VP                   Uu. uF  q0P                  V4      NK  	  up4      ,          ,          pV# u upi r   r   )r&   funcr   r   r   r(   ras   &&  r   _print_FunctionReprPrinter._print_Functionc   sP    KK		"	Vdii CAQ CDDD !D   A%c           
     	    V P                  VP                  4      pTR RP                  VP                   Uu. uF  q0P                  V4      NK  	  up4      ,          ,          pV# u upi rY   )r&   rZ   r   pargsr[   s   &&  r   _print_HeavisideReprPrinter._print_Heavisideh   sR     KK		"	Vdii DAQ DEEE !Er`   c                	l    \        V\        4      '       d   R VP                  ,          # VP                  # )zFunction(%r))
issubclassr   r    r9   s   &&r   _print_FunctionClass ReprPrinter._print_FunctionClasso   s(    dL))!T]]33== r-   c                	    R # )zRational(1, 2) r9   s   &&r   _print_HalfReprPrinter._print_Halfu   s    r-   c                	    \        V4      # r7   r#   r9   s   &&r   _print_RationalConstant#ReprPrinter._print_RationalConstantx       4yr-   c                	    \        V4      # r7   rn   r9   s   &&r   _print_AtomicExprReprPrinter._print_AtomicExpr{   rq   r-   c                	    \        V4      # r7   rn   r9   s   &&r   _print_NumberSymbolReprPrinter._print_NumberSymbol~   rq   r-   c                	(    R VP                   ,          # )zInteger(%i))pr9   s   &&r   _print_IntegerReprPrinter._print_Integer   s    tvv%%r-   c                	    R # )	Complexesrj   r9   s   &&r   _print_ComplexesReprPrinter._print_Complexes       r-   c                	    R # )Integersrj   r9   s   &&r   _print_IntegersReprPrinter._print_Integers       r-   c                	    R # )Naturalsrj   r9   s   &&r   _print_NaturalsReprPrinter._print_Naturals   r   r-   c                	    R # )	Naturals0rj   r9   s   &&r   _print_Naturals0ReprPrinter._print_Naturals0   r   r-   c                	    R # )	Rationalsrj   r9   s   &&r   _print_RationalsReprPrinter._print_Rationals   r   r-   c                	    R # )Realsrj   r9   s   &&r   _print_RealsReprPrinter._print_Reals       r-   c                	    R # )EmptySetrj   r9   s   &&r   _print_EmptySetReprPrinter._print_EmptySet   r   r-   c                	    R # )UniversalSetrj   r9   s   &&r   _print_UniversalSetReprPrinter._print_UniversalSet   s    r-   c                	    R # )EmptySequencerj   r9   s   &&r   _print_EmptySequence ReprPrinter._print_EmptySequence   s    r-   c                	4    R V P                  VR4      ,          # )z[%s]r   r   r9   s   &&r   _print_listReprPrinter._print_list   s    T4000r-   c           	     	    R pVP                  4        UUu. uF,  w  r4V P                  V4      : RV P                  V4      : 2NK.  	  pppRVP                  V4      ,          # u uppi )r   z: {%s})itemsr   r   )r   r(   r   keyvaluedict_kvss   &&    r   _print_dictReprPrinter._print_dict   sY    Z^ZdZdZfgZfJCS 14<<3FGZfg*** hs   2A#c                	H    V'       g   R # RV P                  VR4      ,          # )zset()r   r   r   r9   s   &&r   
_print_setReprPrinter._print_set   s    T4000r-   c           	     	R   VP                   ^ 8H  VP                  ^ 8H  ,          '       dh   VP                  P                  : RV P	                  VP                   4      : RV P	                  VP                  4      : RV P	                  . 4      : R2# . p\        VP                   4       FP  pVP                  . 4       \        VP                  4       F#  pVR,          P                  WV3,          4       K%  	  KR  	  VP                  P                  : RV P	                  V4      : R2# )r=   rD   r   )rF   )rowscolsr'   r    r&   ranger%   )r   r(   r)   ijs   &&   r   _print_MatrixBaseReprPrinter._print_MatrixBase   s    IINtyyA~..'+~~'>'>'+{{499'='+{{499'='+{{28 8 tyy!AHHRL499%"TQ$Z( & "  >>22DKKNCCr-   c                	    R # )truerj   r9   s   &&r   _print_BooleanTrueReprPrinter._print_BooleanTrue   s    r-   c                	    R # )falserj   r9   s   &&r   _print_BooleanFalseReprPrinter._print_BooleanFalse   r   r-   c                	    R # )nanrj   r9   s   &&r   
_print_NaNReprPrinter._print_NaN   s    r-   c                	   V P                   R9  d   VP                  4       pM\        P                  ! V4      p\	        V P
                  V4      p\        V4      P                  pVRRP                  V4      ,          ,           # )oldr   r   )r   none)	r   as_ordered_factorsr   	make_argsr0   r&   r1   r    r   r2   s   &&&  r   
_print_MulReprPrinter._print_Mul   sc    ::_,**,D ==&D4;;%t*%%$))D/111r-   c                	|    R V P                  VP                  4      : RV P                  VP                  4      : R2# )z	Rational(r   r   )r&   ry   qr9   s   &&r   _print_RationalReprPrinter._print_Rational   s'    %)[[%8$++dff:MNNr-   c                	j    R VP                   P                  VP                  VP                  3,          # )z
%s(%d, %d))r'   r    ry   r   r9   s   &&r   _print_PythonRational!ReprPrinter._print_PythonRational   s&    t~~66GGGr-   c                	|    R V P                  VP                  4      : RV P                  VP                  4      : R2# )z	Fraction(r   r   )r&   	numeratordenominatorr9   s   &&r   _print_FractionReprPrinter._print_Fraction   s)    %)[[%@$++dN^N^B_``r-   c                	    \        VP                  \        VP                  4      4      pR VP                  P
                  W!P                  3,          # )z%s('%s', precision=%i))mlib_to_str_mpf_r   _precr'   r    )r   r(   r\   s   && r   _print_FloatReprPrinter._print_Float   s9    

HTZZ$89'4>>+B+BAzz*RRRr-   c           
     	    R V P                  VP                  4      : RV P                  VP                  4      : RV P                  VP                  4      : RV P                  VP                  4      : R2	# )zSum2(z, (r   z)))r&   fr   r]   br9   s   &&r   _print_Sum2ReprPrinter._print_Sum2   sL    +/;;tvv+>DFF@S+/;;tvv+>DFF@SU 	Ur-   c                	p    VP                   P                  : R V P                  VP                  4      : R2# rD   r   )r'   r    r&   name)r   rQ   s   &&r   
_print_StrReprPrinter._print_Str   s$    ;;//QVV1DEEr-   c                	   VP                   pVP                  '       d    VP                  4       pVP                  VR &   V/ 8X  d8   VP                  P
                  : RV P                  VP                  4      : R2# VP                  4        UUu. uF  w  r4V: RV: 2NK  	  pppVP                  P
                  : RV P                  VP                  4      : RRP                  V4      : R2# u uppi )dummy_indexrD   r   =r   )
_assumptions_origis_Dummycopyr   r'   r    r&   r   r   r   r   r(   dkvattrs   &&    r   _print_SymbolReprPrinter._print_Symbol   s    ""===A#//Am7#~~66DII8NOO12;q!$D;#'>>#:#:#';;tyy#9499T?L L <s   C0c           	     	   VP                   P                  pV/ 8X  dU   VP                  P                  : R V P	                  VP
                  4      : RV P	                  VP                  4      : R2# VP                  4        UUu. uF  w  r4V: RV: 2NK  	  pppVP                  P                  : R V P	                  VP
                  4      : RV P	                  VP                  4      : RRP                  V4      : R2# u uppi )rD   r   r   r   )	_assumptions	generatorr'   r    r&   	coord_sysindexr   r   r   s   &&    r   _print_CoordinateSymbol#ReprPrinter._print_CoordinateSymbol   s    ''7''DNN+DJJ'  23;q!$D;''DNN+DJJ'		$	  <s   Dc                	(    R VP                   ,          # )zQ.%s)r   r9   s   &&r   _print_PredicateReprPrinter._print_Predicate  s    		!!r-   c                	v    VP                   pVP                  P                  : R V P                  VR4      : R2# rD   r   r   )_argsr'   r    r   )r   r(   r   s   && r   _print_AppliedPredicate#ReprPrinter._print_AppliedPredicate  s+    zz>>22DLLt4LMMr-   c                	    \        V4      # r7   )reprr9   s   &&r   
_print_strReprPrinter._print_str
  s    Dzr-   c                	    \        V4      ^8X  d    RV P                  V^ ,          4      ,          # RV P                  VR4      ,          # )   z(%s,)r   r   )rM   r&   r   r9   s   &&r   _print_tupleReprPrinter._print_tuple  s;    t9>T[[a111DLLt444r-   c                	R    VP                   P                  : R VP                  : R2# )z('z'))r'   r    r   r9   s   &&r   _print_WildFunctionReprPrinter._print_WildFunction  s    !^^44dii@@r-   c                	    VP                   P                  : R V P                  VP                  4      : RV P                  VP	                  4       4      : R2# r  )r'   r    r&   rootcoeffsr9   s   &&r   _print_AlgebraicNumber"ReprPrinter._print_AlgebraicNumber  s<    #~~66KK		"DKK$>@ 	@r-   c           	     	    VP                   P                  : R V P                  VP                  4      : RV P                  VP                  4      : RV P                  VP
                  4      : R2# r  r'   r    r&   symbolsdomainr   )r   rings   &&r   _print_PolyRingReprPrinter._print_PolyRing  sI    #'>>#:#:KK%t{{4;;'?TZZAXZ 	Zr-   c           	     	    VP                   P                  : R V P                  VP                  4      : RV P                  VP                  4      : RV P                  VP
                  4      : R2# r  r  )r   fields   &&r   _print_FracFieldReprPrinter._print_FracField  sI    #(??#;#;KK&ELL(A4;;u{{C[] 	]r-   c                	   \        VP                  4       4      pVP                  VP                  P                  R R7       VP
                  P                  : RV P                  VP                  4      : RV P                  V4      : R2# T)r   reverserD   r   r   )listtermssortr  r   r'   r    r&   )r   polyr%  s   && r   _print_PolyElementReprPrinter._print_PolyElement"  s[    TZZ\"

tyy
5#~~66DII8NPTP[P[\aPbccr-   c                	   \        VP                  P                  4       4      pVP                  VP                  P
                  R R7       \        VP                  P                  4       4      pVP                  VP                  P
                  R R7       V P                  V4      pV P                  V4      pVP                  P                  : RV P                  VP                  4      : RV: RV: R2# r"  )
r$  numerr%  r&  r  r   denomr&   r'   r    )r   fracnumer_termsdenom_termsr+  r,  s   &&    r   _print_FracElementReprPrinter._print_FracElement'  s    4::++-.TZZ--t<4::++-.TZZ--t<K(K(#'>>#:#:DKK

<SUZ\abbr-   c                	x    VP                   P                  pV P                  VP                  4      pV: R V: R2# r   )r'   r    r&   r  )r   r  clsr  s   &&  r   _print_FractionField ReprPrinter._print_FractionField0  s0    ''FLL)&&r-   c                	F   VP                   P                  pV P                  VP                  4      pR P	                  \        V P                  VP                  4      4      p\        VP                  4      pWQP                  8w  d   RV,           pMRpV: RV: R V: V: R2# )r   z, order= rD   r   )
r'   r    r&   r  r   r0   gensr#   r   default_order)r   r  r3  domr8  r   orderstrs   &&     r   _print_PolynomialRingBase%ReprPrinter._print_PolynomialRingBase5  sw    nn%%kk$++&yyT[[$))45DJJ&&&!E)HH!$c4::r-   c                	    VP                   P                  pV P                  VP                  4       4      pV P                  VP                  4      pV: R V: RV: R2# r  )r'   r    r&   to_listr:  )r   ry   r3  repr:  s   &&   r   
_print_DMPReprPrinter._print_DMP@  sD    kk""kk!))+&kk!%% "C--r-   c                	:    R \        VP                  4      ,          # )zFiniteExtension(%s))r#   modulus)r   exts   &&r   _print_MonogenicFiniteExtension+ReprPrinter._print_MonogenicFiniteExtensionF  s     %s3;;'777r-   c                	    V P                  VP                  4      pV P                  VP                  4      pR V: RV: R2# )zExtElem(r   r   )r&   r@  rE  )r   r   r@  rE  s   &&  r   _print_ExtensionElement#ReprPrinter._print_ExtensionElementK  s1    kk!%% kk!%% $'--r-   rj   r7   )=r    r   __qualname____firstlineno__printmethodr   __annotations__r   r+   r4   r:   rV   r^   rc   rg   rk   ro   rs   rv   rz   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r  r(  r0  r4  r<  rA  rF  rI  __static_attributes__rj   r-   r   r   r      s;   K 	)~ 
?$2&+P
! &1+
1
D	2OHaSUFL$"N
5A@Z]d
c'
	;.8
.r-   r   c                6    \        V4      P                  V 4      # )zreturn expr in repr form)r   r   )r(   settingss   &,r   sreprrR  P  s     x ((..r-   N)__doc__
__future__r   typingr   sympy.core.functionr   sympy.core.mulr   mpmath.libmpr   r   r   printerr   r	   r   rR  rj   r-   r   <module>rZ     sF    #  ,  8 ,|.' |.|	 / /r-   