m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

188 lines
6.5 KiB

6 months ago
  1. '\" -*- coding: us-ascii -*-
  2. .if \n(.g .ds T< \\FC
  3. .if \n(.g .ds T> \\F[\n[.fam]]
  4. .de URL
  5. \\$2 \(la\\$1\(ra\\$3
  6. ..
  7. .if \n(.g .mso www.tmac
  8. .TH isympy 1 2007-10-8 "" ""
  9. .SH NAME
  10. isympy \- interactive shell for SymPy
  11. .SH SYNOPSIS
  12. 'nh
  13. .fi
  14. .ad l
  15. \fBisympy\fR \kx
  16. .if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
  17. 'in \n(.iu+\nxu
  18. [\fB-c\fR | \fB--console\fR] [\fB-p\fR ENCODING | \fB--pretty\fR ENCODING] [\fB-t\fR TYPE | \fB--types\fR TYPE] [\fB-o\fR ORDER | \fB--order\fR ORDER] [\fB-q\fR | \fB--quiet\fR] [\fB-d\fR | \fB--doctest\fR] [\fB-C\fR | \fB--no-cache\fR] [\fB-a\fR | \fB--auto\fR] [\fB-D\fR | \fB--debug\fR] [
  19. -- | PYTHONOPTIONS]
  20. 'in \n(.iu-\nxu
  21. .ad b
  22. 'hy
  23. 'nh
  24. .fi
  25. .ad l
  26. \fBisympy\fR \kx
  27. .if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
  28. 'in \n(.iu+\nxu
  29. [
  30. {\fB-h\fR | \fB--help\fR}
  31. |
  32. {\fB-v\fR | \fB--version\fR}
  33. ]
  34. 'in \n(.iu-\nxu
  35. .ad b
  36. 'hy
  37. .SH DESCRIPTION
  38. isympy is a Python shell for SymPy. It is just a normal python shell
  39. (ipython shell if you have the ipython package installed) that executes
  40. the following commands so that you don't have to:
  41. .PP
  42. .nf
  43. \*(T<
  44. >>> from __future__ import division
  45. >>> from sympy import *
  46. >>> x, y, z = symbols("x,y,z")
  47. >>> k, m, n = symbols("k,m,n", integer=True)
  48. \*(T>
  49. .fi
  50. .PP
  51. So starting isympy is equivalent to starting python (or ipython) and
  52. executing the above commands by hand. It is intended for easy and quick
  53. experimentation with SymPy. For more complicated programs, it is recommended
  54. to write a script and import things explicitly (using the "from sympy
  55. import sin, log, Symbol, ..." idiom).
  56. .SH OPTIONS
  57. .TP
  58. \*(T<\fB\-c \fR\*(T>\fISHELL\fR, \*(T<\fB\-\-console=\fR\*(T>\fISHELL\fR
  59. Use the specified shell (python or ipython) as
  60. console backend instead of the default one (ipython
  61. if present or python otherwise).
  62. Example: isympy -c python
  63. \fISHELL\fR could be either
  64. \&'ipython' or 'python'
  65. .TP
  66. \*(T<\fB\-p \fR\*(T>\fIENCODING\fR, \*(T<\fB\-\-pretty=\fR\*(T>\fIENCODING\fR
  67. Setup pretty printing in SymPy. By default, the most pretty, unicode
  68. printing is enabled (if the terminal supports it). You can use less
  69. pretty ASCII printing instead or no pretty printing at all.
  70. Example: isympy -p no
  71. \fIENCODING\fR must be one of 'unicode',
  72. \&'ascii' or 'no'.
  73. .TP
  74. \*(T<\fB\-t \fR\*(T>\fITYPE\fR, \*(T<\fB\-\-types=\fR\*(T>\fITYPE\fR
  75. Setup the ground types for the polys. By default, gmpy ground types
  76. are used if gmpy2 or gmpy is installed, otherwise it falls back to python
  77. ground types, which are a little bit slower. You can manually
  78. choose python ground types even if gmpy is installed (e.g., for testing purposes).
  79. Note that sympy ground types are not supported, and should be used
  80. only for experimental purposes.
  81. Note that the gmpy1 ground type is primarily intended for testing; it the
  82. use of gmpy even if gmpy2 is available.
  83. This is the same as setting the environment variable
  84. SYMPY_GROUND_TYPES to the given ground type (e.g.,
  85. SYMPY_GROUND_TYPES='gmpy')
  86. The ground types can be determined interactively from the variable
  87. sympy.polys.domains.GROUND_TYPES inside the isympy shell itself.
  88. Example: isympy -t python
  89. \fITYPE\fR must be one of 'gmpy',
  90. \&'gmpy1' or 'python'.
  91. .TP
  92. \*(T<\fB\-o \fR\*(T>\fIORDER\fR, \*(T<\fB\-\-order=\fR\*(T>\fIORDER\fR
  93. Setup the ordering of terms for printing. The default is lex, which
  94. orders terms lexicographically (e.g., x**2 + x + 1). You can choose
  95. other orderings, such as rev-lex, which will use reverse
  96. lexicographic ordering (e.g., 1 + x + x**2).
  97. Note that for very large expressions, ORDER='none' may speed up
  98. printing considerably, with the tradeoff that the order of the terms
  99. in the printed expression will have no canonical order
  100. Example: isympy -o rev-lax
  101. \fIORDER\fR must be one of 'lex', 'rev-lex', 'grlex',
  102. \&'rev-grlex', 'grevlex', 'rev-grevlex', 'old', or 'none'.
  103. .TP
  104. \*(T<\fB\-q\fR\*(T>, \*(T<\fB\-\-quiet\fR\*(T>
  105. Print only Python's and SymPy's versions to stdout at startup, and nothing else.
  106. .TP
  107. \*(T<\fB\-d\fR\*(T>, \*(T<\fB\-\-doctest\fR\*(T>
  108. Use the same format that should be used for doctests. This is
  109. equivalent to '\fIisympy -c python -p no\fR'.
  110. .TP
  111. \*(T<\fB\-C\fR\*(T>, \*(T<\fB\-\-no\-cache\fR\*(T>
  112. Disable the caching mechanism. Disabling the cache may slow certain
  113. operations down considerably. This is useful for testing the cache,
  114. or for benchmarking, as the cache can result in deceptive benchmark timings.
  115. This is the same as setting the environment variable SYMPY_USE_CACHE
  116. to 'no'.
  117. .TP
  118. \*(T<\fB\-a\fR\*(T>, \*(T<\fB\-\-auto\fR\*(T>
  119. Automatically create missing symbols. Normally, typing a name of a
  120. Symbol that has not been instantiated first would raise NameError,
  121. but with this option enabled, any undefined name will be
  122. automatically created as a Symbol. This only works in IPython 0.11.
  123. Note that this is intended only for interactive, calculator style
  124. usage. In a script that uses SymPy, Symbols should be instantiated
  125. at the top, so that it's clear what they are.
  126. This will not override any names that are already defined, which
  127. includes the single character letters represented by the mnemonic
  128. QCOSINE (see the "Gotchas and Pitfalls" document in the
  129. documentation). You can delete existing names by executing "del
  130. name" in the shell itself. You can see if a name is defined by typing
  131. "'name' in globals()".
  132. The Symbols that are created using this have default assumptions.
  133. If you want to place assumptions on symbols, you should create them
  134. using symbols() or var().
  135. Finally, this only works in the top level namespace. So, for
  136. example, if you define a function in isympy with an undefined
  137. Symbol, it will not work.
  138. .TP
  139. \*(T<\fB\-D\fR\*(T>, \*(T<\fB\-\-debug\fR\*(T>
  140. Enable debugging output. This is the same as setting the
  141. environment variable SYMPY_DEBUG to 'True'. The debug status is set
  142. in the variable SYMPY_DEBUG within isympy.
  143. .TP
  144. -- \fIPYTHONOPTIONS\fR
  145. These options will be passed on to \fIipython (1)\fR shell.
  146. Only supported when ipython is being used (standard python shell not supported).
  147. Two dashes (--) are required to separate \fIPYTHONOPTIONS\fR
  148. from the other isympy options.
  149. For example, to run iSymPy without startup banner and colors:
  150. isympy -q -c ipython -- --colors=NoColor
  151. .TP
  152. \*(T<\fB\-h\fR\*(T>, \*(T<\fB\-\-help\fR\*(T>
  153. Print help output and exit.
  154. .TP
  155. \*(T<\fB\-v\fR\*(T>, \*(T<\fB\-\-version\fR\*(T>
  156. Print isympy version information and exit.
  157. .SH FILES
  158. .TP
  159. \*(T<\fI${HOME}/.sympy\-history\fR\*(T>
  160. Saves the history of commands when using the python
  161. shell as backend.
  162. .SH BUGS
  163. The upstreams BTS can be found at \(lahttps://github.com/sympy/sympy/issues\(ra
  164. Please report all bugs that you find in there, this will help improve
  165. the overall quality of SymPy.
  166. .SH "SEE ALSO"
  167. \fBipython\fR(1), \fBpython\fR(1)