ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 18 Dec 2013 05:35:36 -0600Does Sage "Show Its Work"?http://ask.sagemath.org/question/10830/does-sage-show-its-work/Does Sage "Show Its Work"? This seems like a very simple question but am unable to find a definitive answer. If Sage simply evaluates to an answer and doesn't show its work to arrive at this a student would not really learn anything from this.Tue, 17 Dec 2013 08:07:51 -0600http://ask.sagemath.org/question/10830/does-sage-show-its-work/Answer by Saul Schleimer for <p>Does Sage "Show Its Work"? This seems like a very simple question but am unable to find a definitive answer. If Sage simply evaluates to an answer and doesn't show its work to arrive at this a student would not really learn anything from this.</p>
http://ask.sagemath.org/question/10830/does-sage-show-its-work/?answer=15835#post-id-15835I think that http://ask.sagemath.org/question/474/does-sage-show-steps-to-solving-an-equation has the answer to your question, which unfortunately is "no". You should consider asking the sage developers this question.
Note that there are various sites on-line that offer homework help. The first that springs to mind is http://math.stackexchange.com/ which states "Mathematics Stack Exchange is a question and answer site for people studying math at any level". Wed, 18 Dec 2013 05:35:36 -0600http://ask.sagemath.org/question/10830/does-sage-show-its-work/?answer=15835#post-id-15835Answer by Luca for <p>Does Sage "Show Its Work"? This seems like a very simple question but am unable to find a definitive answer. If Sage simply evaluates to an answer and doesn't show its work to arrive at this a student would not really learn anything from this.</p>
http://ask.sagemath.org/question/10830/does-sage-show-its-work/?answer=15820#post-id-15820Sage is open source. A student, or anyone else, can learn how sage computes the answers by reading the source code.
This can even be done interactively, by using the `??` magic. Say you want to learn how the Sylvester matrix of two polynomials is computed. After creating a polynomial object
sage: R.<x> = QQ[]
(`x` in this case) you can read the source code of `sylvester_matrix()` like this
sage: x.sylvester_matrix??
Admittedly, this will rarely give you a crystal clear explanation of the algorithm, as most of the time the work is done elsewhere (for example in some C library).
Tue, 17 Dec 2013 10:15:50 -0600http://ask.sagemath.org/question/10830/does-sage-show-its-work/?answer=15820#post-id-15820Comment by Saul Schleimer for <p>Sage is open source. A student, or anyone else, can learn how sage computes the answers by reading the source code.</p>
<p>This can even be done interactively, by using the <code>??</code> magic. Say you want to learn how the Sylvester matrix of two polynomials is computed. After creating a polynomial object</p>
<pre><code>sage: R.<x> = QQ[]
</code></pre>
<p>(<code>x</code> in this case) you can read the source code of <code>sylvester_matrix()</code> like this</p>
<pre><code>sage: x.sylvester_matrix??
</code></pre>
<p>Admittedly, this will rarely give you a crystal clear explanation of the algorithm, as most of the time the work is done elsewhere (for example in some C library).</p>
http://ask.sagemath.org/question/10830/does-sage-show-its-work/?comment=16531#post-id-16531I think the questioner is asking "Can I see the steps whereby sage arrived at this answer?" This is not very well-defined, but in some cases, "showing steps" would be a useful feature. Tue, 17 Dec 2013 10:53:58 -0600http://ask.sagemath.org/question/10830/does-sage-show-its-work/?comment=16531#post-id-16531Comment by Saul Schleimer for <p>Sage is open source. A student, or anyone else, can learn how sage computes the answers by reading the source code.</p>
<p>This can even be done interactively, by using the <code>??</code> magic. Say you want to learn how the Sylvester matrix of two polynomials is computed. After creating a polynomial object</p>
<pre><code>sage: R.<x> = QQ[]
</code></pre>
<p>(<code>x</code> in this case) you can read the source code of <code>sylvester_matrix()</code> like this</p>
<pre><code>sage: x.sylvester_matrix??
</code></pre>
<p>Admittedly, this will rarely give you a crystal clear explanation of the algorithm, as most of the time the work is done elsewhere (for example in some C library).</p>
http://ask.sagemath.org/question/10830/does-sage-show-its-work/?comment=16530#post-id-16530For example, Wolfram Alpha can do something like this - see http://blog.wolframalpha.com/2012/09/26/introducing-expanded-step-by-step-math-solutions/ I'll note that the one time I tried to use this feature, WA fell over. :)Tue, 17 Dec 2013 10:56:53 -0600http://ask.sagemath.org/question/10830/does-sage-show-its-work/?comment=16530#post-id-16530Comment by K.C. for <p>Sage is open source. A student, or anyone else, can learn how sage computes the answers by reading the source code.</p>
<p>This can even be done interactively, by using the <code>??</code> magic. Say you want to learn how the Sylvester matrix of two polynomials is computed. After creating a polynomial object</p>
<pre><code>sage: R.<x> = QQ[]
</code></pre>
<p>(<code>x</code> in this case) you can read the source code of <code>sylvester_matrix()</code> like this</p>
<pre><code>sage: x.sylvester_matrix??
</code></pre>
<p>Admittedly, this will rarely give you a crystal clear explanation of the algorithm, as most of the time the work is done elsewhere (for example in some C library).</p>
http://ask.sagemath.org/question/10830/does-sage-show-its-work/?comment=16528#post-id-16528Thank you for the reply Luca but Saul summed it up better than I could. A feature that would show the steps would be invaluable. Just evaluating the answer doesn't really help if your trying to help your children do homework.Wed, 18 Dec 2013 01:50:39 -0600http://ask.sagemath.org/question/10830/does-sage-show-its-work/?comment=16528#post-id-16528