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

learn more… | top users | synonyms

0
votes
0answers
46 views

Mathematica, stop sorting my output! [on hold]

I'm trying to get some output from Mathematica / WolframAlpha, but it's coming out in a useless format. Mathematica is, for some reason, sorting my output. Below is the output from my function and ...
0
votes
0answers
35 views

How to change the output form of result

If you use Mathematica to do this integral: Integrate[1/(x^2 - a^2), x] you will get a uncommon function form like ...
3
votes
1answer
67 views

Partitioned Matrix in Display Form in a Notebook

Consider: $$A=\left[\begin{array}{rrr|rr} 2 & -3 & 1 & 0 & -4\\ 1 & 5 & -2 & 3 & -1\\ \hline 0 & -4 & -2 & 7 & -1 \end{array}\right]$$ Let's say I am ...
1
vote
1answer
57 views
-1
votes
1answer
34 views

How to use Collect[…] with matrices? [closed]

I have a matrix function $T_4(t)$ which is evaluated as follows: $$\left( \begin{array}{cc} \frac{1}{48} \left(t^4-8 t^2+48\right) & \frac{1}{768} t \left(t \left(t \left(t^3-32 t+64\right)+256\...
9
votes
4answers
3k views

Is it possible to “pretty print” my input integral in Mathematica like Wolfram|Alpha does?

With Wolfram|Alpha, if I enter: Integrate[r^3, {t, 0, 2Pi}, {r, 0, 2}, {z, r^2, 4}] Wolfram|Alpha will pretty print my input like so: Which is very readable, ...
3
votes
1answer
31 views

NumberForm NumberPadding outside of NumberSigns formatting

I am getting an unexpected result with NumberForm's NumberPadding option when specifying ...
1
vote
0answers
52 views

colored array of output

I would like to have colored array of an output. Assume for example we have an array of numbers or texts as output and we want different colors for different classes of them. For example A={...
28
votes
3answers
427 views

How to create a dynamic expanding DisplayForm's styled like the ones in v10?

The display forms for objects like ClassifierFunction are nice clickable boxes I like this, and now I'm trying to create my a custom version of this for my ...
2
votes
1answer
67 views

Accessing Plot's default formatting [duplicate]

I'd like to plot multiple sets of data, along with trend line fits for each. I can do this by plotting the fits, and then including the data in an Epilog. But I'd ...
3
votes
0answers
113 views

Obtaining a Previously Constructed Function as Desired Output

I was playing around with some Generalized Trigonometric Functions defined as follows; ...
0
votes
1answer
48 views

Keeping Stretching Brackets/Braces/Parenthesis in A String

Hopefully a simple one...Does anyone know how to preserve "bracket stretching" in a string. For instance, if I copy a formula and use it as a plot label or in any string the brackets revert back to <...
2
votes
1answer
25 views

Set number of digits after decimal separator

How can I specify the amount of digits after the decimal separator in output without limiting the total number of digits? Simple question, but I could not find the answer anywhere. I did find ...
1
vote
1answer
64 views

Collect partial derivatives and rewrite them with delta/nabla

Ultimately, I wish to get the higher generalized product rule for Laplacian. That is, we have $\Delta(fg)=f\Delta g+2\nabla f\cdot\nabla g+g\Delta f$ but what is $\Delta^n(fg)$? I am tying to guess ...
8
votes
1answer
97 views

Exported graphics have issues with word wrapping

I am trying to export a plot as an image. My actual plot uses Show to combine a ListPlot and several Plots, with a common legend. The code below is a dummy version that produces the same problem: <...
0
votes
1answer
35 views

Control output in mathematica

I'm producing a set of coordinates for every iteration in a simulation and saving it into a txt file in the following way: ...
7
votes
3answers
147 views

How to create a Text with certain size given in a specified way?

Note: all these coordinates are in Graphics system, not text size system. so specifying simply by Style[text, 5] or so won't ...
2
votes
1answer
31 views

Size of headings for a table with graphs

I want to change the size of the heading of a table that includes graphs and am having no luck. The command I am currently using is ...
0
votes
0answers
15 views

How to type greek letters on mathematica.stackexchange [migrated]

I usually ask questions on this website, and many of them contain greek letters in the code part. For instance: \[CapitalTheta]=0 After a while, someone edits ...
13
votes
2answers
411 views

Disconnected Frame/Axes in Plots

Is it possible to have "Tufte" style figure axes? That is so that the axes do not need to connect or span the entire data range? For an example of what I mean from the R's default histogram style: ...
2
votes
1answer
67 views

Einstein summation and traditional form of partial derivative of implicit function

I am quite new in Mathematica (1 week new) and after many trials I did not manage to make my partial derivatives to look traditional way. There are few topics such as How to make traditional output ...
11
votes
2answers
2k views

How to make traditional output for derivatives

Hello again after some pause. i have a problem how to present partial derivatives in traditional form, not as Mathematica gave it to me in its notation. So I want to present this ...
1
vote
0answers
27 views

Make a .C3D file in Mathematica

I have two different groups of points in an excel file, which are captured by two different cameras from two different angles (Motion Capture Process). These points are extracted by using markers on a ...
18
votes
6answers
2k views

Annoying display truncation of numerical results

I have a lot of data to inspect. An example of a number in my program is 123.189094 This gets displayed as 123.189 ...
5
votes
1answer
304 views

How do I edit the background of Axis labels in my plot?

I'm using the standard report stylesheet in Mathematica and when I output a plot, I've set it up so that I get a white background, however the axis labels still have a gray background. How do I change ...
10
votes
1answer
114 views

How to Copy formatted code without backslashes added?

By default code copied from the FrontEnd is formatted with backslashes added at the ends of lines. For example, evaluating in a Notebook Range[40] and copying ...
6
votes
1answer
106 views

TeXForm output in a tabular environment

As far as I can see TeXForm of a matrix produces LaTeX arrays, which assume LaTeX is in math mode. However, Mathematica can be used to produce whole tables ...
1
vote
0answers
28 views

FormBox in pretty strings

My goal is to write usage messages in the same style as Mathematica's built-in ones, such as List::usage. This involves a mess of ...
0
votes
1answer
91 views

Interpreting Mathematica output or producing cleaner output [closed]

Could someone please explain what the following would look like in standard math notation (or explain to me what this means): ...
8
votes
1answer
142 views

Is it possible to Print into a collapsable CellGroup?

During rather long computation I have intermediate steps Printed with useful information which should be collected for possible use in future inside of the ...
2
votes
2answers
127 views

How to plot an Eddington-Finkelstein diagram

I need to plot the same thing as what is shown on the third picture of the site below (sorry, I'm unable to poste that picture here) : http://ion.uwinnipeg.ca/~vincent/4500.6-001/Cosmology/...
6
votes
1answer
108 views

How to copy formatted numbers as MathML without extra quotes?

I have the following code: a = 6.08717*10^6; b = a/3; c = a*1.5; d = a^2; matrix={{a, b, c, d},{b, c, d, a},{c, d, a, b},{d, a, b, c}} // EngineeringForm ...
18
votes
2answers
315 views

Understanding evaluation and typesetting

Background So, one could be surprised by the fact that: Hold @ Grid[{{1, 2}}] (*or*) Hold @ Graphics @ Disk[] This issue and methods of prevention are ...
9
votes
3answers
1k views

How to change an expression to Fortran90 form?

I have a large expression produced by Mathematica. To use this expression in my Fortran program I need to change it to a Fortran90 form. I am not satisfied with the ...
3
votes
1answer
102 views

Can evaluation show what was evaluated along with results? [duplicate]

After I write and evauate the following lines in Mathematica: a = 1 b = 2 x = a + b It will show only the result : 3. I want mathematica to show the following ...
16
votes
3answers
224 views

What does the symbol Continuation do?

There is a symbol Continuation (residing in the System` context). There is no usage or documentation for this symbol. ...
6
votes
4answers
110 views

Multiple output cells, suppressed by semicolon

I'd like to write a function that outputs multiple cells, as in Multiple output cells, but not when the function is called with a semicolon at the end. Any idea how?
7
votes
4answers
229 views

Getting AbsoluteTiming to display in hours, minutes, and seconds

I'm doing some extended length calculations and was wondering how I could get AbsoluteTiming to display in hours, minutes, and seconds. I googled and found nothing, ...
9
votes
3answers
1k views

Why does N[1.000 01, 10] return 1.00001, but N[1.000 001, 10] returns only 1.?

Why is it so? When I ask for N[1.00001, 10] I get quite reasonably 1.00001 But when I ask for ...
5
votes
1answer
86 views

Visualize Pascal's triangle with the product of the terms in the $n$th row

How to make the following graphics by using Mathematica? What I tried: I used J.M's answer for the Pascal triangle ...
50
votes
8answers
2k views

How to “Copy as Unicode” from a Notebook?

I spent some time manually editing a post replacing Mathematica ASCII \[Alpha] with Unicode α. I did this by laboriously ...
13
votes
2answers
642 views

Automatically add appropriate prefix to Quantity

Is there a function that automatically adds the appropriate prefix to a Quantity object? For example, I would like a function ...
2
votes
1answer
102 views

Can I improve this sloppy code used with Manipulate?

I'm not an advanced user of Mathematica, and yet I managed to get the Manipulate command work to do something interesting. The problem I have is that I have the ...
2
votes
1answer
70 views

Save a fraction matrix in Mathematica into C++ friendly format

In MMA I have a 2d matrix whose each entry is a irrational number(in fraction format in MMA). Say: ...
24
votes
2answers
4k views

Way to improve “show me this decimal number to M places, don't use scientific notation”?

The best way I can come up with to say "show me this fraction as a decimal number to M places, don't use scientific notation" is: ...
15
votes
2answers
204 views

How do I use the third and fourth arguments of Parenthesize?

Parenthesize seems to do a good job with constructing boxes that need to be appropriately parenthesized: ...
4
votes
3answers
181 views

Using different style on segments of a plot [duplicate]

Is it possible to plot a function with two different colors? To illustrate, let's have: Plot[Sin[x], {x, 0, 2 π}] which plots a curve. And I would like it to be ...