Sometimes when I have an input, mathematica will give the out put with a visual output of the fraction:
i.e
Input:3/4
Output:
3
---
4
whereas other times it represents this with the division symbol:
Input:3/4
Output:
3 / 4
I'm not sure what the triggering factor is for how it is chosen to be displayed nor how to force it into one method versus the other.
Any explanation would be appreciated.
As requested here is something that seems to be on the edge case of how it wants to be displayed:
In[1]:= (2 (-6 a^2 Derivative[1][f][b]^2 +
b c^2 Derivative[1][f][a] Derivative[1][f][b]^2 -
2 (a - b)^3 b Derivative[1][f][b]^3 +
2 (a - b)^3 b c^2 Derivative[1][f][b]^3))/(a (a - b) Derivative[
1][f][b] (-1 +
a + (a - b)^2 Derivative[1][f][b]^2 - (a - b)^2 c^2 Derivative[
1][f][b]^2))
where as after adding a couple more terms I get:
In[2]:= (2 (-6 a^2 Derivative[1][f][b]^2 b^3 -
6 a^2 Derivative[1][f][b]^2 - 6 c^2 Derivative[1][f][b]^2 +
b c^2 Derivative[1][f][a] Derivative[1][f][b]^2 -
2 (a - b)^3 b Derivative[1][f][b]^3 +
2 (a - b)^3 b c^2 Derivative[1][f][b]^3))/(a (a - b) Derivative[
1][f][b] (-1 +
a + (a - b)^2 Derivative[1][f][b]^2 - (a - b)^2 c^2 Derivative[
1][f][b]^2))


Expand[(x + a)^15]/x. I find that examples like the OP's depend on the window size at the time the output is typeset. – Michael E2 Feb 15 '22 at 18:41FractionBox,FractionBoxOptions, andMultilineFunction. Example:Style[Expand[(x + a)^15]/Expand[(x + a)^4], FractionBoxOptions -> {MultilineFunction -> LineWrapParts}]-- (The other links are about controlling the output form of a fraction, which may or may not help in this case; however, if they do not, they may help others looking to solve a slightly different problem than yours.) – Michael E2 Feb 15 '22 at 18:47/). When I make it a bit wider, the top one displays as a 2D fraction, but the bottom one remains in-line. When I made it wider still, both display as 2D fractions. When I then shrink the window back to the narrow version, both revert to an inline display. [Though if I re-expand, they stay in-line; I need to reevalute to get the 2D display back.]. The principle is that Mathematica doesn't want to break a 2D fraction across two lines (for obvious reasons). – theorist Feb 16 '22 at 00:01