Specify and control how Mathematica formats its output, including rich text, equations and graphics.
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
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
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
2answers
164 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 ...
2
votes
2answers
198 views
How to display a different number of significant digits in each column of TableForm output?
Say I create a table with three columns of numbers. Is there a way to control the number of significant digits displayed in each column. To make this concrete, take the following command:
...
2
votes
2answers
83 views
Getting the complete Cell expression some input would generate as output
I can think of calling Print and then SelectionMove to copy the expression and then delete it. Is there any more transparent ...
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
...
2
votes
2answers
577 views
Mathematica output doesn't work as input
Sometimes when I do, for example, a series expansion Mathematica gives me output that it won't take as input. For example if I do a series expansion:
...
2
votes
1answer
151 views
How to draw a pane with rounded corners?
Pane[
Style["text is here", Bold, FontColor -> Darker[Gray, .6],
Background -> Red
],
Alignment -> {Center, Center}
]
How to let the pane have ...
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 ...
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. ...
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 ...
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:
...
2
votes
1answer
110 views
How to write output to an external text file in addition to the standard output stream?
How to write output to an external text file in addition to the standard output stream, i.e. a notebook for a session with FE and stdout for command-line session?
2
votes
1answer
155 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
0answers
102 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 ...
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 ...
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 ...
1
vote
4answers
129 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
119 views
Write a table to a file
I want to compute a multidimensional table in Mathematica and write it to an external file. Here is a simple example. I have three lists x, ...
1
vote
3answers
407 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
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 ...
1
vote
2answers
119 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
...
1
vote
2answers
128 views
1
vote
2answers
73 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
181 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
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
3answers
80 views
iterate method to find roots
This code gives the roots (lambda-values) of eq1 by using iteration.
...
1
vote
1answer
52 views
How to apply multiple format to a list
I have a nested list like
matrix = {{1.2345664, 2.38673956, 3.567846}, {0.00034554, 124.4554654,
6.34543}, {0.0000233, 244.34454, 2}}
and I want to apply ...
1
vote
1answer
68 views
Trig angles simplifying in worksheet
I would like to generate a table of trig questions such as:
...
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.
...
1
vote
0answers
71 views
TableForm behavior change
In an older version NoteBook, I was able to specify some options for TableForm, which enabled
the printing of an expression in a simple fashion:
...
1
vote
1answer
75 views
output format including complex numbers [closed]
I have the following output. How can I convert this unnecessarily long expression into a single result (like z=u+iv) ?
$\frac{(\text{} (0.0000540641 +0. i)-(0.0000422121 -0.0000372664 i)) ...
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 ...
0
votes
2answers
275 views
How to generate table without comma and bracket or get rid of those?
I want just data without comma and brackets. Even TableForm is not working for me.
For example, the general pattern of my table is
...
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, ...
0
votes
2answers
123 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 ...
0
votes
1answer
108 views
Giving value to a constant so that Mathematica simplifies the answer without having to do the whole operation again
I am doing some nasty integrals trying to fill in a matrix, and to save computation time, I set my hbar to be a constant of undefined value, so the answer it spits out consists of a real number plus ...
0
votes
2answers
93 views
How to get special solutions of this system of equations?
I only want to get all the solutions of this system of the solutions with a value of $k$, we have the same values of $m$
...
0
votes
1answer
36 views
How to delete duplicate solutions of this system of equations?
I want to find vertices (has integer coordinates) of the triangle $ABC$ with the centorid is $G(1,1)$ and orthocenter is $H(3,3)$. I tried
...
0
votes
1answer
53 views
Formatting Equation Output Neatly
I looked around and couldn't find the answer to this anywhere, so I'm sorry if this is a bad question - I'm pretty new to mathematica. I wrote a program to help me compute some annoying series ...
0
votes
1answer
115 views
0
votes
0answers
107 views
How to find the couple $a$ and $b$ of the equation? [closed]
I want to find the integers numbers $a$, $b$, $k$ of the equation
Sqrt[2 x + a] + Sqrt[b - 2 x] == k
so that the given equation has two reals solution.
I ...
0
votes
0answers
114 views
Export to pdf from Mathematica using Greek characters
When I try to export Greek characters from Mathematica to a pdf file, the pdf is filled with unknown characters. Please note that i have no idea about Mathematica, I have just installed it today.I am ...
0
votes
0answers
65 views
How to get a more traditional-looking for protected constants
Is there any solution to make rule to export as a traditional form protected constants. Here is example which doesn't work.
...
0
votes
0answers
76 views
How to display detailed output in Mathematica [duplicate]
Possible Duplicate:
Get a “step by step” evaluation in Mathematica
How does Mathematica integrate?
I want to display more detailed output from a calculation. The default command for ...
-1
votes
1answer
46 views
How can a 3DBarChart be made to be fixed size and proportions?
I have a 3DBarChart that adds bar graphs as would be required by the dataset, but as it gets wider runs off the page and can not be printed. Is there a way to fix the height & width of the ...
-1
votes
1answer
66 views
Dynamically show a specific number of the fractional part's digits
What is the fastest way to cut off all n z digits of the fractional part of a real number?
(For example 12390.20934230)
I came up with this so far:
...
-2
votes
2answers
318 views
How to write output in TraditionalForm into external text files?
I'd like to write output in TraditionalForm into external text files ofile.txt. I tried to use
...


