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

learn more… | top users | synonyms

2
votes
1answer
101 views

Strings and Formatting

There is something about strings which doesn't seem to be totally clear for me (for the moment): When entering "a string", the output, formatted as "Output" gives this string without the quotes. But ...
2
votes
1answer
102 views

How to prevent Grid from breaking the line upon export

I want to create a legend for my plots (a mixture of RegionPlots and ContourPlots). The legend should show the meanins of colors as boxes with text in them and the meaning of contours as framed number ...
3
votes
1answer
90 views

Copy/paste of Interpretation to Latex fails, but works for InputText

As part of another issue, the following has come up. Create an Interpretaion: Interpretation[Subscript[a, b], a[b]] Select ...
10
votes
2answers
285 views

Paste data into Mathematica with formatting

Select the following Mathematica code and paste it into a notebook. In Windows 7(Mathematica 8) the line breaks are not interpreted in the expression. In fact any data copipasted from stackexchange ...
3
votes
1answer
178 views

How to see a long output expression

I often run into long expressions in the process of solving equations. To go forward I need to be able to eye-ball the expressions to make some substitutions or use some existing relations I know to ...
3
votes
1answer
68 views

PostProcessing TraditionalForm output to append a vertical bar?

This simple task is giving me trouble. Suppose I'd like to take the output from TraditionalForm[Integrate[x^2,x]] and post-process it to append a vertical bar ...
15
votes
0answers
239 views

How can I make a notebook with two column layout?

How can I make a notebook with two column layout? Is it possible? I saw something tools could do such thing? Author Tools?
1
vote
2answers
80 views

The order of the result $x^2 \left(b-\frac{a}{2}\right)+(a-2) x^3+\left(2-\frac{b}{2}\right) x+4 x^4-1$ [duplicate]

Can you explain me a little how Mathematica sort this result, and how to sort in descending powers of $x$ ...
0
votes
2answers
141 views

Unwanted parentheses appearing in a notebook that is opened by a button

I am writing an interactive document and have an idea to make in-line buttons that on demand would create and bring up separate notebooks containing some explanations or a remindings. One example of ...
3
votes
1answer
237 views

how can I convert a Grid object to a Graphics object?

I have a figure (which is by combining different plots) that I generated using Grid[]. The problem is, I want to specify the ...
0
votes
0answers
186 views

substituting Green's function in non homogeneous diff eq

I am solving the following differential equations with Mathematica 8: ...
4
votes
1answer
198 views

Unexpected behavior: CForm converts rationals to floating numbers

One line question: How to make CForm[1/2] generate 1/2 instead of 0.5? (Thanks Nasser's ...
1
vote
2answers
198 views

Convert a number to a string to use in plot axes label, but keep the exponent

This seems to be a simple, but useful question. I am plotting a basic function: ...
11
votes
1answer
224 views

What are all the named Mathematica styles?

This question came to mind because of this answer to a recent question. Under Style, the Mathematica Documentation Center says the following about named styles. A few common named styles ...
1
vote
1answer
119 views

Style markers in strings

I'm dealing with strings in Mathematica and I would love to handle their stylling in the most cenvenient way. Without loss of generality, let's assume I want to make some parts of string ...
0
votes
0answers
175 views

Choose the use of vertical bar indicate absolute value

Choose the use of vertical bar in DisplayFormula cell Sometimes, I use vertical bar directly via typing "|", and sometimes I typed Esc l+ Esc which like the ...
3
votes
2answers
696 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 ...
3
votes
1answer
238 views

Matching parentheses size in plot labels

I am attempting to do a seemingly-simple task: label ordered pairs in a Plot that display with parentheses that grow to match the expression within. I've trawled ...
6
votes
1answer
614 views

Possible to export Excel formulas?

I would like to export an .XLS file complete with data and formulas. Is this possible using Export? For example, here is data and a formula :- I can import ...
9
votes
2answers
197 views

How can I make Which format its output?

Functions like Piecewise have cool, easy-to-read formatting. In the same vein, I think it would be wonderful if the Which ...
2
votes
1answer
121 views

why mathematica outputs “TRUE” sometimes in outputs that are conditional to mean “in all other cases”?

consider this simple Input: Probability[g <= m && m <= -g + 1, {m, g} \[Distributed] UniformDistribution[{{0, 1}, {0, gg}}]] which generates a ...
9
votes
3answers
2k views

Expressing a decimal as a fraction in lowest terms

How can I express a decimal such as 0.1845095405274387 as a fraction in its lowest terms?
6
votes
2answers
223 views

Add arrows over matrix

How can I plot this graph g1 = Table[x[i, j], {i, 5}, {j, 5}] // Grid; Rasterize@g1 I added these arrows by Ctrl+D's graphics tool. This way maybe hard ...
8
votes
1answer
339 views

How to align two overlayed plots, one being rotated?

I have two plots which I want to present on a single figure. The bottom left corner is a point of origin of the first plot. The top right corner is a point of origin of the second plot. Also, the ...
1
vote
0answers
73 views

Notebook output behaving erratically

Normally, when reevaluating a cell, the following output cell is overwritten with the new result. I have a lengthy notebook in which at some point for unknown reasons each reevaluation generates a new ...
4
votes
1answer
64 views

SuperscriptBox question

I am trying to define an object type in Mathematica as follows ...
1
vote
1answer
32 views

MatrixForm control inside Row[]

I would like to pretty print two column vectors of different lengths so that they are aligned at the top rather than centered, which seems to be the default. For example, ...
0
votes
0answers
25 views

Converting the output for variable assignments to a usable array form [duplicate]

Output from built-in Mathematica functions often has this form (e.g. from Solve): {1 -> {166., 254.214}, 2 -> {237.214, 254.}, 3 -> {121., 253.5}, 4 -> ...
0
votes
0answers
63 views

How can I replace very small scientific form of numbers in output with 0.0? [duplicate]

How cam I get rid of very small scientific form numbers in my output, replacing them with zero? (eg: 2.27682*10^-18 --> 0.0)
4
votes
1answer
167 views

Row Alignment in Grid

I've been working on creating tables of differences in MAA similar to the image below, but with a bit more detail: I've written a function that will take an anonymous function, a range of values ...
6
votes
3answers
448 views

Expression of uncertainty in measurement.

I have a problem with writing a Mathematica function. I have been requested to show the results of my experiments with the measurement uncertainty (mu) like below: ...
1
vote
1answer
150 views

How to convert equations to piecewise form

equations={{2 u,2,1+t,1}=={a c,a b+c,a+b,1},{u,t,0,1}=={c d,c+b d,b+d,1}}; Thread/@equations//TraditionalForm equations was typed to do some ...
1
vote
1answer
94 views

Appropriate application of plotstyle directives

I am attempting to style a Plot in which all of the lines are Thick and I have selected the colors manually: ...
6
votes
1answer
465 views

How can I get better control over StreamPlot?

I'm having some difficulties with the command StreamPlot in Mathematica 7.0. Here's the basic plots I'm doing : ...
-1
votes
1answer
78 views

How to make rules for changing parameters

I have one boring problem with changing parameters in printing output. If I have equation ...
1
vote
1answer
95 views

Rounding only reals in an expression containing, reals, integers and symbols

I am trying to make a function that would make rounding real numbers in an expression possibly consisting of real numbers, integer numbers and symbols. An example of such an expression is below: ...
18
votes
6answers
900 views

Formatting a fraction as a mixed number

Is there a command that will take a rational number and rewrite it in a mixed-number-like form? That is, I'd like to apply a command to something like 10/7 and get ...
2
votes
1answer
127 views

How to use output from previous line in Plot? [duplicate]

Suppose, I want to solve a equation and want to obtain it's first root. In this case I've used In[1]=:Solve[b^2 + b*z + 1 == 0, b][[1]] This gives ...
21
votes
7answers
804 views

How do I get my equation to have the form $(x-a)^2 + (y-b)^2 + (z-c)^2-d = 0$?

I want Mathematica to express the equation $$-11 - 2 x + x^2 - 4 y + y^2 - 6 z + z^2=0$$ in the form $$(x - 1)^2 + (y - 2)^2 + (z - 3)^2 - 25=0$$ How do I tell Mathematica to do that?
6
votes
1answer
196 views

Telling mathematica to output * instead of space for multiplication, so I can copy as plain text

I am trying to get some symbolic expressions in Mathematica which I would like to paste into my C/MATLAB codes. This can be accomplished nicely by selecting the expression and right-clicking to ...
3
votes
1answer
56 views

Combination of CellPrint and PrintTemporary, or DisplayForm for Cells

I'm programmatically generating some formatted output that generates a cell in the form of a Cell[] expression. For instance, the output might be ...
3
votes
2answers
151 views

Why don't these styling rules work when viewed in TableForm?

m = RandomInteger[{-5, 5}, {10, 10}]; m /. {x__, y_ /; y > 0} -> Style[{x, y}, Red] % // TableForm When m without style ...
11
votes
2answers
306 views

Notebook formatting - easier descriptions for equations and results?

When I do computations in mathematica, I generally try to make it readable for myself-in-the-future. This can be a cumbersome task in mathematica, where it often requires me to switch betwee a text ...
-3
votes
1answer
118 views

Mathematica output in ASCII or larger text size for the output?

I am trying to read the output of this code that has crosses, circles and spaces. For some reason, the output is in very-very small alphabets so I would like to get it in ASCII and/or in larger ...
7
votes
3answers
245 views

Making large tables easy to read with frozen headings and scrollbars [duplicate]

I would like to represent a table containing a large amount of information in such a way that I can (a) use scrollbars and (b) have table headings that don't scroll off the screen [just like the Free ...
2
votes
2answers
306 views

I get weird <<…>> symbols in my output — what does it mean?

After I input the following: data = Table[{3 + i + RandomReal[{-3, 7}], i + RandomReal[{-2, 5}]}, {i, 1, 20}]; model = LinearModelFit[data, x, x] I got ...
1
vote
3answers
152 views

iterate method to find roots

This code gives the roots (lambda-values) of eq1 by using iteration. ...
7
votes
1answer
481 views

How do I get Mathematica to show a number in non-exponential form? [duplicate]

Sometimes I make a calculation in Mathematica that produces a big number, which Mathematica shows like so: -1.52522*10^7 This is annoying to me, because I want ...