Tagged Questions

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

learn more… | top users | synonyms

1
vote
1answer
684 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$$ ...
0
votes
0answers
36 views

Output of the comand Put

I have a do loop in which I "Put" a ListPlot of a list in every iteration by doing Put[ListPlot[list],"file"] While the process is running and is still not ...
0
votes
0answers
111 views

HypergeometricPFQ

I am trying to get a simple but relatively ugly result out of the following summation, however, mathematica gives me an expression which includes HypergeometricPFQ. Obviously, I am doing something ...
2
votes
1answer
121 views

Set Page Width of PDF

I have a very simple question. I am using the student version of Mathematica 9, and I often do my homework in it. I type up a notebook, and then save it as a PDF using the "save as" option. However, ...
-7
votes
1answer
118 views

Simplify looks ugly [closed]

I use Simplify mostly to make expressions look neat. However, Mathematica often does not produce expression in, what I consider, the optimal way. Look at this: ...
0
votes
1answer
49 views

How to change the order of the variables in an output? [duplicate]

I have this output: a(b + c)d + 3 But I want it to become like this: ad(b + c) + 3 How can I do that? Is there a way ...
3
votes
2answers
123 views

How do I NOT change the input/output number when editing?

I tried to search for a topic on this, but didn't seem to find anything, so here goes. I'm pretty new to Mathematica, so there are a lot of things I don't know yet, but one thing is pretty annoying ...
3
votes
3answers
182 views

Generating a list of questions (simultaneous equations)

I am trying to create a list of simultaneous equations showing steps, where I only need to change a, b and the question number, and maybe a couple of minor things about q (where q is the factored ...
2
votes
2answers
196 views

Converting from TableForm to Grid

I wonder if there is an easy way to convert from TableForm to Grid. I have an existing data format that uses the Table function that I’d like to prettify…. Let’s setup a nested table as follows: ...
3
votes
1answer
123 views

Is it possible to show Tooltips in a ListPicker menu?

Is it possible to show Tooltips in a ListPicker menu? This effect is possible using TabView, but I would much prefer using ListPicker. Below is a simplified version of my code. ...
0
votes
0answers
41 views

Explicit multiplication * sign in Mathematica [duplicate]

I need to turn my Mathematica output (in string form) to a form that I then need to feed to Maple, and specifically I'd need all multiplications to be marked by * (as opposed to x or, as it happens ...
0
votes
1answer
75 views

Combine multiple outputs into a pane [closed]

Probably unnecessary detail: So here's what I'm envisioning. I have several outputs from different calculations (perhaps several ListAnimated tables of GraphicsGrids of plots). In one, I did all the ...
0
votes
0answers
67 views

Preventing numeric constants from being pulled out of square roots

If I input Sqrt[2 g], Mathematica automatically pulls out the 2 and returns Sqrt[2] Sqrt[g]. ...
0
votes
0answers
29 views

Make output be to a certain number of places after the decimal point [duplicate]

Mathematica has this nasty habit of giving me output that uses significant digits, so I'm getting output like 0.0944307 and ...
4
votes
2answers
470 views

specify field width in Print

I would like to format the output. For example, the following code gives ...
7
votes
1answer
245 views

How to substitute the following conditions into an expression?

I have an expression: $p=a\;b\; x + b^2\; y + a\;c\; z$. I want to substitute $a\;b=1$, $b^2 = 2$ and $a\;c = 4$ to obtain $p = x + 2y + 4z$. How can I tell Mathematica to do that? I dont know how to ...
3
votes
4answers
137 views

How do I prevent exponents from being expanded when displaying text

I have a power of 2 in a list, and I want it to show as $2^{31}$ (2 with exponent 31), not 2147483648. I've tried this: ...
0
votes
1answer
55 views

Specifying Table/grid dimensions in version 7

The result of my calculations is quite large list (nested list to be precise). I would like to improve its visualization, to make it more legible, by setting the number of columns to let's say 5. ...
0
votes
0answers
41 views

Set form of all output to InputForm

I try to interact with mathematica using MathLink for symbolic computations. By default it returns strings such as 2\012-1 + E\012-------\012 3\012 E if the ...
0
votes
0answers
99 views

Why is my answer being displayed with “Subscript^(0,1)[a,b]”?

I type in my equations using ctrl+- to make it look nice and my answer outputs in "Subscript^(0,1)[a,b]" form? What is going on? In the answer some bits are displayed with the actual subscripts and ...
2
votes
2answers
144 views

Generating an editable table that can be used as input

Say I have a number $n_{max}$. I want a command to generate a table like 1 1 2 2 3 3 4 4 ... nmax nmax where the second column is editable, and this table can be ...
1
vote
1answer
218 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 ...
5
votes
3answers
268 views

How to change the color of specified digits in a number?

I've been playing with numerical approximations for irrational numbers, and would find it convenient to be able to highlight where these approximations deviate from the known correct answers. For ...
1
vote
2answers
401 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 ...
11
votes
1answer
207 views

How to suppress Tooltip in built-in templates?

...or maybe switch the message. But I will be happy with no Tooltip at all. I've naively tried with ...
1
vote
0answers
66 views

Symmetric FrameMargins problem

Such details are driving me crazy while creating GUIs with Mathematica: ...
0
votes
2answers
99 views

Hide function arguments (from unknown functions) for simpler output [duplicate]

How can I print my expression with my function's arguments hidden? For example: exp=A[r,z]+B[s]^2; HideArgs[exp] Output: ...
2
votes
3answers
113 views

How do I save a Unicode string?

I am having a problem saving a long complicated string with Unicode characters in it. I have boiled the problem down, I think, to this minimal example: ...
2
votes
1answer
58 views

Extract Style Attributes from Style[]

Can you extract the Style attributes from a variable. For example: var = Style["aString", Bold, 24] You can get back "aString" by using ToString[var] but I am ...
2
votes
1answer
107 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 ...
6
votes
3answers
120 views

Multiplication sign in TeXForm?

How do I get Mathematica to produce TeX output that does not omit the multiplication signs ? For example, this expression: ...
0
votes
2answers
52 views

Numeric output formats

I want to print the expression $A[x] = 8020.6596 \times 1.055^x$ as is on a 2D graphic. I included the line ...
11
votes
3answers
820 views

How to make Mathematica graphs in Microsoft Word independent from Mathematica?

When I open a .docx file containing Mathematica graphs on a computer without Mathematica software installed, the graphs look corrupted. For example, ...
1
vote
2answers
138 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 ...
2
votes
1answer
86 views

ScientificForm problem

Consider this code: ...
3
votes
2answers
237 views

Manually adjust graph vertex location by dragging?

Sometimes I have a graph and I want to make tweaks to the vertex locations. Is there any way to manually adjust graph vertex location by dragging? If I double click to edit, I can move around the ...
2
votes
0answers
61 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 ...
1
vote
1answer
100 views

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

I have a triangular list of lists as follows: ...
0
votes
3answers
323 views

How to get back name of the number from Max function? [duplicate]

So I have this question, using a toy example: a={1,"this"}; b={2,"that"}; result=Max[0,a[[1]],b[[1]]] the result will be 2. However what I want to obtain is ...
1
vote
1answer
46 views

Financial number format

How can I change this function: nFormat=NumberForm[#,{\[Infinity],2},NumberPoint->",",NumberSeparator->".",DigitBlock->3,ExponentStep->10]&; So ...
2
votes
1answer
150 views

How can I exhibit the evaluation of formulas in a Mathcad-like way?

How can I create a function F that works like this: x = 2 f1 = x^2 + 3 f2=x+5 F[f1] x^2 + 3 = 2^2 + 3 = 7 ...
8
votes
1answer
202 views

How do I indent C code generated by SymbolicC?

I'm continuing to experiment with the SymbolicC` package, and it's crucial to be able to inspect the generated code in order to do, well, anything useful with it. ...
0
votes
0answers
64 views

Formatting numbers for sending to the WolframAlpha[] function

I have a function that gives me a number of meters; how do I attach "meters" to it and send it to WolframAlpha? The function generating the result isn't a unit-aware calculation or anything: ...
2
votes
0answers
168 views

Symbol with Subscript but no quotes in it!

If I use the following function to define me a fancy subscript: ...
1
vote
4answers
197 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 ...
11
votes
1answer
584 views

Any way to make my equations look better, more Latex like?

I find that the equations I write in Mathematica are not always publication quality. Here is a typical example: If I copy as Latex, then I get the following code: ...
7
votes
1answer
129 views

Problem with exporting nested Rows/Columns to HTML

I will show the problem on the following MWE: Export["test.html", Column[{ Row[{"test", "1"}] }], "HTML", "CSS" -> None] ...
2
votes
1answer
103 views

Add text before TraditionalForm

Using Print[], I know it is possible to print out "helping text" to better understand a solution: Print["The solution is: ", x] if x holds some value. Now, this ...
2
votes
1answer
144 views

Derivation after substitution not working

I have a code that will output an expression in form of a functions like this ...
10
votes
6answers
737 views

Ugly output when combining 2 plots with GraphicsRow

Here are the data that I want to plot: ...