Questions tagged [output-formatting]

Specify and control how Mathematica formats its output, including rich text, equations and graphics.

Filter by
Sorted by
Tagged with
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 ...
John Paul Peter's user avatar
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 <...
Nasser's user avatar
  • 137k
-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\...
João Paulo Melo's user avatar
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 ...
Pavel's user avatar
  • 183
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 ...
Craig Carter's user avatar
  • 3,970
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 ...
Learner's user avatar
  • 219
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 ...
Moo's user avatar
  • 3,044
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 ...
amon xu's user avatar
  • 31
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. ...
BabaYaga's user avatar
  • 1,604
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 ...
Gianni Boschetti's user avatar
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 ...
mikemtnbikes's user avatar
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 ...
Laurenso's user avatar
  • 1,000
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 ...
JuanC97's user avatar
  • 560
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: ...
Cham's user avatar
  • 3,969
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: ...
michelangelov's user avatar
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, ...
Cham's user avatar
  • 3,969
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 ...
Laurenso's user avatar
  • 1,000
2 votes
1 answer
106 views

How to to divide this list into the sets with four elements? [closed]

I have a list ...
minhthien_2016's user avatar
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: ...
Teg Louis's user avatar
  • 415
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 ...
John Paul Peter's user avatar
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}^´}{\...
user3011's user avatar
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 ...
István Zachar's user avatar
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 ...
Emad kareem's user avatar
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 ...
Emad kareem's user avatar
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 ...
Glenn Welch's user avatar
-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 + ...
Tanmayee Patra's user avatar
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' ...
Richard Burke-Ward's user avatar
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 ...
minhthien_2016's user avatar
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: ...
Dave's user avatar
  • 11
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 ...
Andrew Malcolm's user avatar
0 votes
1 answer
32 views

Print into different cell groups inside module

I have a function with the following (simplified) structure: ...
michelangelov's user avatar
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 ...
Chris K's user avatar
  • 19.6k
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 ...
Nasser's user avatar
  • 137k
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 ...
Y. zeng's user avatar
  • 465
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, ...
sourdough's user avatar
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 ...
Lawton's user avatar
  • 103
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, ...
a019's user avatar
  • 811
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 ...
a019's user avatar
  • 811
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....
Kvothe's user avatar
  • 4,197
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 ...
zeros's user avatar
  • 2,263
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 ...
florin's user avatar
  • 1,644
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. ...
Sjoerd Smit's user avatar
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: ...
Kirill Belov's user avatar
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 ...
apg's user avatar
  • 2,027
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] ...
user824530's user avatar
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)), ...
Edward Solomon's user avatar
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 ...
atapaka's user avatar
  • 3,733
0 votes
0 answers
28 views

FontSize of fraction after TableForm is small [duplicate]

FontSize of fraction after applying TableForm is small. ...
imida k's user avatar
  • 4,047
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 ...
imida k's user avatar
  • 4,047
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: ...
Glenn Welch's user avatar

1
2 3 4 5
28