+
    ‹°³já;  ã                   óœ   € R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt Rt	Rt
RtRR ltR tR tR tR
. R	R	3R ltR tR
RR
R
R
R	R	R	R
R
R
. 3R ltR
# )z+Tools for setting up interactive sessions. )ÚGROUND_TYPES)Úversion_tuple)Úinit_printing)ÚARCHz–from sympy import *
x, y, z, t = symbols('x y z t')
k, m, n = symbols('k m n', integer=True)
f, g, h = symbols('f g h', cls=Function)
init_printing()
zjThese commands were executed:
%(source)s
Documentation can be found at https://docs.sympy.org/%(version)s
zÏCould not locate IPython. Having IPython installed is greatly recommended.
See http://ipython.scipy.org for more details. If you use Debian/Ubuntu,
just install the 'ipython' package and start isympy again.
TFNc                ó¢  € ^ RI Hp ^ RI Hp ^ RIp^ RIpV'       d   R# RVP
                  R,          ,          pV '       d   RpMRpR	\        ,          .p	VP                  R
4      p
V
e'   V
P                  4       R8X  d   V	P                  R4       V'       d   V	P                  R4       WƒV\        RP                  V	4      3pRV,          pVf   \        pRpVP                  R4      RR  F-  pV'       g   VR,          pK  VRV,           R,           ,          pK/  	  TpRV9   d   RpM	RV,          pVR\        RVRV/,          ,           ,          pV# )z,Create a banner for an interactive session. )Ú__version__)ÚSYMPY_DEBUGNÚ z%d.%d.%d:Né   NÚIPythonÚPythonzground types: %sÚSYMPY_USE_CACHEÚnoz
cache: offzdebugging: onz, z,%s console for SymPy %s (Python %s-%s) (%s)
Ú
z>>> Údevz%s/ÚsourceÚversionéÿÿÿÿ)Úsympyr   r   ÚsysÚosÚversion_infor   ÚgetenvÚlowerÚappendr   ÚjoinÚpreexec_sourceÚsplitÚverbose_message)ÚipythonÚquietr   Úsympy_versionr   r   r   Úpython_versionÚ
shell_nameÚinfoÚcacheÚargsÚmessageÚ_sourceÚlineÚdoc_versions   &&&             ÚZ/home/luca/screen-checking/.venv/lib/python3.14/site-packages/sympy/interactive/session.pyÚ_make_messager,      s7  € å2Ý!ãÛçÙà #×"2Ñ"2°2Õ"6Õ6€NçØ‰
àˆ
à¤Õ-Ð.€Dà�I‰IÐ'Ó(€EàÒ˜UŸ[™[›]¨dÔ2Ø�‰�LÔ!çØ�‰�OÔ$à n´d¸D¿I¹IÀd»OÐK€DØ=ÀÕD€Gà‚~Üˆà€Gà—‘˜TÓ" 3 BÓ'ˆßØ�t�OŠGà�v •} tÕ+Õ+ŠGñ	 (ð  €KØ�ÔØ‰à˜kÕ)ˆàˆt”o¨°7Ø)2°Kð)Aõ Aõ Aõ A€Gð €Nó    c                ó  € ^ RI HpHpHpHpHp ^ RIHp R p. pV! V! V 4      P                  4      p	V	 FL  w  r«  pW£8X  d-   V! V4      '       d   VP                  VR3VR3W;3VR3.4       K:  VP                  W«34       KN  	  V! V4      # )a+  
Wrap integer literals with Integer.

This is based on the decistmt example from
https://docs.python.org/3/library/tokenize.html.

Only integer literals are converted.  Float literals are left alone.

Examples
========

>>> from sympy import Integer # noqa: F401
>>> from sympy.interactive.session import int_to_Integer
>>> s = '1.2 + 1/2 - 0x12 + a1'
>>> int_to_Integer(s)
'1.2 +Integer (1 )/Integer (2 )-Integer (0x12 )+a1 '
>>> s = 'print (1/2)'
>>> int_to_Integer(s)
'print (Integer (1 )/Integer (2 ))'
>>> exec(s)
0.5
>>> exec(int_to_Integer(s))
1/2
)Úgenerate_tokensÚ
untokenizeÚNUMBERÚNAMEÚOP)ÚStringIOc                ól   € RV 9   g+   RV P                  4       9   g   RV P                  4       9   d   R# R# )zM
Returns true if string value num (with token NUMBER) represents an integer.
Ú.ÚjÚeFT)r   )Únums   &r+   Ú_is_intÚint_to_Integer.<locals>._is_intq   s+   € ð
 �#Œ:˜ §	¡	£Ô+¨s°c·i±i³kÔ/AÙÙr-   ÚIntegerÚ(Ú))Útokenizer/   r0   r1   r2   r3   Úior4   ÚreadlineÚextendr   )Úsr/   r0   r1   r2   r3   r4   r:   ÚresultÚgÚtoknumÚtokvalÚ_s   &            r+   Úint_to_IntegerrI   U   sš   € ÷2 GÕFÝòð €FÙ™ ›×,Ñ,Ó-€AÛ#$Ñˆ˜˜1˜aØÔ¡¨§¢Ø�M‰MØ�yÐ!Ø�S�	ØÐ Ø�S�	ð	ö ð �M‰M˜6Ð*Ö+ñ $%ñ �fÓÐr-   c                óD   aa€ ^ RI oV P                  oVV3R lpWn        R# )zE
Allow IPython to automatically convert integer literals to Integer.
Nc                 óx   <€  SP                  V 4       \        V 4      p S! V .VO5/ VB #   \         d     Li ; i©N)ÚparserI   ÚSyntaxError)Úcellr&   ÚkwargsÚastÚold_run_cells   &*,€€r+   Úmy_run_cellÚ7enable_automatic_int_sympification.<locals>.my_run_cell�   sJ   ø€ ð
	(ð �I‰I�dŒOô " $Ó'ˆDÙ˜DÐ2 4Ò2¨6Ñ2Ð2øô	 ô 	Ùð	ús   ƒ+ «9¸9)rQ   Úrun_cell)ÚshellrS   rQ   rR   s   & @@r+   Ú"enable_automatic_int_sympificationrW   ‰   s   ù€ ó Ø—>‘>€Lö3ð !†Nr-   c                óp   a€ ^ RI pVP                  R4      oRV3R llpV P                  \        3V4       R# )z?Allow IPython to automatically create symbols (``isympy -a``). Nz8name '(?P<symbol>[A-Za-z_][A-Za-z0-9_]*)' is not definedc                óü  <€ V\         J dÒ   VP                  '       dÀ   VP                  P                  '       g¤   SP                  \        V4      4      pVe†   V P	                  RRVP                  R4      /,          RR7        V P                  R,          R	,          pV P	                  VRR7        V P	                  RVP                  R4      ,          RR7       R# V P                  P                  WW4R7      pV P                  WV4       R#   \        \        3 d     Mi ; i T P	                  RTP                  R4      ,          RR7       Ls  T P	                  RTP                  R4      ,          RR7       i ; i)
zJHandle :exc:`NameError` exception and allow injection of missing symbols. Nz!%(symbol)s = Symbol('%(symbol)s')ÚsymbolF)Ústore_historyÚInzdel %s)Ú	tb_offsetr   )Ú	NameErrorÚtb_nextÚmatchÚstrrU   ÚgroupÚuser_nsÚKeyErrorÚ
IndexErrorÚInteractiveTBÚstructured_tracebackÚ_showtraceback)	ÚselfÚetypeÚvalueÚtbr]   r`   ÚcodeÚstbÚre_nameerrors	   &&&&&   €r+   Ú_handlerÚ*enable_automatic_symbols.<locals>._handlerÌ   sU  ø€ à”IÓ "§*§* *°R·Z±Z×5G×5GÐ5GØ ×&Ñ&¤s¨5£zÓ2ˆEàÒ à—‘ÐAØ'¨¯©°XÓ)>Ð?õ@ØOTð ô Vð	7ØŸ<™<¨Õ-¨bÕ1�Dð —M‘M $°e�MÔ<Øà—M‘M (¨U¯[©[¸Ó-BÕ"BØ05ð "ö 7ð × Ñ ×5Ñ5Ø˜"ð 6ó 3ˆà×Ñ˜E¨#Ö.øô !¤*Ð-ô ÙðúØð
 —M‘M (¨U¯[©[¸Ó-BÕ"BØ05ð "õ 7ø�D—M‘M (¨U¯[©[¸Ó-BÕ"BØ05ð "õ 7ús*   ÂD ÂE ÄD"ÄE Ä!D"Ä"E Å+E;rL   )ÚreÚcompileÚset_custom_excr^   )rV   rr   rp   ro   s   &  @r+   Úenable_automatic_symbolsru   ¡   s4   ø€ óN Ø—:‘:ØBóD€L÷/ð2 
×Ñœ)˜ xÖ0r-   c                ó”  € ^ RI p\        VP                  4      \        R4      8¼  d•   V '       ge   \        VP                  4      \        R4      8¼  d   ^ RIHp M^ RIHp VP                  4       pRVn        VP                  V4       VP                  p V'       d   \        V 4       V'       d   \        V 4       V # ^ RIHp V! V4      # )zConstruct new IPython session. Nú0.11z1.0)ÚipappF)Úmake_IPython)r   r   r   ÚIPython.terminalrx   ÚIPython.frontend.terminalÚTerminalIPythonAppÚdisplay_bannerÚ
initializerV   ru   rW   ÚIPython.Shellry   )rV   ÚargvÚauto_symbolsÚauto_int_to_Integerr   rx   Úappry   s   &&&&    r+   Úinit_ipython_sessionr„   è   s–   € ãä�W×(Ñ(Ó)¬]¸6Ó-BÔBßô
 ˜W×0Ñ0Ó1´]À5Ó5IÔIÞ2å;Ø×*Ñ*Ó,ˆCð "'ˆCÔØ�N‰N˜4Ô à—I‘IˆEçÜ$ UÔ+ßÜ.¨uÔ5àˆå.Ù˜DÓ!Ð!r-   c                 ó:   a€ ^ RI Ho  ! V3R lRS4      p V ! 4       # )zConstruct new Python session. )ÚInteractiveConsolec                   ó2   <a € ] tR tRt o RtV3R ltRtV tR# )Ú)init_python_session.<locals>.SymPyConsolei  z.An interactive console with readline support. c                óÈ  <€ / pSP                  WR 7        ^ RIp^ RIp^ RIp^ RIpVP                  VP                  V4      P                  4       VP                  R4       \        VR4      '       dL   VP                  P                  R4      p VP                  V4       VP                  VP                  V4       R# R#   \         d     L-i ; i  \          d     R# i ; i))ÚlocalsNztab: completeÚread_history_filez~/.sympy-history)Ú__init__ÚrlcompleterrA   r   ÚatexitÚset_completerÚ	CompleterÚcompleteÚparse_and_bindÚhasattrÚpathÚ
expanduserr‹   ÚOSErrorÚregisterÚwrite_history_fileÚImportError)ri   Ú	ns_localsr�   rA   r   rŽ   Úhistoryr†   s   &      €r+   rŒ   Ú2init_python_session.<locals>.SymPyConsole.__init__  sÒ   ø€ ØˆIØ×'Ñ'¨Ð'Ô?ðJÛ"Ûó Ûà×&Ñ& {×'<Ñ'<¸YÓ'G×'PÑ'PÔQØ×'Ñ'¨Ô8ä˜8Ð%8×9Ò9Ø Ÿg™g×0Ñ0Ð1CÓD�GðØ ×2Ñ2°7Ô;ð —O‘O H×$?Ñ$?ÀÖIñ :øô
 #ô Ùðûô ô Úðús#   —C ÂC ÃCÃCÃC!Ã C!© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rŒ   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__r†   s   @€r+   ÚSymPyConsolerˆ     s   ù‡ € Ù<÷	Jó 	Jr-   r¦   )rm   r†   )r¦   r†   s    @r+   Úinit_python_sessionr§   	  s   ø€ å'÷JÐ)ô Jñ8 ‹>Ðr-   c                ó   a€ ^ RI pRpV RJd%    ^ RIp ^ RIHp V! 4       o\        S4      pT f   Tp V RJ d   \        4       oSP                  pMe\        SW¶VR7      o\        XP                  4      \        R4      8¼  d!   RV3R	 llSn         SP                  RR
7       V'       g   SP                  pV'       d7   V '       d$   \        XP                  4      \        R4      8  d   \	        R4      hV'       d7   V '       d$   \        XP                  4      \        R4      8  d   \	        R4      h\        pSP                  VRR7       \!        WW4SW‰V
R7       \#        WV4      pV'       g&   \%        V4       X! 4        VP'                  R4       R# \%        V4       ^ RIpVP+                  R 4       R#   \         d    Ro EL¤i ; i  \         d    T RJ d   \	        R4      hRo ELÉi ; i  \         d     EL\i ; i)uH  
Initialize an embedded IPython or Python session. The IPython session is
initiated with the --pylab option, without the numpy imports, so that
matplotlib plotting can be interactive.

Parameters
==========

pretty_print: boolean
    If True, use pretty_print to stringify;
    if False, use sstrrepr to stringify.
order: string or None
    There are a few different settings for this parameter:
    lex (default), which is lexographic order;
    grlex, which is graded lexographic order;
    grevlex, which is reversed graded lexographic order;
    old, which is used for compatibility reasons and for long expressions;
    None, which sets it to lex.
use_unicode: boolean or None
    If True, use unicode characters;
    if False, do not use unicode characters.
use_latex: boolean or None
    If True, use latex rendering if IPython GUI's;
    if False, do not use latex rendering.
quiet: boolean
    If True, init_session will not print messages regarding its status;
    if False, init_session will print messages regarding its status.
auto_symbols: boolean
    If True, IPython will automatically create symbols for you.
    If False, it will not.
    The default is False.
auto_int_to_Integer: boolean
    If True, IPython will automatically wrap int literals with Integer, so
    that things like 1/2 give Rational(1, 2).
    If False, it will not.
    The default is False.
ipython: boolean or None
    If True, printing will initialize for an IPython console;
    if False, printing will initialize for a normal console;
    The default is None, which automatically determines whether we are in
    an ipython instance or not.
str_printer: function, optional, default=None
    A custom string printer function. This should mimic
    sympy.printing.sstrrepr().
pretty_printer: function, optional, default=None
    A custom pretty printer. This should mimic sympy.printing.pretty().
latex_printer: function, optional, default=None
    A custom LaTeX printer. This should mimic sympy.printing.latex()
    This should mimic sympy.printing.latex().
argv: list of arguments for IPython
    See sympy.bin.isympy for options that can be used to initialize IPython.

See Also
========

sympy.interactive.printing.init_printing: for examples and the rest of the parameters.


Examples
========

>>> from sympy import init_session, Symbol, sin, sqrt
>>> sin(x) #doctest: +SKIP
NameError: name 'x' is not defined
>>> init_session() #doctest: +SKIP
>>> sin(x) #doctest: +SKIP
sin(x)
>>> sqrt(5) #doctest: +SKIP
  ___
\/ 5
>>> init_session(pretty_print=False) #doctest: +SKIP
>>> sqrt(5) #doctest: +SKIP
sqrt(5)
>>> y + x + y**2 + x**2 #doctest: +SKIP
x**2 + x + y**2 + y
>>> init_session(order='grlex') #doctest: +SKIP
>>> y + x + y**2 + x**2 #doctest: +SKIP
x**2 + y**2 + x + y
>>> init_session(order='grevlex') #doctest: +SKIP
>>> y * x**2 + x * y**2 #doctest: +SKIP
x**2*y + x*y**2
>>> init_session(order='old') #doctest: +SKIP
>>> x**2 + y**2 + x + y #doctest: +SKIP
x + y + x**2 + y**2
>>> theta = Symbol('theta') #doctest: +SKIP
>>> theta #doctest: +SKIP
theta
>>> init_session(use_unicode=True) #doctest: +SKIP
>>> theta # doctest: +SKIP
Î¸
NF)Úget_ipythonTz'IPython is not available on this system)r€   r�   r‚   rw   Úexecc                 ó(   <€ SP                  V R 4      # )F)rU   )ÚsrcrZ   Úips   &&€r+   Ú<lambda>Úinit_session.<locals>.<lambda>«  s   ø€ °b·k±kÀ#ÀuÔ6Mr-   )Ú
import_allzKautomatic construction of symbols is possible only in IPython 0.11 or abovezQautomatic int to Integer transformation is possible only in IPython 0.11 or above)rZ   )Úpretty_printÚorderÚuse_unicodeÚ	use_latexr­   Ústr_printerÚpretty_printerÚlatex_printerzExiting ...c                  ó   € \        R 4      # )zExiting ...
)Úprintr�   r-   r+   r®   r¯   Ï  s	   € ¤ oÔ 6r-   )rª   )r   r   r©   r™   ÚRuntimeErrorÚboolr§   Úinteractr„   r   r   Ú	runsourceÚenable_pylabÚ	ExceptionÚmainloopr   r   r,   r¹   ÚexitrŽ   r—   )r   r±   r²   r³   r´   r    r�   r‚   rµ   r¶   r·   r€   r   Ú
in_ipythonr   r©   rÀ   Ú_preexec_sourcer'   rŽ   r­   s   &&&&&&&&&&&&        @r+   Úinit_sessionrÄ   ,  sÃ  ø€ ó~ à€Jà�eÓð	ÛðÝ/Ù “]�ô ˜"“Xˆ
ØŠ?Ø ˆGà�%ÓÜ Ó"ˆØ—;‘;‰ä! "¨4Ø6IôKˆô ˜×,Ñ,Ó-´¸vÓ1FÔFö NˆBŒLðØ—‘¨5�Ô1÷ Ø—{‘{ˆHçŸW¬°g×6IÑ6IÓ(JÌ]Ð[aÓMbÔ(bÜÐhÓiÐiß§G¬}¸W×=PÑ=PÓ/QÔTaÐbhÓTiÔ/iÜÐnÓoÐoä$€Oà‡L�L�¨€LÔ0Ü˜|Ø)À2Ø)Ø -õ/ô
 ˜G¨OÓ<€GçÜˆgŒÙŒ
Ø�‰�ÖäˆgŒÛØ�‰Ñ6Ö7øôk ô Ø“ðûô ô 	Ø˜$‹Ü"Ð#LÓMÐMØ‹Bð	ûô< ô ò
 ðús4   �G	 ”F5 ÂG. Æ5GÇGÇ	G+Ç*G+Ç.G=Ç<G=)TFN)r¢   Úsympy.external.gmpyr   Úsympy.external.importtoolsr   Úsympy.interactive.printingr   Úsympy.utilities.miscr   r   r   Ú
no_ipythonr,   rI   rW   ru   r„   r§   rÄ   r�   r-   r+   Ú<module>rÊ      s}   ðÙ 1å ,Ý 4å 4å %ð€ð€ð€
ô3òl1òh!ò0D1ðN  $¨"¸5ÐV[ô "òB ðF ¨D¸Ø!¨T¸ÈUØ%*¸ÈTØ#¨"öc8r-   