1
$\begingroup$

I'd like to keep my cells grouped with the output displayed at the end of the group. Is it any way how to suppress the output within each cell and print all evaluated results together at the end of the group?

$\endgroup$
2
  • 2
    $\begingroup$ Just edit each function/command/assigment one after another in a single cell without an ending semicolon... $\endgroup$ Commented Mar 31, 2018 at 22:09
  • $\begingroup$ Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$
    – Michael E2
    Commented Apr 1, 2018 at 2:52

1 Answer 1

2
$\begingroup$

Something like this?:

In[5]:= a=6
Solve[3*i + j == 5&&i>0&&j>0, {i, j},
Integers]
Sin[3 a]

Out[5]= 6

Out[6]= {{i->1,j->2}}

Out[7]= Sin[18]
$\endgroup$
1
  • $\begingroup$ If you want to avoid printing the assigments, add a semicolon at the end, i.e., a=6;. Then, only the results will be shown. $\endgroup$ Commented Mar 31, 2018 at 22:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.