14 votes

How to make the result of InputForm balance the bracket

If you have Version 11 you can use the function PrettyForm instead of processing InputForm output to get the desired result: <...
kglr's user avatar
  • 395k
13 votes
Accepted

What does the symbol Continuation do?

Citing this 1996 year MathGroup post by Dave Wagner, A similar function, Continuation[n], is called to format the character at the beginning of continued lines....
Alexey Popkov's user avatar
13 votes

What does $ mean in an output?

This usually means you've exported a local symbol from the context in which it was localized. Consider: Module[{x}, x] (* x$24939 *) Your results may vary. The <...
John Doty's user avatar
  • 13.7k
12 votes
Accepted

How to make the result of InputForm balance the bracket

Per my comment, I like using expr //InputForm //SequenceForm, but another similar possibility is to use a custom head with a custom ...
Carl Woll's user avatar
  • 131k
11 votes
Accepted

How to apply a color gradient to a Rectangle primitive?

Rectangle cannot have a gradient color. Here's one way to construct such a gradient. Under the hood it is using Polygon with ...
Brett Champion's user avatar
11 votes
Accepted

What is the meaning after a number with a ` symbol?

This means that the number 0.42441318157838756205035670232670496542`27.98876486962581 has 27.98876486962581 digits of precision....
Henrik Schumacher's user avatar
10 votes
Accepted

Problems with Displaying Output for Summation

This is a bug I fixed in 10.4.0. Sorry for the inconvenience! To work around it in earlier versions, evaluate the following block of code: ...
Itai Seggev's user avatar
  • 14.1k
10 votes

Plotting a complicated 3D wave on the surface of a sphere

It seems to me that your function depends on too many variables to be represented entirely as a 3D contour. Perhaps we can get to what you need by approximation. To start off, here is perhaps an ...
MarcoB's user avatar
  • 67.2k
10 votes
Accepted

How to convert input expression to FullForm String

You just put Unevaluated in the wrong spot: ...
Carl Woll's user avatar
  • 131k
10 votes
Accepted

How to write a string verbatim

Do not use OutputForm. Use StringTemplate. This is sufficient to generate your string: ...
Szabolcs's user avatar
  • 235k
9 votes

How to turn off depth sorting of 3D curves for Manipulate?

I don't think Mathematica is using depth sorting to decide surface visibility. My reasoning is that a geometry like this: ...
Niki Estner's user avatar
  • 36.1k
9 votes

Changing the Rotate behavior of a 3D graphics

See "Method" in Graphics3D. ...
Michael E2's user avatar
  • 236k
9 votes

How to make the result of InputForm balance the bracket

Carl's tip seems to be the best quick solution. Very often I find syntax/style highlighting very useful too so I use: ...
Kuba's user avatar
  • 137k
9 votes

Output of code generated by CellPrint goes to the end of notebook

I don't have full insight so I am encouraging FE team to answer or update this one. Currently I can only more or less explain what is going on but not why/what was the original idea. The rule of thumb ...
Kuba's user avatar
  • 137k
9 votes
Accepted

How to improve this atomic orbitals manipulate box output?

To accelerate code we can first generate all images as follows ...
Alex Trounev's user avatar
  • 44.6k
8 votes

Infix form of PutAppend ( >>> ) does not work with variable

Mr. Wizard's answer is basically correct. I was originally going to just edit his answer, but I decided this is a bit too much to do that. Mr. Wizard, feel free to delete my answer and just ...
Itai Seggev's user avatar
  • 14.1k
8 votes
Accepted

Why do I get the Null when I evaluate Print[x] // InputForm?

Mathematica is a term rewriting system. It works by taking an input expression and transforming it according to some rules to produce an output expression. The implication is that every evaluation ...
Szabolcs's user avatar
  • 235k
8 votes

Outputting expressions in the order in which they're entered

You could define a format that does this for you: ...
Carl Woll's user avatar
  • 131k
8 votes
Accepted

Solve IVP in a implicit form

Found a way (caveat: it temporarily hobbles an internal function while DSolve is running): ...
Michael E2's user avatar
  • 236k
7 votes

Plotting a complicated 3D wave on the surface of a sphere

This uses a function that should be available to version 7, ...
Jason B.'s user avatar
  • 68.4k
7 votes

What does the symbol Continuation do?

\[Continuation] is also the name of the special character used to indicate that input should be interpreted as continuing in the next line, or to break output too ...
MarcoB's user avatar
  • 67.2k
7 votes

What does the symbol Continuation do?

After a quick Google search I came across this, which provides a description. Translation: Continuation[n] is the result at the beginning of the nth line in a multiline printed Expression. The ...
ruddi02's user avatar
  • 151
7 votes
Accepted

Change the default output form in Mathematica 11.1

As noted in the Documentation, starting from version 11.1 the format type of new input and output cells can be changed in the Option Inspector. To change the type of new cells: Start Option ...
Ray Shadow's user avatar
  • 7,826
7 votes

How to convert input expression to FullForm String

Maybe this way? SetAttributes[fullFormString, HoldAll]; fullFormString[expr_] := ToString[HoldForm[FullForm[expr]], OutputForm]
Henrik Schumacher's user avatar
7 votes
Accepted

Decimal format in Mathematica exported output

The "Table" export format uses CForm to format content. So, one possibility is to block CForm...
Carl Woll's user avatar
  • 131k
7 votes

Express HarmonicNumber as sum

...
Bill's user avatar
  • 12.1k
7 votes
Accepted

How can I prevent Mathematica from cutting sentences in the middle when printing strings?

Input cells linebreak as math, while text cells linebreak as text. So, use: ...
Carl Woll's user avatar
  • 131k
6 votes

How to make the mesh to rotate with a surface in Manipulate?

In order to have the illusion of moving mesh lines, you must make the values at which your vertical mesh lines are drawn explicitly dependent on the current value of $t$. Substitute the following in ...
MarcoB's user avatar
  • 67.2k
6 votes

Is it possible to Print expressions in reverse order?

It turns out that the ordering of the output of Print cells is determined by whether the cells printed have the options ...
Carl Woll's user avatar
  • 131k
6 votes

Frame labels without a frame?

You can use FrameStyle -> Directive[Opacity @ 0, FontOpacity -> 1], FrameTicks -> None, ... But in general I'd go with ...
Kuba's user avatar
  • 137k

Only top scored, non community-wiki answers of a minimum length are eligible