Specify and control how Mathematica formats its output, including rich text, equations and graphics.
1
vote
0answers
71 views
How to control Boundary conditions after integrating over piecewise function?
The following code
...
0
votes
3answers
112 views
Removing -> from list of numbers [duplicate]
Possible Duplicate:
Best way to extract values from a list of rules?
If I have a vector v = {x->1.03, x-> 2.01, .... }, and I want to use an element in the list, I can get an element as ...
3
votes
2answers
120 views
How to remove border points from InputForm?
I have this code, and it generates the below ListStreamPlot. The second graph is the ListStreamPlot overlaid with the points ...
2
votes
1answer
90 views
Representation of product with exclusions
Is there a nice way to define output formatting for my expression, a product from n = k to j with ...
2
votes
1answer
114 views
What's the difference between the following two codes?
I have two codes to find the integer numbers $m$, $x$, $y$, $z$ in the system of equations.
First code
...
1
vote
1answer
68 views
Trig angles simplifying in worksheet
I would like to generate a table of trig questions such as:
...
5
votes
2answers
166 views
How to eliminate the zero real part of a purely imaginary number?
In Mathematica 9, a purely imaginary number, e.g. 0.9 I, will display as 0. + 0.9i in the output form. How can I eliminate the ...
2
votes
1answer
107 views
How can I export specific data into different pages in .PDF format?
I have made various Grid-s and arranged them column-wise in another Grid.
All Grids are ...
8
votes
3answers
201 views
Grid without lines, but with dots
I want to build a grid to look like the top-left table shown below, but without an outside frame.
Here is what I've tried to do:
...
0
votes
2answers
88 views
Changing order of TeXForm output
I am creating Taylor polynomials and exporting them using TeXForm. When a polynomial p[x] is displayed in Mathematica, it shows, ...
8
votes
3answers
212 views
Inconsistent display of TraditionalForm in version 9
After installing version 9, the default style sheet uses Arial font in text and formula cells. So far, so bad. At least one would hope this is done consistently.
But now I see this:
You can see ...
2
votes
0answers
100 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 ...
12
votes
3answers
257 views
How to keep Collect[] result in order?
For example,
Collect[(1 + x + Cos[s] x^2)^3, x]
gives the result
...
8
votes
3answers
201 views
Quickly display a color graphically
When manipulating colors, the output is shown as a textual expression like Hue[1/5], RGBColor[2/3, 1, 1/3], ...
3
votes
1answer
78 views
Force ellipsis to print an end of an expression
For pedantic reasons I want to display an infinite sum of fractions in fractional form (i.e. as 1/x not as x^(-1)) with an ellipsis at the end of the expression. I have tried a number of ways and ...
1
vote
2answers
193 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 ...
4
votes
3answers
290 views
Simplify function notation
I have some calculations with arbitrary functions. In the output, Mathematica always shows the functions with its arguments. I would like to tidy the notation a bit, by hiding the arguments in the ...
1
vote
1answer
202 views
How to export CSV from Mathematica?
I have previously been using
logf[x_, y_] := f[x, y] /. v_ :>(PutAppend[Unevaluated[f[x, y] = v;], "out.txt"];);
which produces output like ...
1
vote
1answer
141 views
Export image data precision
I'm sure there is a very easy way to control this, but I have been searching for an hour now without luck.
I plot a function and export it to get a table that I can use in TikZ.
...
2
votes
2answers
146 views
Awkward output of TeXForm
When I try to format a number that has a big exponent with TeXForm the following happens:
...
2
votes
2answers
167 views
How do I set the font for output in my stylesheet?
I'd like to change the font that Mathematica uses for output by setting the font of the corresponding style in my stylesheet; bit simply overriding the default ...
10
votes
3answers
279 views
Labeling plots without evaluation
This is my first question here so please excuse my mistakes.
Let us consider a rather contrived example:
...
4
votes
2answers
191 views
DisplayFormula not working as expected
How do I use the styles "DisplayFormula" and "DisplayFormulaNumbered"?
Why is there no margin (or empty space) around the ...
6
votes
1answer
221 views
Guides for programming CDFs
Are there any tutorials for programming high-quality CDFs, like the interactive calculus textbook presented at wolfram.com?
Mathematica's Help is extremely impressive but it really does not help much ...
5
votes
3answers
171 views
Wrapping EventHandler by Table
I am making a grid on the screen. The grid is composed of different expressions. I want all of them to have a Gray background, which turns into a ...
2
votes
1answer
120 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. ...
5
votes
2answers
326 views
How to receive the result of the integral $ \int\frac{1}{x}dx$ is $\ln|x|$?
When I input \[Integral]1/x \[DifferentialD]x in Mathematica, I get Log[x]. How can I make the result of the integral ...
5
votes
4answers
377 views
How to transform the result of this integral into powers of $\sin\,x$?
I want to calculate the integral
$I = \displaystyle\int{\cos ^5 x\, \mathrm dx}$. Using the variable $t = \sin x$, I get
$$I = \sin x - \frac{2}{3}\sin^3 x + \frac{1}{5}\sin^5 x + C.$$
With ...
2
votes
1answer
432 views
How can I format Mathematica expressions for $\LaTeX$ without manual intervention? [closed]
I want to show my work to my audience mathematically. My audience is not interested in Mathematica but in the math itself, so I want $\LaTeX$ output. I tried ...
11
votes
2answers
221 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 ...
4
votes
1answer
124 views
Printing Block Matrices
I have a 2D matrix, such as:
d=2;
M=Array[a, {d^2,d^2}];
and I would like to print it in a way which emphasizes its dxd block matrix structure. If ...
5
votes
1answer
243 views
Multi-column table layout the right way
How do I create book-like multi-column table formatting for a long, narrow tables in a preferably elegant way? Should I be thinking of stylesheets, instead of formatting? I guess this is a solved ...
8
votes
5answers
305 views
How to display equations without Mathematica simplifying them?
Say I'm trying to make a simple multiplication table and used
Table[i"x"j"="i*j,{i,1,9},{j,1,9}]
I'm trying to make it so that I can get a table of equations, ...
0
votes
2answers
124 views
Sum of roots of a trigonometric equation
The equation $$ \sin x + \sqrt{3} \cos x = 1,$$
where $x \in [-2\pi, 2\pi]$ has four roots $-\dfrac{3\pi}{2}$, $\dfrac{\pi}{2}$, $\dfrac{\pi}{2}$ and $\dfrac{11\pi}{6}$. Sum of roots of the given ...
16
votes
4answers
415 views
How do I introduce a new variable in a trigonometric equation?
I have the trigonometric equation
\begin{equation*}
\sin^8 x + 2\cos^8 x -\dfrac{1}{2}\cos^2 2x + 4\sin^2 x= 0.
\end{equation*}
By putting $t = \cos 2x$, I have
\begin{equation*}
\dfrac{3}{16} t^4+ ...
4
votes
1answer
450 views
How to ask Mathematica to display answer in “$\LaTeX$” form
I am not sure how to explain it, but whenever I compute something in Mathematica, the output always spits back the result in a Mathematica language as opposed to easy-to-read equations.
It's ...
4
votes
1answer
439 views
Reduce an equation by putting a new variable
I have the following equation given:
$$ (26-x)\cdot\sqrt{5x-1} -(13x+14)\cdot\sqrt{5-2x} + 12\sqrt{(5x-1)\cdot(5-2x) }= 18x+32. $$
In order to solve it, I want to substitute $t = \sqrt{5x - ...
3
votes
2answers
158 views
Context Sensitive Formatting for a Table
Suppose I am calculating the correlation of a a set of vectors.
Correlation[RandomReal[1, {5,5}]]
I would like to display the output using TableForm or Grid ...
3
votes
2answers
152 views
Representation of negative exponents [duplicate]
Possible Duplicate:
Way to improve “show me this decimal number to M places, don't use scientific notation”?
How can I expand e.g. number 1.*10^-8 so that there would be no ...
2
votes
2answers
158 views
How to output an expression as a Dot[] product
How to force Mathematica to output an expression such as
$a1u1+a2u2+a3u3$
as a Dot product like this one:
...
2
votes
1answer
349 views
Equation of the plane passing through the three points [duplicate]
Possible Duplicate:
How to put terms in lexicographic order?
I write the equation of the plane passing through the three points $A(-1, 5, -2)$, $B(2, 4, -3)$ and $F(4, -8, 6)$, and this is ...
1
vote
2answers
82 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 ...
11
votes
1answer
207 views
Formatting and printing lists with Mathematica scripts
I'm just starting out with Mathematica and I'm using MathematicaScript rather than the GUI. However, I'm having trouble formatting a list when printing it.
Suppose ...
2
votes
2answers
290 views
Calculate with units
If I want to calculate with units, for example using Pythagoras theorem, I would do this:
c = Sqrt[(3m)^2 + (5m)^2]
The result will be ...
3
votes
3answers
103 views
How to output an expression to an external file in “plain text” format without breaking lines?
Given a pretty long expression, such as
...
10
votes
1answer
292 views
How to put terms in lexicographic order?
Is it possible to have terms like f[w-c] be formatted like this and not like f[-c + w]. I use Mathematica (7.0) for simplifying ...
5
votes
2answers
411 views
3- dimensional plot of 2-dimensional systems of differential equations
Let's take this first example of a 2D output:
...
2
votes
1answer
191 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:
...
7
votes
1answer
116 views
Formatting Framed - some FrameStyle graphic directives don't work?
The FrameStyle option in Framed seems to work for some graphics directives but not others, eg:
Framed["yo", FrameStyle -> Blue]
But
...
8
votes
4answers
544 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. ...


