Ë {£éfÇ+ãó:—dZddlZddlZdd„Zedk(re«yy)aÎ Python shell for SymPy. This is just a normal Python shell (IPython shell if you have the IPython package installed), that executes the following commands for the user: >>> from __future__ import division >>> 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() So starting 'isympy' is equivalent to starting Python (or IPython) and executing the above commands by hand. It is intended for easy and quick experimentation with SymPy. isympy is a good way to use SymPy as an interactive calculator. If you have IPython and Matplotlib installed, then interactive plotting is enabled by default. COMMAND LINE OPTIONS -------------------- -c CONSOLE, --console=CONSOLE Use the specified shell (Python or IPython) shell as the console backend instead of the default one (IPython if present, Python otherwise), e.g.: $isympy -c python CONSOLE must be one of 'ipython' or 'python' -p PRETTY, --pretty PRETTY Setup pretty-printing in SymPy. When pretty-printing is enabled, expressions can be printed with Unicode or ASCII. The default is to use pretty-printing (with Unicode if the terminal supports it). When this option is 'no', expressions will not be pretty-printed and ASCII will be used: $isympy -p no PRETTY must be one of 'unicode', 'ascii', or 'no' -t TYPES, --types=TYPES Setup the ground types for the polys. By default, gmpy ground types are used if gmpy2 or gmpy is installed, otherwise it falls back to python ground types, which are a little bit slower. You can manually choose python ground types even if gmpy is installed (e.g., for testing purposes): $isympy -t python TYPES must be one of 'gmpy', 'gmpy1' or 'python' Note that the ground type gmpy1 is primarily intended for testing; it forces the use of gmpy version 1 even if gmpy2 is available. This is the same as setting the environment variable SYMPY_GROUND_TYPES to the given ground type (e.g., SYMPY_GROUND_TYPES='gmpy') The ground types can be determined interactively from the variable sympy.polys.domains.GROUND_TYPES. -o ORDER, --order ORDER Setup the ordering of terms for printing. The default is lex, which orders terms lexicographically (e.g., x**2 + x + 1). You can choose other orderings, such as rev-lex, which will use reverse lexicographic ordering (e.g., 1 + x + x**2): $isympy -o rev-lex ORDER must be one of 'lex', 'rev-lex', 'grlex', 'rev-grlex', 'grevlex', 'rev-grevlex', 'old', or 'none'. Note that for very large expressions, ORDER='none' may speed up printing considerably but the terms will have no canonical order. -q, --quiet Print only Python's and SymPy's versions to stdout at startup. -d, --doctest Use the same format that should be used for doctests. This is equivalent to -c python -p no. -C, --no-cache Disable the caching mechanism. Disabling the cache may slow certain operations down considerably. This is useful for testing the cache, or for benchmarking, as the cache can result in deceptive timings. This is equivalent to setting the environment variable SYMPY_USE_CACHE to 'no'. -a, --auto-symbols (requires at least IPython 0.11) Automatically create missing symbols. Normally, typing a name of a Symbol that has not been instantiated first would raise NameError, but with this option enabled, any undefined name will be automatically created as a Symbol. Note that this is intended only for interactive, calculator style usage. In a script that uses SymPy, Symbols should be instantiated at the top, so that it's clear what they are. This will not override any names that are already defined, which includes the single character letters represented by the mnemonic QCOSINE (see the "Gotchas and Pitfalls" document in the documentation). You can delete existing names by executing "del name". If a name is defined, typing "'name' in dir()" will return True. The Symbols that are created using this have default assumptions. If you want to place assumptions on symbols, you should create them using symbols() or var(). Finally, this only works in the top level namespace. So, for example, if you define a function in isympy with an undefined Symbol, it will not work. See also the -i and -I options. -i, --int-to-Integer (requires at least IPython 0.11) Automatically wrap int literals with Integer. This makes it so that things like 1/2 will come out as Rational(1, 2), rather than 0.5. This works by preprocessing the source and wrapping all int literals with Integer. Note that this will not change the behavior of int literals assigned to variables, and it also won't change the behavior of functions that return int literals. If you want an int, you can wrap the literal in int(), e.g. int(3)/int(2) gives 1.5 (with division imported from __future__). -I, --interactive (requires at least IPython 0.11) This is equivalent to --auto-symbols --int-to-Integer. Future options designed for ease of interactive use may be added to this. -D, --debug Enable debugging output. This is the same as setting the environment variable SYMPY_DEBUG to 'True'. The debug status is set in the variable SYMPY_DEBUG within isympy. -- IPython options Additionally you can pass command line options directly to the IPython interpreter (the standard Python shell is not supported). However you need to add the '--' separator between two types of options, e.g the startup banner option and the colors option. You need to enter the options as required by the version of IPython that you are using, too: in IPython 0.11, $isympy -q -- --colors=NoColor or older versions of IPython, $isympy -q -- -colors NoColor See also isympy --help. éNc ó<—ddlm}m}d}dtjvrddl}|j }d}||t|¬«}|jdd|¬«|jdd d d dd d gdd¬«|jdddd ddgd¢d¬«|jdddd ddgd¢d¬«|jddd d dd!gd"¢d#¬«|jd$d%d&d'd(d)¬*«|jd+d,d-d'd(d.¬*«|jd/d0d1d2d3d4¬*«|jd5d6d7d'd(d8¬*«|jd9d:d;d'd(d<¬*«|jd=d>d?d'd(d@¬*«|jdAdBdCd'd(dD¬*«|j«\}}dE|vr|jdE«|jsdFtjdG<|jr|jtjdH<|jr&t!|j«tjdI<|j"rdF|_d |_|j&}||d k(} n ddl} d3} d3ddd|dKœ} |j$dLk(rd3| dM<n)|j$dNk(rd(| dM<n|j$dFk(rd(| dO<|j4|j4| d <|j,| d&<|j6xs |j8| d7<|j:xs |j8| d;<ddPlm} | | fi| ¤Žy#t*$r"|j,sddJlm} t3| «d(} YŒäwxYw)QNr)ÚArgumentParserÚRawDescriptionHelpFormatterz --versionz%isympy [options] -- [ipython options])ÚusageÚ descriptionÚformatter_classÚversion)Úactionr z-cz --consoleÚconsoleÚstoreÚipythonÚpythonÚCONSOLEzsselect type of interactive session: ipython | python; defaults to ipython if IPython is installed, otherwise python)Údestr ÚdefaultÚchoicesÚmetavarÚhelpz-pz--prettyÚprettyÚPRETTY)ÚunicodeÚasciiÚnozvsetup pretty printing: unicode | ascii | no; defaults to unicode printing if the terminal supports it, otherwise ascii)rr rrrrz-tz--typesÚtypesÚTYPES)ÚgmpyÚgmpy1rzksetup ground types: gmpy | gmpy1 | python; defaults to gmpy if gmpy2 or gmpy is installed, otherwise pythonz-oz--orderÚorderÚORDER)ÚlexÚgrlexÚgrevlexzrev-lexz rev-grlexz rev-grevlexÚoldÚnonez^setup ordering of terms: [rev-]lex | [rev-]grlex | [rev-]grevlex | old | none; defaults to lexz-qz--quietÚquietÚ store_trueFz)print only version information at startup)rr rrz-dz --doctestÚdoctestzBuse the doctest format for output (you can just copy and paste it)z-Cz --no-cacheÚcacheÚ store_falseTzdisable caching mechanismz-az--auto-symbolsÚ auto_symbolsz'automatically construct missing symbolsz-iz--int-to-IntegerÚauto_int_to_Integerz,automatically wrap int literals with Integerz-Iz --interactiveÚ interactivezequivalent to -a -iz-Dz--debugÚdebugzenable debugging outputz--rÚSYMPY_USE_CACHEÚSYMPY_GROUND_TYPESÚ SYMPY_DEBUG)Ú no_ipython)Ú pretty_printÚ use_unicodeÚ use_latexrÚargvrr3rr2)Ú init_session) ÚargparserrÚsysr5ÚsympyÚ __version__Ú__doc__Ú add_argumentÚparse_known_argsÚremover(ÚosÚenvironrr-Ústrr'rr ÚIPythonÚ ImportErrorr%Úsympy.interactive.sessionr1Úprintrr*r,r+Úsympy.interactiver6)rrÚVERSIONr9rÚparserÚoptionsÚipy_argsÚsessionr rBr1Úargsr6s úO/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/isympy.pyÚmainrN°sÀ€ßDà€GØ”c—h‘hÑó Ø×#Ñ#ˆà 3€EÙ ØÜØ3ô€Fð  ×ј ¨I¸wÐÔGà ×ÑØ ˆkØ ØØؘHÐ%Øð?ðô@ð ×ÑØ ˆjØ ØØØÚ*ðHðôIð ×ÑØ ˆiØ ØØØÚ+ð1ðô2ð ×ÑØ ˆiØ ØØØÚaØ mðôoð ×ÑØ ˆiØ ØØØ 8ð ô:ð ×ÑØ ˆkØ ØØØ Qð ôSð ×ÑØ ˆlØ ØØØ (ð ô*ð ×ÑØ ÐØ ØØØ 6ð ô8ð ×ÑØ Ð Ø "ØØØ ;ð ô=ð ×ÑØ ˆoØ ØØØ "ð ô$ð ×ÑØ ˆiØ ØØØ &ð ô(ð!×1Ñ1Ó3Ñ€WˆhØ ˆxÑ؉˜Ôà =Š=Ø(,Œ ‰ Ð$Ñ%à‡}‚}Ø+2¯=©=Œ ‰ Ð'Ñ(à‡}‚}Ü$'¨¯ © Ó$6Œ ‰ =Ñ!à‡‚ØˆŒØ"ˆŒào‰o€GàÐؘYÑ&‰ð Û ØˆGðØØØØ ñ  €Dð‡~~˜Ò"Ø"ˆˆ]ÒØ ‰˜7Ò "Ø#ˆˆ]ÒØ ‰˜4Ò Ø$ˆˆ^Ñà‡}}Ð ØŸ ™ ˆˆW‰ à—M‘M€DˆMØ"×/Ñ/ÒF°7×3FÑ3F€DˆÑØ")×"=Ñ"=Ò"TÀ×ATÑAT€DÐ Ñå.ÙÑ!˜DÓ!øô;ò Ø—=’=Ý@ÜjÔ!ØŠGð  úsÈ0K0Ë0(LÌLÚ__main__)ÚreturnN)r;r?r8rNÚ__name__©órMúrTs/ðñgóR Û ó c"ðJ ˆzÒÙ…FðrS