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

learn more… | top users | synonyms

10
votes
5answers
208 views

Tidy form of numbers with errors using ScientificForm

Say I've computed something and got a number 0.02112398 with a computed error: 0.000331 Formatting it with ScientificForm[0.02112398 \[PlusMinus] 0.000331] gives ...
5
votes
1answer
66 views

Customized FortranForm output

Let's take the following example V = (-G*Mn)/Sqrt[x^2 + y^2 + z^2 + cn^2]; Vx = D[V, x]; FortranForm[Vx] The result is ...
4
votes
2answers
72 views

How to scale multiple graphics to preserve relative sizes?

I'm looking for a simple way to make the displays of different Graphics expressions accurately reflect their relative sizes. (By "simple" I mean that it does not ...
5
votes
1answer
112 views

Set PlotTheme globally?

Can one set a default PlotTheme globally? While I recognize one can make lots of workarounds to sort of do this: Go to ...
2
votes
1answer
55 views

Change Tensor Product symbol for aesthetically pleasing output

I'm trying to find a way of keeping an ordered list of subscripted integers which can be outputted in an aesthetically pleasing way to make analysis easier. The idea is to have a list of numbers that ...
6
votes
1answer
78 views

Prepare mathematica output to be parsed in Python

I have Mathematica output that I would like to parse in python so I can generate equivalent expressions. So suppose I have the following: ...
5
votes
1answer
105 views

How to specify the square-bracket analogue of MatrixForm?

MatrixForm uses "round brackets" as delimiter. These are like parentheses, but contrary to "regular" parentheses, they stretch vertically to accommodate the height ...
0
votes
0answers
44 views

Output of List formatted strangely

I'm running a monte carlo simulation which uses random input data and performs calculations on it, and then outputs a 100 by 100 sized array with my data. The code works without a problem but for some ...
0
votes
0answers
26 views

Mathematica hangs when computing page breaks

I'd like to set pagebreaks in my notebook according to my needs. But now I have huge problem with see print preview or saving as pdf because it gets stuck during computing page breaks on several dozen ...
2
votes
2answers
39 views

Format polynomial output for cutting and pasting into a text file

Suppose I have the polynomial given by the determinant of this matrix: matry = {{1 - R, 3, -3}, {1, 0 - R, 0}, {0, 1, 0 - R}} I am feeding the Mathematica output ...
2
votes
1answer
46 views

Change cell frame color in stylesheet

I am tryin to make a custom stylesheet but I am not able to get rid of the cell frame color from the base stylesheet. In particular I have, where I have changed the background color of the cell to ...
0
votes
2answers
107 views

Formatting the results from solving a differential equation

{{x[t] -> 600 (t + I π t - 50 Log[50] + t Log[50] + 50 Log[50 - t] - t Log[-50 + t])}} After solving a differential equation, I get an answer in a form where I ...
0
votes
1answer
55 views

Showing all Digits

What is the simplest method to display all digits by adjusting this code? t = Table[1 + 10^(-n), {n, 1, 10}] // TableForm Output: 1.1 1.01 1.001 1.0001 ...
4
votes
1answer
67 views

Continuous background color of adjacent cells

I'm trying to make continuous blocks of cells so that their background colors are the same, but without breaks of white space between them. E.g. After some recent digging, I found the option "Show ...
2
votes
1answer
45 views

How to write a function that returns the combined output of several built-in functions

I am trying to make a module that takes a Boolean function, and prints the following: the function's truth table the function's NOR epxression the function's minimal Disjunctive normal form So far ...
1
vote
1answer
58 views

Import a jpeg file and a mov file and display them side by side

I am planning to use Mathematica for a presentation. In one of the slides I need to place a jpeg file side by side to a mov file. ...
0
votes
0answers
28 views

Give the result in separate lines

I have the following command Reap[Do[If[GCD[i, 7280] == 1 && Mod[729*i, 7280] > i, Sow[{i, Mod[729*i, 7280]}]], {i, 0, 7280}]] which gives pairs ...
2
votes
2answers
223 views

How to make Mathematica show matrices and vectors nicely

It shows me like {{0}, {1}, {0}, {-1}} . Is it possible to make it look like a vector, always?
4
votes
2answers
42 views

How to print unevaluated arguments in the form they were originally typed in?

I'm looking for a way to print a function's arguments, not only unevaluated, but also in the way they were originally typed in. By way of experimentation, I tried stuff like this: ...
1
vote
3answers
70 views

how to create, print and use variables using a loop in Mathematica?

I want to create, print and be able to use (i.e. do symbolic operations) variables in Mathematica using a for loop or equivalent. So, I have a bunch of variables of this form: $$dS_i = -\beta_i ...
1
vote
1answer
43 views

Button labels in different platforms

if someone has Mathematica on a mac or a Linux system, could you please evaluate this code: ...
3
votes
2answers
134 views

Alignement of text

I adopted the following clever code from Mr. Wizard (see here ). HoldForm[+##] & @@ RandomInteger[100, 2] I want to prepare a practising table of addition ...
0
votes
1answer
58 views

writing data in defined format into file

I have a code that writes datas into file using PutAppend[]. A simple form of the code is written below, ...
0
votes
2answers
68 views

How can I put the results of TrigFactor function into a more convenient form?

a1 D11 Cos[n x] + a0 a1 D11 Cos[n x] + 1/2 a1 a3 D11 Cos[n x] + 1/2 a2 a4 D11 Cos[n x] I have a large trigonometric expression. Can I factor out different ...
1
vote
0answers
34 views

Partial Differential Formatting by default

I read http://blog.wolfram.com/2011/12/15/mathematica-qa-series-converting-to-conventional-mathematical-typesetting/ and I could use pdConv mentioned there, or ...
1
vote
2answers
44 views

Creating subscripts from a list

I want to use Subscripts to prettify a matrix and started the following way ...
1
vote
1answer
207 views

How to plot a 3D surface from an Excel matrix, using column and row headers as axis labels

I am trying to use Mathematica to plot a surface chart similar to the ones that are created from Microsoft Excel. The point is to be able to easily colorize and manipulate the plot by free 3D ...
0
votes
0answers
60 views

Interpreting Mathematica output or producing cleaner output

Could someone please explain what the following would look like in standard math notation (or explain to me what this means): ...
0
votes
0answers
44 views

DifferentialRoot

I want to obtain y(x) of following answer with mathematica: and my code is ...
0
votes
0answers
58 views

Format something Inactive

...
5
votes
3answers
89 views

How to label only leaves in TreeForm?

I have a Huffman encoding represented as a list in the following manner: encoding = {{{w, d}, {o, s}}, {{{e, q}, a}, {i, j}}}; This means that ...
0
votes
1answer
75 views

Why does my function return an expression rather than a number? [closed]

I feel like I'm going insane. I have a function $f(x)=e^{-x^2}$ which I need to evaluate using forward, backward and central first order finite differences with intervals ...
2
votes
1answer
37 views

Cannot normally underline slash characters and hyperlinks

Really, if you evaluate Style["/", Underlined] or type / and set the font of the character to be underlined through Format|Font..., you get $/$, not ...
1
vote
1answer
65 views

Eigenvectors with imaginary part

I am working on the following: ...
0
votes
0answers
31 views

Problems with my units? [duplicate]

I have my own unit is called "Euros" Input:5 Euros -3 Euros Output:2 Euros Input:5 Euros - 5 Euros Output:0 How can I make to get 0 Euros? Output: 0 Euros->That I want to get.!!!!!!!!
0
votes
1answer
53 views

Is there a function or option to collect factors under one radical sign?

One of the things that frustrates me most about Mathematica's symbolic manipulations is the fact that output is often presented quite differently than most humans would write it. This is especially ...
0
votes
0answers
35 views

How can I export a notebook into multimarkdown?

Mulitmarkdown (.md filetype) is a very nice document format that supports rendering mathematical expressions like latex or mathml, rendering syntax highlighted code blocks for any language, as well as ...
3
votes
2answers
74 views

Two bit strings represented as lists – how to color differing bits as red while printing?

Assume the following code generatedMsg = {1, 0, 0, 0, 1, 1, 0}; transmittedMsg = {1, 1, 0, 0, 1, 0, 0}; Now, I want to print out something along these lines: $$ ...
1
vote
1answer
80 views

Why does Mathematica remove some formatting?

I'm trying to save a file as PDF. Using SetOptions[$FrontEnd, PrintingStyleEnvironment -> "Printout"] so it looks nice. There are a bunch of formulas, and every ...
0
votes
1answer
106 views

Problem with using GraphicsColumn

I have three plots defined as: ...
3
votes
1answer
79 views

Show Full Output button broken for all large outputs

I use Mathematica 9.0.1.0 on Mac OS X 10.10.3. As an example of my issue, we can follow along with the example from the documentation page for $OutputSizeLimit. ...
0
votes
1answer
59 views

How do I apply a conditional append rule to plot randomly chosen points?

I'm working on an attempt at forming a sort of "Mandelbrot" set using Newton's method and randomly chosen points. Effectively I need to define a loop for Newton's method to determine whether my points ...
0
votes
1answer
74 views

Unexpected results from output with NumberForm and ScientificForm

I wrote this little function to help me export tables with formatted numbers to files: (By the way, if you have suggestions on how to make it more efficient and compact, it would be great) ...
0
votes
0answers
35 views

Is there any way to format the results of Wolfram|Alpha

I have noticed that when getting Wolfram|Alpha results via WolframAlpha[], the output is formatted to (what appears to be) Times New Roman and Helvetica for units ...
0
votes
0answers
80 views

Are there examples that arrange graphs or plots with Mathematica?

If we have 4 graphs or output plots, could we arrange them and merge in one graph elegently?
1
vote
1answer
110 views

How to get output in a specified format

In Fortran, we can easily get the stardard and easy output format. Now, we only focus on the Integer output. See here How to realize this kind of output as formatted text file using Mathematica ? ...
0
votes
1answer
45 views

Weird subscript name in output [duplicate]

One of my first times using mathematica, I'm getting a weird Subscript(1,0) output when I try to solve a derivative. What is going on and how can I fix this?
4
votes
2answers
122 views

How do I display function application with square brackets in traditional form?

If I type C[x, y] // TraditionalForm I get something that looks like C[x, y] But if I type ...
3
votes
0answers
37 views

Out[x] not the same as assigned expression [duplicate]

There seems to be a difference in the way Mathematica assigns a value to a variable and the way it assigns a value to the next Out object. I don't understand why this is happening. For instance, take ...
1
vote
1answer
55 views

Printing names of indexed variables instead of values

I'd like to display only the variable (indexed variable) name (in symbol form, not in string form) instead of its value in Mathematica. Say I have a variable foo[i] ...