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

learn more… | top users | synonyms

0
votes
0answers
44 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

Distribute operator on functions

I wrote this code: ...
-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\...
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={...
3
votes
1answer
31 views

NumberForm NumberPadding outside of NumberSigns formatting

I am getting an unexpected result with NumberForm's NumberPadding option when specifying ...
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
2answers
59 views
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 ...
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 ...
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 ...
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 ...
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 ...
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/...
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 ...
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 ...
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?
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. ...
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 ...
4
votes
1answer
87 views

How can I define MakeBoxes for Inactive forms of user-defined heads?

Here I define a MakeBoxes for Times: ...
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 ...
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: ...
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, ...
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 ...
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 ...
3
votes
2answers
152 views

How can I get LogIntegral[z] to be printed as “li[z]”?

I have no problem with the current formatting of the function, but for the sake of the reader less familiar with Mathematica functions, is there a way to define, say, ...
5
votes
1answer
55 views

Using TraditionalForm to express equations

I have a notebook in which a couple of partial derivatives are calculated. At the time of publishing this notebook, I'd like to make the resulting equations look the way they would in standard ...
0
votes
1answer
43 views

Sum over abstract value

My plan is to write a sum over an index. Currently I write Sum[f[OverTilde[q]], OverTilde[q] ∈ Subscript[l, i]] but Mathematica always tells me that "The ...
5
votes
1answer
106 views

To style Sound object

While doing some signal processing research my aesthetic feelings were heavily struck by following output: The problem here is that 211.96 s label is partially ...
2
votes
1answer
70 views

Using Mathematica to batch-produce text files

I need to make a bunch of plaintext files, all of which differ only in a single parameter. The text I want to "copy" or "batch produce" is a little bit complex, since it contains quoted areas and ...
6
votes
2answers
136 views

Bar chart scale in multi-chart visualisation

This is a rewording of a previous question which probably wasn't very well explained, and so didn't get any responses(!). I'm trying to create a chart which shows the smooth kernel distribution of ...
0
votes
1answer
56 views
2
votes
1answer
71 views

Output short denominator as pre-factor

How can I make the output print like the input, with the short denominator written as a factor in front of the long expression? I was messing with styles earlier today to do something else, and at ...
2
votes
1answer
34 views

Delete Cell Inside of Module

I want to print a dynamic output while some code is running and then automatically delete it when when the output is done. PrintTemporary is not quite what I am looking for -- I want the output to be ...
3
votes
2answers
99 views

Are there any code which just derivative of piecewise function(same distence)?

I wrote this code: Piecewise[{{x^2, 0 <= x <= 1}, {x, x <= 4}}] and I got derivative of this code: ...
3
votes
2answers
76 views

How to set global style of controls in Manipulate?

I created a Manipulate code which is using several sliders, with the same font output (style, size, font familly, ...). How can I save some space by defining a global style for all the slider ...
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: ...
2
votes
0answers
31 views

Indenting Bulleted List in Notebooks [duplicate]

I am writing a paper using Mathematica Notebook and need to create a bulleted list. I saw this answer (Indenting bulleted lists in notebooks) and was able to create a new stylized notebook with the ...
6
votes
1answer
46 views

Heading in Table Form Question

I have: modadd = Table[Mod[i + j, 3], {i, 0, 2}, {j, 0, 2}]; TableForm[modadd, TableHeadings -> {{0, 1, 2}, {0, 1, 2}}] Which produces: How can I put a ...
0
votes
0answers
46 views

CForm and Piecewise

I am trying to use Mathematica to evaluate a long function and I would like to export the result to C using CForm. However, my function is a ...
2
votes
2answers
47 views

Output lists with new line for each record element [closed]

When Mathematica outputs nested lists, it just gloms one record right after the next record and it wraps around in the space available, for example: ...
1
vote
1answer
43 views

How to use collect with arbitrary powers?

I want to use of collect for this code: ...
0
votes
3answers
90 views

Write complex number in terms of absolute value and phase

I have a long vector and some of the values (19 out of 64) are complex. I got them using the Mathematica Rationalize function, so the complex ones are written in the a+bi form. Is there a function I ...