Roadmap to Computer Algebra Systems Usage for Algebraic Geometry - MathOverflow most recent 30 from http://mathoverflow.net2013-06-19T01:33:57Zhttp://mathoverflow.net/feeds/question/52145http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/52145/roadmap-to-computer-algebra-systems-usage-for-algebraic-geometryRoadmap to Computer Algebra Systems Usage for Algebraic GeometryMakhalan Duff2011-01-15T03:44:07Z2011-01-17T18:30:43Z
<p>I've decided it's time to start learning how to use a computer to do calculations... I've used Singular to some small extent so far, but I want to start relying on computer algebra systems more.</p>
<h3>Question</h3>
<p>Which computer algebra system is best for what, and what is the easiest/most fun(?) way to learn how to deal with them?</p>
<p>I should mention that I do (arguably) Arithmetic Geometry. So, ideally I should invest my time in learning something that is capable of making the abstract existence theorems in that field explicit (see for example: <a href="http://mathoverflow.net/questions/52125/how-to-get-explicit-unramified-covers-of-an-elliptic-curve" rel="nofollow">http://mathoverflow.net/questions/52125/how-to-get-explicit-unramified-covers-of-an-elliptic-curve</a>, or another example is normalizations).</p>
<p>P.S. I don't have access to Magma. How powerful is their "online calculator", and is it worthwhile to learn Magma just to use the online version?</p>
http://mathoverflow.net/questions/52145/roadmap-to-computer-algebra-systems-usage-for-algebraic-geometry/52193#52193Answer by J.C. Ottem for Roadmap to Computer Algebra Systems Usage for Algebraic GeometryJ.C. Ottem2011-01-15T23:27:04Z2011-01-15T23:27:04Z<p>I use <a href="http://www.math.uiuc.edu/Macaulay2/" rel="nofollow">Macaulay2</a> for standard computations in commutative algebra/algebraic geometry, like Gröbner bases, graded free resolutions, Tor/Ext groups etc. There are also a lot of add-on packages you can import for working with say, intersection theory, toric varieties and convex geometry. M2 is easy to learn and runs quite smoothly, especially using the interface in emacs. </p>
<p>In addition to the M2-documentation, which is very complete, there is also a really nice book, <a href="http://www.math.uiuc.edu/Macaulay2/Book/" rel="nofollow">Computations in algebraic geometry with Macaulay 2</a> available freely on-line.</p>
http://mathoverflow.net/questions/52145/roadmap-to-computer-algebra-systems-usage-for-algebraic-geometry/52340#52340Answer by William Stein for Roadmap to Computer Algebra Systems Usage for Algebraic GeometryWilliam Stein2011-01-17T18:30:43Z2011-01-17T18:30:43Z<p>Your question is "Which computer algebra system is best for what, and what is the easiest/most fun(?) way to learn how to deal with them?" </p>
<ul>
<li><p>Regarding <em>community</em>, I think Sage (http://sagemath.org) is the best CAS, since Sage is completely open and free, and there are about a dozen mailing lists, and thousands of subscribers and messages a month. There is also a forum like mathoverflow for Sage: <a href="http://ask.sagemath.org/questions/" rel="nofollow">http://ask.sagemath.org/questions/</a>. Also, Sage builds heavily on Singular, so it may feel familiar. See this 1-page article I published in the Notices for more about motivation: <a href="http://www.ams.org/notices/200710/tx071001279p.pdf" rel="nofollow">http://www.ams.org/notices/200710/tx071001279p.pdf</a> For a sense of the capabilities of Sage, skim the reference manual: <a href="http://sagemath.org/doc/reference/" rel="nofollow">http://sagemath.org/doc/reference/</a>. There is also an optional package of more unstable code for arithmetic geometry here: <a href="http://code.google.com/p/purplesage/" rel="nofollow">http://code.google.com/p/purplesage/</a></p></li>
<li><p>Regarding raw interpreted speed, it's been claimed that the Magma interpreter is often faster than the Sage interpreter (=Python). However, Sage has Cython <a href="http://cython.org" rel="nofollow">http://cython.org</a>, which can produce code that is much faster than anything one can produce using the Magma (or any other CAS) interpreter. </p></li>
<li><p>Magma is the only existing CAS that has well developed capabilities for computing with function fields of transcendance degree 1 over $\mathbf{F}_p$, i.e., the function field analogue of algebraic number theory. Chris Hall and I are working on something similar for Sage right now, but this will take a long time. </p></li>
<li><p>Magma is also the only CAS that can compute fairly general spaces of Hilbert Modular Forms (again, work is also under way to add this to Sage, but it is a nontrivial project). Someday you might care about this. </p></li>
<li><p>Regarding elliptic curves, Sage has much more related to $p$-adic $L$-functions and Heegner points, but Magma has 3 and 4 descent. </p></li>
</ul>
<p>The answer to your question: "Is it worth learning Magma?" is definitely still <em>yes</em>, since there are still many algorithms today in arithmetic geometry that are only implemented in Magma, and available nowhere else (definitely not in Macaulay2, Singular, Mathematica, Sage, etc.). It will only take a few days, and you will have a better sense of what is possible. The exact same argument applies to Sage as well. Learn both. For Sage, you basically should: 1. learn Python, and 2. go through the Sage tutorial, which takes 2-3 hours. </p>
<p>Another point: Sage and Magma have a huge overlap in functionality related to arithmetic geometry, but the overlap in code bases is almost zero (and in many cases the people who implemented the algorithms in both systems are disjoint too). Thus there is some nontrivial value in comparing the output of both systems. See, e.g., this trac ticket about implementation of a function for computing all integral points on an elliptic curve for a nice example of this <a href="http://trac.sagemath.org/sage_trac/ticket/3674" rel="nofollow">http://trac.sagemath.org/sage_trac/ticket/3674</a> This ticket also illustrates how the code that goes into Sage is all publicly peer reviewed (unlike this case with Magma). </p>