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

learn more… | top users | synonyms

2
votes
1answer
119 views

Simplifying expressions involving square roots and 'i' factors

I am doing the contour integration using Mathematica. After extraction of residues, my expression contains a lot of unwanted pairs such as ...
2
votes
1answer
138 views

Randomizing a lab

I teach a class where students do a weekly lab in Mathematica. They do it in a computer lab, and because there are many of them, and only one of me, I encourage them to help one another. ...
2
votes
1answer
374 views

Substituting Symbol font for Mathematica's custom font in exported plots and other graphics

Mathematica includes some custom fonts that allow you to use a wide range of mathematical symbols in output. For example, one can write: ...
2
votes
1answer
180 views

List of different values which have to be formatted differently

I have a large list of values which – for presentation in my LaTeX document – I need to format. For instance: I have calculated growth rates which I now would like to have formatted in the form of: ...
2
votes
1answer
64 views

TreeForm expression that will automatically spread nodes vertically so labels do not overlap

My deeply and unevenly nested lists and equations generate a TreeForm image which is too small and compressed to use. Then we must expand it manually by grabbing the edge of the image, and sometimes ...
2
votes
1answer
108 views

Write numbers to a file

I want create file with some text (and numbers). This is my code. ...
2
votes
1answer
272 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 ...
2
votes
1answer
117 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 ...
2
votes
0answers
40 views

Dynamic Slider and InputField: some numbers with machine precision display badly [duplicate]

I want to control a value in my program either by a Slider or an InputField. The following code does what I want in principle: ...
2
votes
0answers
36 views

Find d'Alembertian in the output and convert into Einstein summation convention form

I am trying to do field variations in Mathematica and would like some nice formatting. My output is in the form $ -\frac{1}{c^2}V^{(1,0,0,0)}[t,x,y,z] + ...
2
votes
0answers
47 views

Is there any way to get Times displayed as $\cdot, *,$ or $\times$ in output form? [duplicate]

In the output of Mathematica, operators $\cdot$ or * or $\times$ are usally displayed as space; e.g., $x * y$ becomes $x \, y$ in output. Is there any option that can be set to make "space" becomes ...
2
votes
1answer
124 views

Display negative exponents always as fraction

I want Mathematica to display negative exponents always as fractions. I already tried: ...
2
votes
0answers
33 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 ...
2
votes
0answers
63 views

How to save all variables in the workspace into a file? [duplicate]

I did some time consuming computation and obtained a lot of arrays and variables; however after restart the Mathematica Kernel, all these computational results disappeared. How can I save all these ...
2
votes
0answers
185 views

Symbol with Subscript but no quotes in it!

If I use the following function to define me a fancy subscript: ...
2
votes
0answers
86 views

TableHeading Lines Do Not Show Up

For a list list = {{"a", "b", "c"}, {"d", "e"}}; Table heading lines do not show up ...
2
votes
0answers
219 views

Negative power instead of fraction

Solve returns a solution in the form {{x->y/a^2 + y^2/a^7}}. Since I want to process the input (with another program) in terms of Laurent polynomials, I would ...
1
vote
4answers
168 views

Applying a for loop on Out[]

I have a number of expressions, each one is an output: Out[135], Out[136], etc. I wish to print all of these outputs in a C++ form using the function: CForm. I can apply it on each Out[] separately ...
1
vote
3answers
2k views

How to write values of function to file?

For example, say I wanted to plot Sin(x) like this: Plot[Sin[x],{x,0,2 Pi}] But instead of plotting to a graph, I want to now tabulate the values of Sin[x] to a ...
1
vote
2answers
150 views

Stopping Mathematica from reordering expressions [duplicate]

I want Mathemtica to stop manipulating my polynomials! I mean, I want the output of Print[3 x + 5 + x^2] to be just $3x+5+x^2$, not $5+3x+x^2$ as Mathematica ...
1
vote
4answers
232 views

Add Brackets to a string list

Hello stackexchange community! I have a stringlist with a value and his error for eg: {{"12","1"},{"13","2"}} Now i want to output this as something like this ...
1
vote
2answers
152 views

How to convert this answer into $\ln$ form?

I find the integral Integrate[Sqrt[2 x - x^2] + x^3 Log[(9 - x^2)/(9 + x^2)], {x, 0, 2}] and got ...
1
vote
2answers
64 views

How to eliminate (hide) output numbers in a slide show

I am creating a slide show with several imbedded Manipulate objects. I can hide the Manipulate command by clicking on the ...
1
vote
2answers
138 views

Show Simplified Directives [closed]

Is there a way to force Mathematica to convert an already rendered Graphic to the simplified Directive form of that Graphic. Background: I am currently editing Graphics using Drawing Tools and then ...
1
vote
1answer
173 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 ...
1
vote
2answers
166 views

Help on output formatting

Again, I am writing homework sheets. I have tried ...
1
vote
2answers
102 views

What is the default file path used by the Put function and how do I pre-evaluate an expression to use in Put?

I have a problem of trying to store some output in an external file. In one note book I define a function f[x_]:=AdvancedCalculation, where this function generates ...
1
vote
3answers
154 views

Row and Column Headings for a Grid

It would be useful for me if I could write: Grid[{{a, b}, {c, d}, {e, f}}, GridHeadings -> {{"r1", "r2", "r3"}, {"c1", "c2"}}] just like ...
1
vote
1answer
48 views

Financial number format

How can I change this function: nFormat=NumberForm[#,{\[Infinity],2},NumberPoint->",",NumberSeparator->".",DigitBlock->3,ExponentStep->10]&; So ...
1
vote
2answers
275 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: ...
1
vote
1answer
129 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: ...
1
vote
2answers
70 views

Format a formula in human readable form

Is there a way to make a formula display in a human readable form? I have something like Binomial[(10000000 - 1), x]*(1/2^24)^x and I'd like it to display using ...
1
vote
2answers
65 views

Showing an output without square brackets

Suppose that an output is which could be obtained from, for example, D[f[x, y, z], x] / D[h[x, y, z], x] I'm looking for a way to show it without the square ...
1
vote
1answer
284 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
1answer
97 views
1
vote
2answers
59 views

Center column heading in TableForm

I have a TableForm as follows: ...
1
vote
1answer
92 views

How to increase significant digits in Mathematica

How can I increase the number of significant digits in Mathematica? When I import a matrix, an element like 112.5276 is rounded to 112.528. I would like to increase the number of significant digits ...
1
vote
2answers
97 views

How to remove a gap between the chart labels and the frame in a BoxWhiskersPlot

When making a nested BoxWhiskersPlot with chart labels, the labels are nicely spaced below the bottom frame when using labels for all nested data ...
1
vote
1answer
1k 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$$ ...
1
vote
2answers
533 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
1answer
108 views

Transpose a ragged triangular matrix and display as columns rather than rows

I have a triangular list of lists as follows: ...
1
vote
2answers
87 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$ ...
1
vote
2answers
365 views

Output format in MatrixForm

I have a correlation matrix, which I want to display in the following format: 2 decimal places (e.g., -0.56) number signs "+" and "-" (e.g., +0.76 or -0.34) I've tried many different things, but I ...
1
vote
1answer
353 views

How to copy/paste an OverHat symbol into Microsoft Word 2010 properly?

I have problem with output traditional form of sign above the constant. When I copy/paste in word it is far away up. Is there solution for this? ...
1
vote
1answer
44 views

Function does not initialise variable as changes are made in the manipulate function

My function "DefineRss[]" takes in three arguments and outputs a plane value. It sits in the first argument of the function plot3D and that in turn sits in the manipulate function The function also ...
1
vote
1answer
72 views

How to select a list from a list?

I have a list contains three vertices of a triangle. ...
1
vote
1answer
60 views

Formatting output for readability

I would like to suppress the argument [0, 0, 0, 0] of K in the output of ...
1
vote
1answer
69 views

How to update Print-out “in place”?

I want to run an exhaustive search algorithm that will take several hours to finish, so I'd like to have it execute Print statement periodically, showing the ...
1
vote
1answer
77 views

Typesetting help

I have a rather simple question that has me flummoxed. Let's say I have two matrices: m1 = {{a1, a2}, {b1, b2}}; m2 = {{u1, v1}, {u2, v2}}; I am looking to ...
1
vote
1answer
40 views

Evaluation of m.v is blocked by applying MatrixForm. Why? [duplicate]

I'm trying to understand what is happening in the notebook session below. I have a 2x2 matrix m = {{-1,-1}, {-1,-1}}. And a vector ...