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

learn more… | top users | synonyms

14
votes
4answers
722 views

Converting a large floating-point number to a single-line string

When I feed a large (or small) enough floating-point number to ToString, it produces a two-line string, with the first line containing only the exponent of 10: ...
1
vote
1answer
39 views

Formatting All Appropriate Output as Desired Automatically

I want to output in MatrixForm whenever I have a list/vector/matrix, but I do not want to have to type out the command each time. How can I write one command at ...
1
vote
0answers
23 views

Ordering the Terms in an Expression [duplicate]

Why does Mathematica almost always put subtractions as the first term in a summation (as a negative summed with the rest)? How do I circumvent this feature so that every occurrence of "-" follows ...
2
votes
3answers
135 views

Wrapping a data selection in Mathematica

I was wondering what would be the most efficient way to add brackets to given elements in my data set in order to change it's form from {{a,b},{c,d}} to {{{a},b},{{c},d}}. I took a look through a few ...
8
votes
3answers
404 views

How do I get a two-term polynomial with a leading negative sign to display in the correct (i.e. textbook) order?

The first three expressions evaluate as expected and the polynomial is displayed in what I would call "textbook" form. The last expression, however, switches the order of terms. Mathematica employs ...
13
votes
3answers
481 views

How to keep Collect[] result in order?

For example, Collect[(1 + x + Cos[s] x^2)^3, x] gives the result ...
2
votes
0answers
24 views

How to simplify a polynomial and get the results in the order that I want? [duplicate]

How to simplify a polynomial in a order that I want? Assume that I have a polynomial here, for example, $a^3 b^4 c^2$, the order of symbels is the dictionary order, $a>b>c$. But what if I want ...
12
votes
5answers
2k views

Formatting a number with fixed number of significant digits

I need a formatting function (say format[x_, n_]) which outputs numbers with fixed n significant digits without unnecessary dot. ...
37
votes
5answers
1k 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 ...
2
votes
3answers
88 views

String formatting

I have the following string: "174,861.00 ( 4,053.52) 206,850.48 118.29 ( 31,989.48)" Parentheses stand for negative numbers. I will like to get ...
2
votes
1answer
64 views

Make FactorInteger print its result with CenterDot and Superscript?

I know that if I use CenterDot @@ (Superscript @@@ FactorInteger[x]) Mathematica will pretty print the output. However, is it possible to tell Mathematica to ...
0
votes
3answers
50 views

Printing the base 'b' value of an integer as a string (without the subscript base indication)

Is there a simple one-liner to convert a given base 10 integer to a string representation of this integer in some desired base 'b'? Is there a way to do this avoiding the subscript indicating the ...
2
votes
1answer
42 views

Problem with parentheses and ScriptBaselineShifts

Style[ DisplayForm@RowBox[{"(", SubsuperscriptBox[2, 6, 7], ")"}], 18, Bold, ScriptSizeMultipliers -> 1, ScriptBaselineShifts -> {1, 3}] or for ...
0
votes
1answer
45 views

Customize TableForm behavior for a single function

I have a function of this form Garch[a,b,c....] that gives me a list as an output,where the first column collects names of output variables. Is it possible ...
1
vote
1answer
63 views

How to operate with function body without evaluation

I have several functions (let a[x] and b[x]), defined as expressions with integrals and differentiations. I want to perform some ...
2
votes
1answer
91 views

How to preserve the order of terms in the output

Is there a way in which mathematica can preserve the order of operations while it evaluates an expression?, for instance: In my short example ...
0
votes
0answers
17 views

How to prevent expressions like b-a from being transformed to -a+b? [duplicate]

When I enter some expression like a-b, it is shown as I want, i.e. as I entered it. But in some cases the variables aren't sorted alphabetically, and entering e.g. ...
4
votes
1answer
88 views

displaying Laurent polynomials nicely

I have some 2-variable Laurent polynomials in $q$ and $t$, and I'd like to collect powers of $q$ and display them without using fractions, and to sort the terms by the power of $q$. For example, I'd ...
0
votes
0answers
30 views

Panel size undesired behaviour

This is next question from the series: better avoid Panel if you care about details. previous about FrameMargins In the ...
1
vote
1answer
113 views

Solving Heat equation [closed]

I want to compute the exact solution of the heat equation but I got an error. u(x,t) (equation of transmition of heat) is the solution of this differential equation: $$du/dt - \alpha d^2u/dx^2 = 0$$ ...
0
votes
0answers
34 views

Output of the comand Put

I have a do loop in which I "Put" a ListPlot of a list in every iteration by doing Put[ListPlot[list],"file"] While the process is running and is still not ...
0
votes
0answers
48 views

HypergeometricPFQ

I am trying to get a simple but relatively ugly result out of the following summation, however, mathematica gives me an expression which includes HypergeometricPFQ. Obviously, I am doing something ...
-7
votes
1answer
85 views

Simplify looks ugly [closed]

I use Simplify mostly to make expressions look neat. However, Mathematica often does not produce expression in, what I consider, the optimal way. Look at this: ...
1
vote
1answer
50 views

Set Page Width of PDF

I have a very simple question. I am using the student version of Mathematica 9, and I often do my homework in it. I type up a notebook, and then save it as a PDF using the "save as" option. However, ...
0
votes
1answer
41 views

How to change the order of the variables in an output? [duplicate]

I have this output: a(b + c)d + 3 But I want it to become like this: ad(b + c) + 3 How can I do that? Is there a way ...
3
votes
2answers
82 views

How do I NOT change the input/output number when editing?

I tried to search for a topic on this, but didn't seem to find anything, so here goes. I'm pretty new to Mathematica, so there are a lot of things I don't know yet, but one thing is pretty annoying ...
3
votes
3answers
129 views

Generating a list of questions (simultaneous equations)

I am trying to create a list of simultaneous equations showing steps, where I only need to change a, b and the question number, and maybe a couple of minor things about q (where q is the factored ...
2
votes
2answers
92 views

Converting from TableForm to Grid

I wonder if there is an easy way to convert from TableForm to Grid. I have an existing data format that uses the Table function that I’d like to prettify…. Let’s setup a nested table as follows: ...
6
votes
2answers
99 views

Can I Print to a different notebook? (within the context of the same kernel)

Please imagine a simple loop: For[i=1,i<=100,i++, Print[i]; ]; We can ask Print[] to output $(1,2,3,4,...)$ to a ...
3
votes
2answers
270 views

specify field width in Print

I would like to format the output. For example, the following code gives ...
2
votes
1answer
82 views

Is it possible to show Tooltips in a ListPicker menu?

Is it possible to show Tooltips in a ListPicker menu? This effect is possible using TabView, but I would much prefer using ListPicker. Below is a simplified version of my code. ...
0
votes
0answers
40 views

Explicit multiplication * sign in Mathematica [duplicate]

I need to turn my Mathematica output (in string form) to a form that I then need to feed to Maple, and specifically I'd need all multiplications to be marked by * (as opposed to x or, as it happens ...
0
votes
1answer
49 views

Combine multiple outputs into a pane [closed]

Probably unnecessary detail: So here's what I'm envisioning. I have several outputs from different calculations (perhaps several ListAnimated tables of GraphicsGrids of plots). In one, I did all the ...
2
votes
2answers
100 views

Generating an editable table that can be used as input

Say I have a number $n_{max}$. I want a command to generate a table like 1 1 2 2 3 3 4 4 ... nmax nmax where the second column is editable, and this table can be ...
0
votes
0answers
57 views

Preventing numeric constants from being pulled out of square roots

If I input Sqrt[2 g], Mathematica automatically pulls out the 2 and returns Sqrt[2] Sqrt[g]. ...
0
votes
0answers
24 views

Make output be to a certain number of places after the decimal point [duplicate]

Mathematica has this nasty habit of giving me output that uses significant digits, so I'm getting output like 0.0944307 and ...
5
votes
1answer
138 views

How to substitute the following conditions into an expression?

I have an expression: $p=a\;b\; x + b^2\; y + a\;c\; z$. I want to substitute $a\;b=1$, $b^2 = 2$ and $a\;c = 4$ to obtain $p = x + 2y + 4z$. How can I tell Mathematica to do that? I dont know how to ...
0
votes
1answer
51 views

Specifying Table/grid dimensions in version 7

The result of my calculations is quite large list (nested list to be precise). I would like to improve its visualization, to make it more legible, by setting the number of columns to let's say 5. ...
2
votes
4answers
92 views

How do I prevent exponents from being expanded when displaying text

I have a power of 2 in a list, and I want it to show as $2^{31}$ (2 with exponent 31), not 2147483648. I've tried this: ...
0
votes
0answers
32 views

Set form of all output to InputForm

I try to interact with mathematica using MathLink for symbolic computations. By default it returns strings such as 2\012-1 + E\012-------\012 3\012 E if the ...
0
votes
0answers
70 views

Why is my answer being displayed with “Subscript^(0,1)[a,b]”?

I type in my equations using ctrl+- to make it look nice and my answer outputs in "Subscript^(0,1)[a,b]" form? What is going on? In the answer some bits are displayed with the actual subscripts and ...
10
votes
1answer
184 views

How to suppress Tooltip in built-in templates?

...or maybe switch the message. But I will be happy with no Tooltip at all. I've naively tried with ...
1
vote
1answer
109 views

Removing the white space around plots when using customized FrameTicks

I'm using the CustomTicks package, which is part of the LevelScheme package, for styling the ...
1
vote
2answers
118 views

How can I make notebook cell's background become transparent?

How can I make notebook cell's background become transparent? And can be saved as html with the translucent or transparent effect? One of the use is in HTML files, the background of cell hides the ...
5
votes
3answers
231 views

How to change the color of specified digits in a number?

I've been playing with numerical approximations for irrational numbers, and would find it convenient to be able to highlight where these approximations deviate from the known correct answers. For ...
1
vote
2answers
164 views

ListLinePlot x-axis units label

If I want to label the $x$-axis of a ListLinePlot , how do I do that? There are two types of label: a units label which would go to the right of the axis, and ...
1
vote
0answers
62 views

Symmetric FrameMargins problem

Such details are driving me crazy while creating GUIs with Mathematica: ...
0
votes
2answers
61 views

Hide function arguments (from unknown functions) for simpler output [duplicate]

How can I print my expression with my function's arguments hidden? For example: exp=A[r,z]+B[s]^2; HideArgs[exp] Output: ...
4
votes
4answers
220 views

Filling and Shading an Harmonic Curve

Suppose I have an equation plotted as shown: ...
6
votes
3answers
98 views

Multiplication sign in TeXForm?

How do I get Mathematica to produce TeX output that does not omit the multiplication signs ? For example, this expression: ...