4 ms·
How does it compare to sage math? I used sage math today and was pleasantly surprised. Even has a latex option. If you name your variables correctly, it even ou
by smabie 6y ago
How does it compare to sage math? I used sage math today and was pleasantly surprised. Even has a latex option. If you name your variables correctly, it even outputs Greek symbols and subscript correctly!
- jbay808 6y agoTry sympy.latex(expr). You can output latex using Sympy too!
- sundarurfriend 6y agoUser 29athrowaway mentions in another comment that they use Sympy through Sagemath, so they probably could answer your question best. It sounds like Sympy is a subset of what Sage offers, but I'm not familiar enough with either tool to know.
- westurner 6y agoThere's a lot of overlap and there are syntactical differences. SymPy is included in the CoCalc image. SageMath is now conda-installable. Things that the SageMath CAS can do that SymPy cannot yet: - solve multivariate systems of inequalities
- Naac 6y agoAs per the Sage FAQ[0], Sage uses Maxima for its symbolic and numerical computation: http://maxima.sourceforge.net/ http://maxima.sourceforge.net/ [0] https://doc.sagemath.org/html/en/faq/faq-general.html#why-did-you-write-sage-from-scratch-instead-of-using-other-existing-software-and-or-libraries https://doc.sagemath.org/html/en/faq/faq-general.html#why-di...
- ducttapecrown 6y agoI have Sympy set up to do latex printing in my Jupyter notebooks with Greek symbols and subscripts etc.
- magv 6y agoAs one point of comparison, SymPy is comically slow compared to Sage. This is mostly because SymPy is purely Python; Sage on the other hand uses its own derivative of GiNaC [1], Pynac [2], for its internal symbolic expression representation, and then multiple external libraries for non-trivial operations. Symbolic transformations are mostly Maxima [3], for example. Sage literally converts expressions to strings, pipes them through a Maxima process, and then parses the result back. This is still much faster than the pure Python SymPy. There is an effort to speed up SymPy core, SymEngine [4], but it's been in development for years now, and still isn't integrated into SymPy. Not sure why. Case in point: 'expand("(2 + 3 * x + 4 * x * y)^60")' takes 5 seconds with SymPy; Sage (Pynac) does the same in 0.02 seconds. [1] https://www.ginac.de/ https://www.ginac.de/ [2] http://pynac.org/ http://pynac.org/ [3] http://maxima.sourceforge.net/ http://maxima.sourceforge.net/ [4] https://github.com/symengine/symengine https://github.com/symengine/symengine