We changed our privacy policy. Read more.

Questions tagged [output-formatting]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

How to Block the Output of WriteString?

I have an external package that uses the following function internally to print messages, PrintOutput[x__] := WriteString[$Output, x]; I want to block all the ...
0
votes
0answers
50 views

How can I change the way Mathematica orders exponents?

How can I change the ascending order that Mathematica has of ordering the exponents, to a descending one. For example, get ...
0
votes
0answers
44 views

Can I specify which terms to show on the left side and which on the right side of an equality in output?

Mathematica unexpectedly moves a part of the result of the calculation to the left side where I want to display only the unknown variable. Can I prevent this?
2
votes
2answers
59 views

Make Mathematica not to evaluate an integral?

I want the output to contain an integral, while everything under the integral sign evaluated. How can I prevent the system from evaluating the integral?
1
vote
1answer
87 views

How can I remove the negative sign to make sure the positive-signed term comes first?

I found the default dealing of the terms often display a negative sign at the beginning, including those beneath a square-root sign , which is a little bit annoying since for most cases, there exists ...
2
votes
1answer
45 views

How can I convert the inverse hyperbolic function I defined and built-in inverse trig functions to TeXForm the way I prefer?

In Mathematica,the inverse hyperbolic functions are displayed with the prefix "Arc" like "ArcSinh[]", which I thought incorrect and misleading. Since the hyperbolic angle is ...
2
votes
1answer
54 views

How to sort arguments in descending order in an orderless function

If I define an operator to be orderless SetAttributes[CirclePlus,Orderless] It puts the arguments into canonical sorting, i.e. ...
0
votes
0answers
38 views

How to map the outputs to different output lines?

I have the following code GraphIt[n, n2, IR, #] &/@ vanishpts where the function GraphIt print something, and returns a graph. I don't want my outputs to be ...
5
votes
1answer
144 views

Strings are constants? (Kind of output hack to circumvent that needed)

I have an "internal" notation (since some stuff is equivalent and can be manipulated via patterned expressions in the function F), say ...
1
vote
1answer
66 views

How to combine lists with plus minus signs?

I have two lists of Mathematica expressions, ...
0
votes
0answers
25 views

Output expressions with numerical coefficients and text separated

I have a Mathematica expression, t1 = (-10*wr20)/(7*Sqrt[3]) + (8*Sqrt[15]*wr40)/77 - (7*Sqrt[5/39]*wr60)/11; where some w terms are in the numerator, some are not....
0
votes
0answers
51 views

Change the default output form in mathematica 12

Is there a simple way I can change the default output form in Mathematica 12? In Mathematica 11, this option was simply in the "preference", but I can't find it anywhere in Mathematica 12.
2
votes
0answers
37 views

Print a string in TraditionalForm

I'd like to print all in TraditionalForm "f(z)=(z+1)/(z-1)" where f is a function defined in the usual way. What I obtain in Output for f(z) and (z+1)/(z-1) is not the TraditionalForm. What ...
4
votes
4answers
202 views

Is there an easy way to copy a TableForm column and convert it into a vector?

Is there an easy way to take a column output from a TableForm command, like this: ...
0
votes
0answers
28 views

Placement of `PlotLabels` in `ComplexListPlot[]`

In this example, would like the label $\gamma_a$ to appear below the line segment. ...
1
vote
1answer
70 views

How to force Mathematica throwing an error box intentionally?

When building a Module function, I try to throw an error box when this function facing some cases. But I don't know how to output this error box with ground methods. This picture is the Mma error bar ...
4
votes
2answers
242 views

How to export expression in mathematica to python [closed]

I have an expression in Mathematica; I want to convert this expression into python readable format. how to do this? ...
1
vote
1answer
80 views

How to change the form of fraction

One of my output result is (2 Sqrt[2/5])/3 Is there any method to let it become Sqrt[8/45] Thank you very much!
1
vote
1answer
84 views

Creating a table and exporting to LATEX

I have two functions as numeric[x, t] and exact[x, t]. I want to create a table including 5 columns as follows (table formatting doesn't matter) and to export it to LATEX: I use ...
0
votes
1answer
35 views

\ell with argument in legend

I want to have as a Legend in a figure. But don't get further than
2
votes
1answer
65 views
0
votes
2answers
54 views

Extract subscript of variable in product

My input is a product of the variable x with index: x[1]^2 x[5] x[7] How do I extract the indices of the above product to get ...
0
votes
0answers
44 views

Replacing the print display in a for loop

I am running a For loop as follows: table = {}; For[n = 0, n < 10, n++, {table = Append[table, n], Print[table]}] I was wondering if there was a convenient way ...
1
vote
0answers
48 views
3
votes
1answer
132 views

Doing calculations on values input in USD currency format (e.g., $1,234.56)

I'd like to be able to copy and paste, into MMA, numbers that have a standard USD currency format, i.e., that include dollar signs and comma separators, and get the output in the same format. I'd ...
0
votes
0answers
29 views

Missing toggle button when hide a subsection of codes

I created two subsections and hide the code in both of them. However, the hide toggle button ('the double arrow') only appears at one of the subsections. I noticed some differences between these two ...
0
votes
0answers
24 views

Mathematica doesn't evaluate LinearSolve Function properly [duplicate]

Maybe this could be a stupid question, but I can't solve this problem. I'm trying to evaluate an expression with LinearSolve Function but it doesn't work. I have pre-evaluated the matrix ...
2
votes
1answer
55 views

Can I change how certain expressions are displayed/printed upon evaluation?

I'm writing some operations for Young tableaus and I would like the evaluation of an expression of type young[a_] to be printed the same as ...
1
vote
1answer
46 views

PlotRange values changed by AspectRatio and PlotLabels

I'm running into a strange issue with ListPlot. I'm trying to plot some data with particular values for PlotRange, PlotLabels, and AspectRatio. However, if I enforce the desired values for PlotLabels ...
0
votes
0answers
43 views

Checking Membership of Conic Hull for Multiple Inputs

Suppose I have a given $10 \times 12$ matrix T, a $12 \times 1$ vector Subscript[\[Xi], 0], a $4 \times 12$ matrix ...
4
votes
2answers
145 views

Organising and examining a complicated CSV file

I am being sent data in CSV files. The sender is providing helpful comments and lots of headings so that it is fine to look at in a spreadsheet environment. However, when I import it into Mathematica ...
0
votes
0answers
33 views

can not replace when use ctrl+f

I have a very long output, therefore, I want to find and replace some repeated expressions with abbreviations using crtl +f in Mathematica. when I enter expressions, the mathematical can find it and ...
1
vote
2answers
103 views

How to create a table tracking successively changing values of controls in Manipulate[...]

Consider the following code that generates the desired output for a single vector of parameters (i.e., values of the controls). My purpose is to generate a set of ...
0
votes
0answers
60 views

On the precision of `Table` calculation [duplicate]

I want to add two arrays length and Apice, It's accuracy to six decimal places. When I use ...
4
votes
2answers
248 views

How can I remove constants from a reduced result?

I am trying to reduce some equations and get the final simplified answer. But there are two issues. This is just an example to show what my problem is. There are lots of similar samples with the same ...
0
votes
0answers
39 views

How to get rid of the white margins in picture export?

I made a manipulate box to show some spherical harmonics decomposition, and everything is working great (but it's very slow, when I add more harmonics!). Then I need to export the picture, without ...
2
votes
2answers
114 views

How to format a table of numbers with varying decimal points

Given: ...
3
votes
1answer
75 views

Graph layout and VertexStyle difficulties

I have several large two-layer directed graphs with vertex labels of unequal length, and I'd like to lay them out and color vertices in an automatic way, as I'll describe. Here is a minimum example ...
1
vote
2answers
118 views

Manually specifying frame ticks

...
1
vote
0answers
42 views

Position of symbol of currency

When I use Quantity[45.51,"Euros"] the output is €45.51 I would wish to control if symbol € is on the right like 45.51 € And also when I use ...
5
votes
1answer
129 views

Reduce from two pure functions to one

Liking the headings and spacing allowed by Row[] and TableForm[] I set up the below with 3 TableForm[]'s to use as a model from which to generalize, using a pure function, to display a list of 3-ples, ...
0
votes
1answer
75 views

How should I export data with desired precision to output file

I want to control the number of decimal points in the output file. ...
1
vote
1answer
42 views

UnitSimplify for unit multiples and submultiples

Is there any way to automatically rewrite units so that they display more naturally looking magnitudes? By this I mean that ...
9
votes
2answers
280 views

BoxWhiskerChart - how to show Quartile and other values

I have a question in respect of the BoxWhiskerChart. The default functionality of BoxWhiskerChart is that you mouse over it and ...
5
votes
2answers
138 views

How do I write Sqrt[x] as x^(1/2)

Sometimes it is needed to keep the powers as the fractional form. However Mathematica tends to write x^(1/2) as Sqrt[x]. How do ...
2
votes
1answer
88 views
1
vote
0answers
97 views

Using printf for formatted print

My data is data = {{1, 1, 1, 1, 0.469258}, {1, 1, 1, 2, 0.}, {1, 1, 1, 3, -0.000123615}} On linux-like systems there is a printf...
3
votes
1answer
44 views

Performance - Plot with Calloutmarker ->"Arrow" and ImageSize->Full

This is a little esoteric, but I noticed that using CalloutMarker -> "Arrow" on a Plot that uses ...
6
votes
1answer
170 views

How to turn off the large output suppression

I am currently calculating some large matrix operations. The calculation results in some huge size matrices, and the output is sometimes suppressed as this However, I really don't want it to be shown ...
10
votes
1answer
174 views

How to modify default options of Dataset

I try to make a dark stylesheet based on the ReverseColor theme. However, dataset headers are barely readable. This question is related to others such as Question ...

1
2 3 4 5
24