Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • $\begingroup$ You can always try applying Simplify to the resulting expression, but note that Mathematica outputs expressions in default forms. For instance, if you evaluate b + a, it will output as a + b, and there's no way around this unless you apply functions like HoldForm to the expression: HoldForm[a + b], but then you can't do anything with it afterwards until you apply Releasehold. $\endgroup$ Commented Sep 4, 2021 at 23:07
  • 1
    $\begingroup$ Why is this important anyway? It's something you can get used to, and it's probably not worth the trouble to force Mathematica to do those kinds of things in general! $\endgroup$ Commented Sep 4, 2021 at 23:10
  • $\begingroup$ Expressions involving trigonometric terms may change sign every period; e.g. FunctionPeriod[Sin[x], x], so rearranging terms of a trig expr is not useful. $\endgroup$ Commented Sep 5, 2021 at 5:18
  • $\begingroup$ @march. I think it meaningful because I feel after rearranging the terms that way, it will be more concise, convenient and aesthetic for potential readers to review the result. Just like the Example2, even after I explicitly made the assumption 0<h<2r, the system still gives the result in terms like $\sqrt{-h^5 (h - 2 r)}$, it might be correct, but compared with $\sqrt{h^5 (2 r-h)}$ , which one do you think is clearer and more convenient and aesthetic to lay your eyes on? $\endgroup$ Commented Sep 8, 2021 at 4:28
  • $\begingroup$ @march I understand what you meant by “getting used to”, currently I am rearranging the terms manually. But what worries me is results needing adjusting might get more and more in the future, at that time the workload might be very heavy, so I’d better seeking a way to do it automatically. $\endgroup$ Commented Sep 8, 2021 at 4:29