0
$\begingroup$

Sometimes when we have an expression to calculate, it is the kind of calculation that we do not know how to calculate by ourselves. We use Mathematica to calculate the expression, and Mathematica gives an answer, but nothing about the procedure it used. Is there a way to tell Mathematica give us the procedure of its calculation, rather than just an answer?

$\endgroup$
  • $\begingroup$ It gets a bit verbose and challenging to read but Trace[expr] can help here. If you search this site you will see that, depending upon your code, Sow and Reap can also be used to make a list of the steps. For example mathematica.stackexchange.com/questions/63582/… $\endgroup$ – Jack LaVigne Oct 25 '15 at 14:42
  • 2
    $\begingroup$ Trace can be very disapointing if you are looking to see how built-in functions such as Sin are evaluated. A lot of built-ins are essentially black boxes to Trace. $\endgroup$ – m_goldberg Oct 25 '15 at 14:59

Browse other questions tagged or ask your own question.