Specify and control how Mathematica formats its output, including rich text, equations and graphics.
1
vote
4answers
33 views
6
votes
1answer
75 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 ...
8
votes
1answer
80 views
Notebook[] vs. DocumentNotebook[]; display a Notebook[] inline, like a DocumentNotebook[]
If you evaluate a DocumentNotebook[] expression in the front-end, it nicely displays inline, inside of an output cell in the current notebook:
For my purposes, ...
3
votes
1answer
28 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
104 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 ...
-2
votes
1answer
74 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
133 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 ...
1
vote
3answers
80 views
iterate method to find roots
This code gives the roots (lambda-values) of eq1 by using iteration.
...
4
votes
1answer
79 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 ...
-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
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:
...
-3
votes
1answer
91 views
How can I solve precision problem [duplicate]
I want to set 2 decimal places, whether it's real Number or anything.for that purpose I wrote the following function.
...
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
...
1
vote
2answers
125 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
...
5
votes
1answer
98 views
How can I fix Mathematica's text line-breaking algorithm not to line-break so soon?
I have some custom plotting functions that simplify the placement of footnotes and source notes under the plot. It is important that the line length of the footnotes fills up the available space and ...
3
votes
1answer
39 views
PaddedForm adds an additional padding character
I would like to get a sequence from "01" to "10". I tried
...
2
votes
4answers
244 views
How can I format a table to look nice?
I have this code, but i would like to see the results well formated,
How can I obtain a well formatted data with aligment?, similar to this one
insted what i obatin, you can see here
Here is ...
3
votes
1answer
120 views
How can I efficiently write formatted data to a Gaussian Cube file?
I am working with data files that contain information about electronic wave functions. The data format is specified by the quantum chemistry program Gaussian. I need to import the data, manipulate ...
5
votes
1answer
75 views
How to apply tags to expression terms?
I often see on this site and at the mathgroup the repeated questions on how to rearrange expression that Mathematica "likes" to keep in one form, but the user prefers in another. Consider this trivial ...
1
vote
2answers
74 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 ...
0
votes
0answers
109 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 ...
2
votes
0answers
103 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 ...
3
votes
1answer
61 views
How do I edit the background of Axis labels in my plot?
I'm using the standard report stylesheet in Mathematica and when I output a plot, I've set it up so that I get a white background, however the axis labels still have a gray background. How do I change ...
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
3answers
120 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, ...
0
votes
0answers
116 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 ...
4
votes
3answers
154 views
Replace very small numbers by zero in the output of a list
I have a long nested list, but many elements are numbers of order 10^-18 or less, eg
...
1
vote
2answers
129 views
-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:
...
4
votes
1answer
178 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 ...
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 ...
8
votes
2answers
207 views
Soft-Match String Comparison
I have a list of names in which I would like to check for duplicates. However, within the list, the duplicates may not show up as exact duplicates of each other - for instance,
...
7
votes
3answers
118 views
Wrapper for inexact numeric complex numbers that maintains polar form
Related question:
How can I convert a complex number a+b I to the exponent form A Exp(I phi)?
Mathematica insists on displaying complex number in form a+I b when ...
6
votes
4answers
177 views
How do I display an expression with negative powers?
How do I display an expression with negative powers? Mathematica seems to always invert a term with a negative rational power. None of the following work:
...
-4
votes
2answers
76 views
4
votes
1answer
101 views
Why this code is considerably slower in version 9?
I have a Mathematica code for computing and plotting the density which corresponds to a given potential. The following code was written few years ago using version ...
2
votes
1answer
58 views
How to change the output format of a built-in function
Is it possible to change the output of build-in functions?
I would like to change the output for IdentityMatrix[n] to "I", so I tried
...
4
votes
1answer
77 views
How to substitute $x$ in a expression $f(x)$ but not calculate the value of the $f(x)$ at the point $x$?
I want to subtitute $x = 1$ into the expression $$f(x)=x^2 + 3 (x^2 - m^2) + \sqrt{x^2 + 1}$$ but I don't calculate the value $f(1)$, that is mean, I want $$1^2 + 3(1^2-m^2)+\sqrt{1^2 + 1}.$$ If I ...
18
votes
7answers
533 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?
-5
votes
1answer
129 views
Mystified by inability to find info to do what seems really basic [closed]
Trying to do some basic algebra here, have input 12 expressions. I would like to label the output so that I can connect the outputs to the context of the inputs, within the output line.
Having ...
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 ...
6
votes
2answers
249 views
How to change an expression to Fortran90 form?
I have a large expression produced by Mathematica. To use this expression in my Fortran program I need to change it to a Fortran90 form. I am not satisfied with the ...
5
votes
1answer
55 views
Using CellPrint with a TraditionalForm string
I am trying to use CellPrint to print a cell that asks a user to solve an equation. This equation is randomly generated right beforehand, and I would like to have it print in Blue. The whole Cell ...
6
votes
2answers
153 views
Is there a way to programmatically set global preferences?
Can I set global preferences that are accessible via "Edit"->"Preferences" programmatically from within a notebook?
As learned from this question, turning off anti-aliasing can make a huge difference ...
2
votes
4answers
441 views
How to export data files using specific format
Very often, I have to export data files from Mathematica. These output files contain several columns and hundreds of lines with data. For the sake of the question let's create a sample list
...
0
votes
2answers
94 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
116 views
1
vote
1answer
78 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)) ...
6
votes
3answers
154 views
How to make rational expressions formatted using FractionBox
This is what I get using Mathematica 9.0.1.
Instead I want this:
I know how to use MakeBoxes, Format and I thought this code would work:
...
7
votes
1answer
147 views
How to change brackets in TraditionalForm output
I'm trying to improve TraditionalForm's output by using different brackets when there are more than one. For instance, instead of $u(v(r(b))))$, I'd like to get ...







