PageRenderTime 57ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/features.html

https://github.com/asmeurer/sympy.github.com
HTML | 347 lines | 327 code | 20 blank | 0 comment | 0 complexity | 8653a61b13d1befe88d9367ddc5d7771 MD5 | raw file
  1. {% extends "base.html" %}
  2. {% block title %}{% trans %}Features{% endtrans %}{% endblock %}
  3. {% block content %}
  4. <h2 class="title">{% trans %}Features{% endtrans %}</h2>
  5. <div class="inner">
  6. <div class="dropdown">
  7. <h3>{% trans %}Core capabilities{% endtrans %}</h3>
  8. <div>
  9. <p><a href="https://docs.sympy.org/latest/modules/core.html">{% trans %}Documentation{% endtrans %}</a></p>
  10. <ul>
  11. <li><strong>{% trans %}Basic arithmetic:{% endtrans %}</strong> <a href="https://www.sympygamma.com/input/?i=23+pi+%2B+20%21+%2F+%283**5%29+-+2">{% trans %}Support for operators such
  12. as <code>+</code>, <code>-</code>, <code>*</code>, <code>/</code>, <code>**</code> (power){% endtrans %}</a></li>
  13. <li> <strong>{% trans %}Simplification{% endtrans %}</strong>
  14. <a href="https://www.sympygamma.com/input/?i=simplify%28cos%28x%29cos%28y%29+-+sin%28x%29sin%28y%29%29">{% trans %}Trigonometry{% endtrans %}</a>, <a href="https://www.sympygamma.com/input/?i=simplify%28%282x%2B3%29%2810x-5%29%2F%282x-1%29%29">{% trans %}Polynomials</a>{% endtrans %}</li>
  15. <li><strong>{% trans %}Expansion:{% endtrans
  16. %}</strong>
  17. <a href="https://www.sympygamma.com/input/?i=expand%28%285x+%2B+3%29*%281-x%29*%281%2B6x%29%29">{% trans %} of a polynomial {% endtrans %}</a></li>
  18. <li><strong>{% trans %}Functions:{% endtrans %}</strong>
  19. {% trans
  20. trig='https://www.sympygamma.com/input/?i=%281+-+sin%5E2+x%29%2F%281+%2B+tan%5E2+x%29',
  21. hyperbolic='https://www.sympygamma.com/input/?i=sinh%5E2+x+%2B+cosh%5E2+x',
  22. exponential='https://www.sympygamma.com/input/?i=exp%28x%29+%2F+%281+%2B+exp%282x%29%29',
  23. root='https://www.sympygamma.com/input/?i=root%28x%2C+7%29+**+2',
  24. logarithm='https://www.sympygamma.com/input/?i=log%28-25%29',
  25. abs='https://www.sympygamma.com/input/?i=Abs%281+%2B+3I%29',
  26. spherical='https://www.sympygamma.com/input/?i=Ylm%281%2C+-1%2C+theta%2C+phi%29',
  27. factorial='https://www.sympygamma.com/input/?i=gamma%2841%2F2%29+%2B+16%21%21',
  28. zeta='https://www.sympygamma.com/input/?i=zeta%284%29',
  29. polynomial='https://www.sympygamma.com/input/?i=x**7+-+x**5+%2B+4x**3+%2B+1',
  30. special='https://live.sympy.org/?evaluate=from%20sympy.abc%20import%20n%2Ca%2Cb%2Cx%0A%23--%0Ajacobi(0%2C%20a%2C%20b%2C%20x)%0A%23--%0Ajacobi(1%2C%20a%2C%20b%2C%20x)%0A%23--%0Ajacobi(2%2C%20a%2C%20b%2C%20x)%0A%23--%0Ajacobi(n%2C%20a%2C%20a%2C%20x)%0A%23--%0Ajacobi(n%2C%20a%2C%20b%2C%200)%0A%23--%0Aconjugate(jacobi(n%2C%20a%2C%20b%2C%20x))%0A%23--%0Aerf(I*oo)%0A%23--%0ADiracDelta(x**2%20%2B%20x%20-%202).simplify(x)%0A%23--%0A' %}
  31. <a href="{{ trig }}">trigonometric</a>,
  32. <a href="{{ hyperbolic }}">hyperbolic</a>,
  33. <a href="{{ exponential }}">exponential</a>,
  34. <a href="{{ root }}">roots</a>,
  35. <a href="{{ logarithm }}">logarithms</a>,
  36. <a href="{{ abs }}">absolute value</a>,
  37. <a href="{{ spherical }}">spherical harmonics</a>,
  38. <a href="{{ factorial }}">factorials and gamma functions</a>,
  39. <a href="{{ zeta }}">zeta functions</a>,
  40. <a href="{{ polynomial }}">polynomials</a>,
  41. <a href="{{ special }}">special functions</a>, ...{% endtrans %}
  42. </li>
  43. <li><strong>{% trans %}Substitution:{% endtrans %}</strong> <a href="https://www.sympygamma.com/input/?i=%28exp%28x%29+%2F+%281+%2B+exp%282x%29%29%29.subs%28exp%28x%29%2C+u%29">{% trans %}example{% endtrans %}</a></li>
  44. <li><strong>{% trans %}Numbers:{% endtrans %}</strong>
  45. {% trans
  46. integer='https://www.sympygamma.com/input/?i=100%21',
  47. rational='https://www.sympygamma.com/input/?i=0.%5B13579%5D',
  48. float='https://www.sympygamma.com/input/?i=exp%2820%21%29'
  49. %}
  50. <a href="{{ integer }}">arbitrary precision integers</a>,
  51. <a href="{{ rational }}">rationals</a>,
  52. <a href="{{ float }}">and floats</a>
  53. {% endtrans %}
  54. </li>
  55. <li><strong>{% trans %}Noncommutative symbols{% endtrans %}</strong></li>
  56. <li><strong>{% trans %}Pattern matching{% endtrans %}</strong></li>
  57. </ul>
  58. </div>
  59. </div>
  60. <div class="dropdown">
  61. <h3>{% trans %}Polynomials{% endtrans %}</h3>
  62. <div>
  63. <p><a href="https://docs.sympy.org/latest/modules/polys/index.html">{% trans %}Documentation{% endtrans %}</a></p>
  64. <ul>
  65. <li><strong>{% trans %}Basic arithmetic:{% endtrans %}</strong> {% trans %} division, gcd, ... {% endtrans %}</li>
  66. <li><strong>{% trans %}Factorization{% endtrans %}</strong></li>
  67. <li><strong>{% trans %}Square-free decomposition{% endtrans %}</strong></li>
  68. <li><strong>{% trans %}Gröbner bases{% endtrans %}</strong></li>
  69. <li><strong>{% trans %}Partial fraction decomposition{% endtrans %}</strong></li>
  70. <li><strong>{% trans %}Resultants{% endtrans %}</strong></li>
  71. </ul>
  72. </div>
  73. </div>
  74. <div class="dropdown">
  75. <h3>{% trans %}Calculus{% endtrans %}</h3>
  76. <div>
  77. <p><a href="https://docs.sympy.org/latest/modules/integrals/integrals.html">{% trans %}Integration Documentation{% endtrans %}</a></p>
  78. <ul>
  79. <li>
  80. <strong>{% trans %}Limits:{% endtrans %}</strong>
  81. <a href="https://www.sympygamma.com/input/?i=limit%28x*log%28x%29%2C+x%2C+0%29">limit(x*log(x), x, 0) -&gt; 0</a>
  82. </li>
  83. <li>
  84. <strong>{% trans %}Differentiation{% endtrans %}</strong>
  85. </li>
  86. <li>
  87. <strong>{% trans %}Integration:{% endtrans %}</strong>
  88. {% trans %}It uses extended Risch-Norman heuristic{% endtrans %}
  89. </li>
  90. <li><strong>{% trans %}Taylor (Laurent) series{% endtrans %}</strong></li>
  91. </ul>
  92. </div>
  93. </div>
  94. <div class="dropdown">
  95. <h3>{% trans %}Solving equations{% endtrans %}</h3>
  96. <div>
  97. <p><a href="https://docs.sympy.org/latest/modules/solvers/solvers.html">{% trans %}Documentation{% endtrans %}</a></p>
  98. <ul>
  99. <li><strong>{% trans %}Polynomial equations{% endtrans %}</strong></li>
  100. <li><strong>{% trans %}Algebraic equations{% endtrans %}</strong></li>
  101. <li><strong>{% trans %}Differential equations{% endtrans %}</strong></li>
  102. <li><strong>{% trans %}Difference equations{% endtrans %}</strong></li>
  103. <li><strong>{% trans %}Systems of equations{% endtrans %}</strong></li>
  104. <li><strong>{% trans %}Diophantine equations:{% endtrans %}</strong> <a href="https://www.sympygamma.com/input/?i=diophantine%28x%2A%2A2%20-%204%2Ax%2Ay%20%2B%208%2Ay%2A%2A2%20-%203%2Ax%20%2B%207%2Ay%20-%205%29">x<sup>2</sup> &#8722; 4xy + 8y<sup>2</sup> &#8722; 3x + 7y = 5</a>, <a href="https://www.sympygamma.com/input/?i=diophantine%282%2Ax%20%2B%203%2Ay%20-%205%29">2x + 3y = 5</a></li>
  105. </ul>
  106. </div>
  107. </div>
  108. <div class="dropdown">
  109. <h3>{% trans %}Combinatorics{% endtrans %}</h3>
  110. <div>
  111. <p><a href="https://docs.sympy.org/latest/modules/combinatorics/index.html">{% trans %}Documentation{% endtrans %}</a></p>
  112. <ul>
  113. <li><strong>{% trans %}Permutations{% endtrans %}</strong></li>
  114. <li><strong>{% trans %}Combinations{% endtrans %}</strong></li>
  115. <li><strong>{% trans %}Partitions{% endtrans %}</strong></li>
  116. <li><strong>{% trans %}Subsets{% endtrans %}</strong></li>
  117. <li><strong>{% trans %}Permutation Groups{% endtrans %}</strong>: Polyhedral, Rubik, Symmetric, ...</li>
  118. <li><strong>{% trans %}Prufer and Gray Codes{% endtrans %}</strong></li>
  119. </ul>
  120. </div>
  121. </div>
  122. <div class="dropdown">
  123. <h3>{% trans %}Discrete math{% endtrans %}</h3>
  124. <div>
  125. <ul>
  126. <li><strong>{% trans %}Binomial coefficients{% endtrans %}</strong></li>
  127. <li><strong>{% trans %}Summations{% endtrans %}</strong></li>
  128. <li><strong>{% trans %}Products{% endtrans %}</strong></li>
  129. <li><strong>{% trans %}Number theory:{% endtrans %}</strong> {% trans
  130. %}generating prime numbers, primality testing, integer factorization, Diophantine equation solving... {% endtrans %}</li>
  131. <li><strong>{% trans %}Logic expressions{% endtrans %}</strong></li>
  132. </ul>
  133. </div>
  134. </div>
  135. <div class="dropdown">
  136. <h3>{% trans %}Matrices{% endtrans %}</h3>
  137. <div>
  138. <p><a href="https://docs.sympy.org/latest/modules/matrices/index.html">{% trans %}Documentation{% endtrans %}</a></p>
  139. <ul>
  140. <li><strong>{% trans %}Basic arithmetic{% endtrans %}</strong></li>
  141. <li><strong>{% trans %}Eigenvalues/eigenvectors{% endtrans %}</strong></li>
  142. <li><strong>{% trans %}Determinants{% endtrans %}</strong></li>
  143. <li><strong>{% trans %}Inversion{% endtrans %}</strong></li>
  144. <li><strong>{% trans %}Solving{% endtrans %}</strong></li>
  145. <li><strong>{% trans %}Abstract expressions{% endtrans %}</strong></li>
  146. </ul>
  147. </div>
  148. </div>
  149. <div class="dropdown">
  150. <h3>{% trans %}Geometry{% endtrans %}</h3>
  151. <div>
  152. <p><a href="https://docs.sympy.org/latest/modules/geometry/index.html">{% trans %}Documentation{% endtrans %}</a></p>
  153. <ul>
  154. <li><strong>{% trans %}points, lines, rays, segments, ellipses, circles,
  155. polygons, ...{% endtrans %}</strong></li>
  156. <li><strong>{% trans %}Intersection{% endtrans %}</strong></li>
  157. <li><strong>{% trans %}Tangency{% endtrans %}</strong></li>
  158. <li><strong>{% trans %}Similarity{% endtrans %}</strong></li>
  159. </ul>
  160. </div>
  161. </div>
  162. <div class="dropdown">
  163. <h3>{% trans %}Plotting{% endtrans %}</h3>
  164. <div>
  165. <p><a href="https://docs.sympy.org/latest/modules/plotting.html">{% trans %}Documentation{% endtrans %}</a></p>
  166. <ul>
  167. <li><strong>{% trans %}Coordinate modes{% endtrans %}</strong></li>
  168. <li><strong>{% trans %}Plotting Geometric Entities{% endtrans %}</strong></li>
  169. <li><strong>{% trans %}2D and 3D{% endtrans %}</strong></li>
  170. <li><strong>{% trans %}Interactive interface{% endtrans %}</strong></li>
  171. <li><strong>{% trans %}Colors{% endtrans %}</strong></li>
  172. <li><strong>{% trans %}Matplotlib support{% endtrans %}</strong></li>
  173. </ul>
  174. <section class="gallery">
  175. <figure>
  176. <img src="/static/images/main_features_examples/plotting1.png"
  177. alt="{% trans %}SymPy plot of sin(2 sin(2 sin(x))) with matplotlib{% endtrans %}" />
  178. <figcaption><code>plot(sin(2*sin(2*sin(x))))</code></figcaption>
  179. </figure>
  180. <figure>
  181. <img src="/static/images/main_features_examples/plotting2.png"
  182. alt="{% trans %}SymPy plot of x, x^2, and x^3, from x = -5 to 5{% endtrans %}" />
  183. <figcaption><code>plot(x, x**2, x**3, (x, -5, 5))</code></figcaption>
  184. </figure>
  185. <figure>
  186. <img src="/static/images/main_features_examples/plotting3.png"
  187. alt="{% trans %}SymPy parametric plot of x=cos(u), y=sin(u), from u = -5 to 5{% endtrans %}" />
  188. <figcaption><code>plot_parametric(cos(u), sin(u), (u, -5, 5))</code></figcaption>
  189. </figure>
  190. <figure>
  191. <img src="/static/images/main_features_examples/plotting4.png"
  192. alt="{% trans %}SymPy 3D surface plot of xy, from x = -5 to 5, from y = -5 to 5{% endtrans %}" />
  193. <figcaption><code>plot3d(x*y, (x, -5, 5), (y, -5, 5))</code></figcaption>
  194. </figure>
  195. <figure>
  196. <img src="/static/images/main_features_examples/plotting5.png"
  197. alt="{% trans %}SymPy 3D parametric line plot of x=cos(u), y=sin(u), z=u, from u = -5 to 5{% endtrans %}" />
  198. <figcaption><code>plot3d_parametric_line(cos(u), sin(u), u, (u, -5, 5))</code></figcaption>
  199. </figure>
  200. <figure>
  201. <img src="/static/images/main_features_examples/plotting6.png"
  202. alt="{% trans %}SymPy 3D parametric surface plot of x=cos(u+v), y=sin(u-v), z=u-v, u and v from -5 to 5{% endtrans %}" />
  203. <figcaption><code>plot3d_parametric_surface(cos(u + v), sin(u - v), u - v, (u, -5, 5), (v, -5, 5))</code></figcaption>
  204. </figure>
  205. <figure>
  206. <img src="/static/images/main_features_examples/plotting7.png"
  207. alt="{% trans %}SymPy implicit plot of x^2 + y^2 = 5{% endtrans %}" />
  208. <figcaption><code>plot_implicit(Eq(x**2 + y**2, 5))</code></figcaption>
  209. </figure>
  210. <figure>
  211. <img src="/static/images/main_features_examples/plotting8.png"
  212. alt="{% trans %}SymPy implicit plot of y &gt; x^2{% endtrans %}" />
  213. <figcaption><code>plot_implicit(y > x**2)</code></figcaption>
  214. </figure>
  215. <figure>
  216. <img src="/static/images/main_features_examples/plotting9.png"
  217. alt="{% trans %}SymPy implicit plot of y &gt; x (logical and) y &gt; -x{% endtrans %}" />
  218. <figcaption><code>plot_implicit(And(y &gt; x, y &gt; -x))</code></figcaption>
  219. </figure>
  220. <figure>
  221. <img src="/static/images/main_features_examples/plotting10.png"
  222. alt="{% trans %}Matplotlib interactive interface of SymPy 3D parametric surface plot of x=cos(u+v), y=sin(u-v), z=u-v, u and v from -5 to 5{% endtrans %}" />
  223. <figcaption><code>plot3d_parametric_surface(cos(u + v), sin(u - v), u - v, (u, -5, 5), (v, -5, 5))</code></figcaption>
  224. </figure>
  225. <figure>
  226. <img src="/static/images/main_features_examples/plotting11.png"
  227. alt="{% trans %}SymPy Gamma plot of x=cos(t), y=sin(t){% endtrans %}" />
  228. <figcaption>{% trans %}SymPy Gamma plot{% endtrans %}</figcaption>
  229. </figure>
  230. </section>
  231. </div>
  232. </div>
  233. <div class="dropdown">
  234. <h3>{% trans %}Physics{% endtrans %}</h3>
  235. <div>
  236. <p><a href="https://docs.sympy.org/latest/modules/physics/index.html">{% trans %}Documentation{% endtrans %}</a></p>
  237. <ul>
  238. <li><strong>{% trans %}Units{% endtrans %}</strong></li>
  239. <li><strong>{% trans %}Mechanics{% endtrans %}</strong></li>
  240. <li><strong>{% trans %}Quantum{% endtrans %}</strong></li>
  241. <li><strong>{% trans %}Gaussian Optics{% endtrans %}</strong></li>
  242. <li><strong>{% trans %}Pauli Algebra{% endtrans %}</strong></li>
  243. </ul>
  244. <h4>{% trans %}IPython Notebook Examples{% endtrans %}</h4>
  245. <ul>
  246. <li><a href="https://nbviewer.ipython.org/github/pydy/pydy/blob/master/examples/tutorials/beginner.ipynb">{% trans %}Beginner Tutorial for SymPy Mechanics{% endtrans %}</a></li>
  247. <li><a href="https://nbviewer.jupyter.org/github/pydy/pydy_examples/blob/master/mass_spring_damper/mass_spring_damper.ipynb">{% trans %}Deriving the Mass-Spring-Damper System with SymPy{% endtrans %}</a></li>
  248. <li><a href="https://nbviewer.ipython.org/gist/rpmuller/5843312">{% trans %}Quantum Circuit Plotting with SymPy{% endtrans %}</a></li>
  249. </ul>
  250. </div>
  251. </div>
  252. <div class="dropdown">
  253. <h3>{% trans %}Statistics{% endtrans %}</h3>
  254. <div>
  255. <p><a href="https://docs.sympy.org/latest/modules/stats.html">{% trans %}Documentation{% endtrans %}</a></p>
  256. <ul>
  257. <li><strong>{% trans %}Random variable types:{% endtrans %}</strong>
  258. <ul>
  259. <li><strong>{% trans %}Normal distributions{% endtrans %}</strong></li>
  260. <li><strong>{% trans %}Uniform distributions{% endtrans %}</strong></li>
  261. <li><strong>{% trans %}Bernoulli distributions{% endtrans %}</strong></li>
  262. <li><strong>{% trans %}Binomial distributions{% endtrans %}</strong></li>
  263. <li><strong>{% trans %}Hypergeometric distributions{% endtrans %}</strong></li>
  264. <li><a href="https://docs.sympy.org/latest/modules/stats.html#random-variable-types">{% trans %}More&hellip;{% endtrans %}</a>
  265. </ul>
  266. </li>
  267. <li><strong>{% trans %}Probability{% endtrans %}</strong></li>
  268. <li><strong>{% trans %}Expected value and variance{% endtrans %}</strong></li>
  269. <li><strong>{% trans %}Probability density{% endtrans %}</strong></li>
  270. </ul>
  271. </div>
  272. </div>
  273. <div class="dropdown">
  274. <h3>{% trans %}Cryptography{% endtrans %}</h3>
  275. <div>
  276. <p><a href="https://docs.sympy.org/latest/modules/crypto.html">{% trans %}Documentation{% endtrans %}</a></p>
  277. <ul>
  278. <li><strong>{% trans %}Shift cipher{% endtrans %}</strong></li>
  279. <li><strong>{% trans %}Affine cipher{% endtrans %}</strong></></li>
  280. <li><strong>{% trans %}Bifid ciphers{% endtrans %}</strong></></li>
  281. <li><strong>{% trans %}Vigeneres cipher{% endtrans %}</strong></></li>
  282. <li><strong>{% trans %}Substitution ciphers{% endtrans %}</strong></></li>
  283. <li><strong>{% trans %}Hills cipher{% endtrans %}</strong></></li>
  284. <li><strong>{% trans %}RSA{% endtrans %}</strong></></li>
  285. <li><strong>{% trans %}Kid RSA{% endtrans %}</strong></></li>
  286. <li><strong>{% trans %}Linear feedback shift registers{% endtrans %}</strong></></li>
  287. <li><strong>{% trans %}ElGamal encryption{% endtrans %}</strong></></li>
  288. </ul>
  289. </div>
  290. </div>
  291. <div class="dropdown">
  292. <h3>{% trans %}Parsing{% endtrans %}</h3>
  293. <div>
  294. <p><a href="https://docs.sympy.org/latest/modules/parsing.html">{% trans %}Documentation{% endtrans %}</a></p>
  295. <ul>
  296. <li><strong>{% trans %}Conversion from Python objects to SymPy objects{% endtrans %}</strong></li>
  297. <li><strong>{% trans %}Optional implicit multiplication and function application parsing{% endtrans %}</strong></li>
  298. <li><strong>{% trans %}Limited Mathematica and Maxima parsing:{% endtrans %}</strong> <a href="https://live.sympy.org/?evaluate=from%20sympy.parsing.mathematica%20import%20mathematica%0A%23--%0Afrom%20sympy.parsing.maxima%20import%20parse_maxima%0A%23--%0Amathematica(%27Sin%5Bx%5D%27)%0A%23--%0Aparse_maxima(%27sqrt(x%5E2)%27)%0A%23--%0A">{% trans %}example on SymPy Live{% endtrans %}</a></li>
  299. <li><strong>{% trans %}Custom parsing transformations{% endtrans %}</strong></li>
  300. </ul>
  301. </div>
  302. </div>
  303. <div class="dropdown">
  304. <h3>{% trans %}Printing{% endtrans %}</h3>
  305. <div>
  306. <p><a href="https://docs.sympy.org/latest/modules/printing.html">{% trans %}Documentation{% endtrans %}</a></p>
  307. <ul>
  308. <li><strong>{% trans %}Pretty printing:{% endtrans %}</strong> {% trans %}ASCII/Unicode pretty printing, LaTeX{% endtrans %}</li>
  309. <li><strong>{% trans %}Code generation:{% endtrans %}</strong> {% trans %}C, Fortran, Python{% endtrans %}</li>
  310. <li><strong>{% trans %}<a href="https://deeplearning.net/software/theano/">Theano</a> interaction{% endtrans %}</strong></li>
  311. </ul>
  312. <section class="gallery">
  313. <figure>
  314. <img src="/static/images/main_features_examples/printing1.png"
  315. alt="{% trans %}Unicode printing in a Python shell{% endtrans %}" />
  316. <figcaption>{% trans %}Unicode printing{% endtrans %}</figcaption>
  317. </figure>
  318. <figure>
  319. <img src="/static/images/main_features_examples/printing2.png"
  320. alt="{% trans %}LaTeX printing in an IPython notebook{% endtrans %}" />
  321. <figcaption>{% trans %}LaTeX printing{% endtrans %}</figcaption>
  322. </figure>
  323. </section>
  324. </div>
  325. </div>
  326. </div>
  327. {% endblock %}