Questions tagged [output-formatting]
Specify and control how Mathematica formats its output, including rich text, equations and graphics.
1,381
questions
4
votes
1
answer
309
views
How to make a polynomial so that f(i) = 1/(2^i)?
I know that, sequence has formula $f(n) = \dfrac{1}{2^n}$ satifying the conditions $f(1)=\dfrac{1}{2}$, $f(2)=\dfrac{1}{4}$, $f(3)=\dfrac{1}{8}$, $f(4)=\dfrac{1}{16}$. Now I am trying to find a ...
0
votes
0
answers
54
views
How to use Format in TeXForm keeping expression as shown in Format?
I have expression expr = int[1 - x + x^2 - x^3 + x^4 - x^5, x] and I want to convert it to Latex. But want to replace int by <...
-1
votes
0
answers
40
views
Out put of FeynCalc is not symbolic
When I run, for example:
LC[$\alpha$, $\beta$, $\mu$, $\nu$] MT[$\mu$, $\nu$]
the out put is
LC[$\alpha$, $\beta$, $\mu$, $\nu$] MT[$\mu$, $\nu$]
rather than
$\varepsilon_{\alpha \beta \mu \nu}g_{\mu\...
4
votes
0
answers
110
views
Is there a way to get expressions to output in terms of Log2 instead of Log? [duplicate]
I'm in computer science, pretty much every logarithm I ever encounter is base 2.
Normally, Mathematica wants to convert every logarithm to the natural log Log, so ...
3
votes
2
answers
188
views
Are there missing symbols in the FrontEnd's TeX input interface?
I am trying to insert an \hbar into the Front End's interface.
but the hbar is missing:
I've tried to use character codes and pasting the FrontEnd's [HBar] in directly. Neither work.
Does anyone ...
3
votes
1
answer
77
views
Print in TableForm
Hi I have this code which runs fine, however it does not print things at the end in nice TableForm. I want it to print things nicely in the form of a table with some headings. However if I use ...
1
vote
2
answers
193
views
Adding direction arrows to discrete plot
I wanted a discrete plot of $y = -\dfrac{3}{2} x$ and used
DiscretePlot[-3/2 x, {x, -20, 20}]
I do not like the vertical lines shown in the plot but I did not ...
2
votes
1
answer
93
views
How to write code realizing this manual operation? [closed]
I want to use the output of N[E,15]. However the output is really 2.71828182845904523533978449066641588615`15. if you copy the ...
1
vote
1
answer
65
views
How do I export/import lists with their assigned names?
I want to write lists of expressions into an output file with names assigned to each list.
Later I want to import them in a new notebook for further use.
Example.
...
2
votes
1
answer
221
views
Is there an easy way to hide output function arguments?
I'm working with a bunch of funtions with multiple aguments, say f[x,y,z], g[x,y,z], etc. I want to do operations with them like derivatives and products, and I want to read the result easily, without ...
0
votes
2
answers
56
views
Avoiding fractional or unnecessary matissa representation when printing number
I'm trying to generate a series of graphs in which a parameter mu varies and is used in the creation of labels within the plot. I can't seem, however, to get the ...
1
vote
0
answers
63
views
TraditionalForm of a polynomial two variables
I want to write the expression $$x - x (-x^2 - 5 x) + m x - x^2$$ in the form $$x^3+4 x^2 + (m+1) x.$$
I tried
...
1
vote
1
answer
136
views
How can I mimic this beautiful layout for a table?
I was looking for new ideas to display my data, when I found this beautiful layout in a video lecture (Wolfram U: Visualisation des données avec le Wolfram Language - Partie 2).
I would like to mimic ...
1
vote
0
answers
64
views
Tick marks: How to force powers of 10 in a ListPlot with logarithmic scale?
I'm sure this is very simple to do, but I'm yet unable to find the trick. Here's a simple ListPlot with a Log scale on the horizontal axis:
...
0
votes
2
answers
60
views
Using Dynamic string output inside Block
Inside a Block, I have (among other things) a string output that is updated during an internal for loop in the following (schematic) way:
...
0
votes
2
answers
66
views
How to add info text inside a manipulate plot, fixed to the frame?
I would like to show some dynamical information on a plot, inside a Manipulate box. The MWE below show the info moving with the grid lines. I need that info to stay fixed permanently in view, ...
5
votes
2
answers
159
views
How can I make Table of Defer[Sqrt[3i] - k Sqrt[3j]]?
I am trying to make a Table of expressions Defer[Sqrt[3i] + 2 Sqrt[3j]], e.g
...
2
votes
1
answer
106
views
How to to divide this list into the sets with four elements? [closed]
I have a list
...
1
vote
1
answer
38
views
Maintaining form of Manipulate to find the formula area of a projected cuboid
I am experimentally trying to solve this problem about the projected area of a cuboid. I sense patterns when I run the below code, but it is difficult for me to compare them. Here is the code:
...
3
votes
1
answer
97
views
How can I get this result when using Expand?
I tried to expand this expression (x-2)(x-3). I only want to recieive this result
(x-2)(x-3) = x^2 - 2x - 3x + 6, not this ...
1
vote
2
answers
75
views
How to show result in reduced form?
Suppose that I define $$v(t)=\sqrt{v_1(t)^2+v_2(t)^2}$$ and I want to take the derivative of this with respect to time. The result that Mathematica gives me is $$v^´ = \frac{v_1{v_1}^´+v_2{v_2}^´}{\...
1
vote
0
answers
38
views
Message converts argument to string before formatting it
How to pass automatically, context-dependently formatted arguments to Message? Interestingly, StringForm correctly interprets ...
3
votes
2
answers
102
views
Create a new table by deleting some similar rows, provided that their outputs are collected
How to delete duplicate rows, collect their outputs in general, and create a new table.
The figure below shows the idea required to create the new table
The idea is that if the rows are similar in ...
2
votes
1
answer
54
views
Collect columns in a table
How can I add the elements of certain rows and show them as a new row in the table?
The following table shows the required process:
My attempt is just to make the table
...
1
vote
1
answer
36
views
Permanently changing default output style
I have read through this discussion several times: Keeping Quotation Marks in Output
Unfortunately, the accepted answer here only works once, at the notebook level. I'd like to permanently change this ...
-3
votes
1
answer
116
views
How to find all possible $(x,y)$ values for which the condition $ x^2 + y^2 - 1 == 0$ is satisfied? [closed]
For equation of a circle, I need to find all possible $(x,y)$ values so that $x^2 + y^2 == 1$ or $x^2 + y^2- 1== 0$ is satisfied.
For the below written code, I am getting (x,y) values for which $x^2 + ...
1
vote
1
answer
49
views
Filling a specified area of a `Plot`
I have a very simple Plot:
Plot[{n, 5*n^(1/2), 4.27517*n^0.49047}, {n, 1, 50}]
I want to fill the areas where the two' ...
4
votes
1
answer
214
views
How can I get scheme product of two polynomials like this?
I use LaTeX by hand to make this table
With Mathematica, I get the answer dirrectly
Expand[(x^2 + x - 1) (2 x^2 - 7 x + 9)]
-9 + 16 x - 5 x^3 + 2 x^4
or my code ...
1
vote
0
answers
44
views
How do I format output in Mathematica to recognize variables are between zero and one?
I frequently work with variables that are between zero and one. For example, if r is a depreciation rate:
Factor[k-r*k]
gives:
...
3
votes
2
answers
144
views
Keep Log10[] in result
I want to work using Log10[...] yet it keeps reformatting to Log[...]/Log[10].
This simple example can be avoided by using ...
0
votes
1
answer
32
views
Print into different cell groups inside module
I have a function with the following (simplified) structure:
...
3
votes
1
answer
68
views
How to shorten the output of an Association
I'm writing a function that steps through a parameter and returns the outputs of NDSolve to make crude bifurcation diagrams. It seems like an ...
4
votes
1
answer
87
views
On displaying association, including all items in a nice way?
Currently I use Dataset to display an association in a nice to see way on the screen. However, only top level items are shown this way. And have to click on each ...
2
votes
1
answer
87
views
Is there a way to make Mathematica support Chemmacros of LaTeX?
On Mathematica 13 or later version, the ChemicalFormula and ChemicalReaction functions helpe a lot to deal with chemical formula ...
1
vote
0
answers
27
views
Is there an easy way to standardize quadratic irrationals formatting?
FromContinuedFraction returns quadratic irrationals when the continued fraction is periodic. Examples:
In:=FromContinuedFraction[{0, 3, {2, 6}}]
Out:=1/(2 Sqrt[3])
In:=FromContinuedFraction[{0, 2, {5, ...
0
votes
1
answer
94
views
Is there a way to make WolframScript give outputs as a single line?
When the output of a calculation includes exponents or fractions, WolframScript is writing them out on separate lines (exponents one line above, then a line with the rest of the numerator, then a line ...
2
votes
1
answer
41
views
Table with an angle | rotate the co-ordintae
I have the following,
Flatten[MapAt[Reverse, 2]@
Table[{i, j}, {i, 0, 10, 10}, {j, 0, 90, 90}], 1]
that gives,
...
0
votes
1
answer
36
views
saving output and ListPlot the output:
Let's say I have
x = 1; y = 2;
d = x^2 + y^5 ;
and
x = 5; y = 3;
d = x^2 + y^5 ;
and
...
2
votes
1
answer
58
views
How to print all output in FullForm
How do I set all output to be printed/shown in FullForm. Setting the FormatType of the stream as in e.g. https://mathematica....
1
vote
1
answer
180
views
Generating a table of squares and square roots up to 100
I want to generate a table of roots and perfect squares similar to the image, but I can't find the right code, I have searched the forum for something that works for me without favorable results. Can ...
1
vote
1
answer
111
views
Why does Mathematica produce answers involving multiplication by 1?
I have an answer involving multiplication by 1., like
-1. Subscript[c, 1] ...
produced by
...
2
votes
1
answer
39
views
Is it possible to make your own output format that uses the "Data not in notebook. Store now" mechanism?
Several functions in WL have a custom elided typesetting form that does not automatically embed large amounts of data into the notebook but presents you with the option to do so if you wish. ...
1
vote
2
answers
86
views
SummaryBox and Recursion
How can I make it so that what is under the dropdown block is not calculated/constructed at once? Example code:
...
1
vote
1
answer
52
views
Mathematica truncates output from an external python session
I am running an external python session in Mathematica via ExternalEvaluate. It sends commands to the Bloomberg API in command prompt on Microsoft Windows.
I start ...
2
votes
0
answers
49
views
How to make Mathematica give the output differently?
When you compute the Fourier transform
FourierTransform[Sqrt[2/π] 1/(1 + λ^2), λ, p]
Mathematica gives the output
E^-Abs[p]
...
2
votes
2
answers
80
views
How to use this result of this function with the # symbol? [closed]
I typed in the following expression to yield the roots of a quaternionic quadratic equation, since the entire argument concerns only the real part:
g=(n^2)*cot^2(t)-(1/(4n^2))(h^2tan^2(t)+sin^2(t)), ...
6
votes
2
answers
104
views
TeXForm on table, how to make empty cells?
I have the code:
l = {{1, 2, 3}, {1, 2, 3}};
l = Append[l, PadLeft[{1}, 3, Null]];
TeXForm[TableForm[l]]
Returns
...
0
votes
0
answers
28
views
FontSize of fraction after TableForm is small [duplicate]
FontSize of fraction after applying TableForm is small.
...
1
vote
1
answer
86
views
The ultimate output control method
The ultimate substance of all matter is the atom, likewise,
the ultimate substance of mathematica cell is the cell expression,
and it can be obtained easily.
After copying the cell expression, and ...
1
vote
1
answer
54
views
How to completely control the displayed title of a window?
I can't quite seem to find a way to accomplish this task. I want to display an image in its own window with a custom title. This code almost accomplishes the task:
...