Tagged Questions

Questions on typesetting and making your expressions, matrices, operators, equations or formulae look how you want them to.

learn more… | top users | synonyms (1)

2
votes
0answers
49 views

Notation, Format and Interpretation

I am unclear on the exact relationship between Notation, Format and Interpretation. ...
0
votes
0answers
46 views

Applying Notation rules retroactively to a notebook

Suppose I define a new notation rule like Notation[OverBar[x_] ⟺ mean[x]] If I already have some notebooks that were written using ...
0
votes
1answer
267 views

Heat Transfer equation by numerical methods

I want to solve the following heat conduction equation using numerical methods: D[u[x, t], t] -alpha*D[u[x, t], {x, 2}] == 0 u[x, 0] == 1/(1 + x^2)^0.25, u[-10, t] == u[10, t] == 0, ...
5
votes
2answers
169 views

Forcing Mathematica to typeset parentheses

I use the definitions from this post to typeset formulas in lecture slides. This is my function definition: ...
1
vote
1answer
600 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$$ ...
2
votes
0answers
58 views

Maintaining postfix convention for directives in notebooks

It seems to be a fairly common convention to write certain 'meta' functions in postfix form like f[x] // Simplify to keep the the mathematical content at the ...
2
votes
1answer
61 views

Is It Possible To Replicate Tab Stop Behaviour (or Even PageFooter Behaviour but in Regular Cell)

I am trying to insert a (text) cell into a notebook that replicates the behaviour of tab stops in MS Word, for example. Put differently, I have two strings and I want the one string to align on the ...
1
vote
1answer
108 views

About making a fraction “taller” [duplicate]

I encountered 2 problema with displaying formula in text format. The variables in the formula is italic, I want to change them to normal. And the fraction size is too small, I want to make it to ...
0
votes
0answers
35 views

How to prevent auto spacing/alignment?

When using notebook, I find that sometimes when I type, it will automatically indent for me. How can I block this function?
5
votes
2answers
99 views

How to robustly apply ToBoxes to a Dynamic expression?

Inserting a Dynamic object in a boxform expression messes up syntax colouring. See the following example. where the variable ...
1
vote
2answers
81 views

Extract the real components from a very large expression

Suppose I have a very long expression (>500,000 characters) which contains a mixture of real and imaginary terms. e.g ...
1
vote
1answer
549 views

Euler's method for system of differential equation

I need to program Euler's method to solve a system of two diffferential equations of first order. Fist, I have programmed the Euler's method for just one differential equation: ...
1
vote
2answers
125 views

Is there a way to “hold” prefix / infix / postfix notation?

Is it possible to preserve a specific style of notation in $Mathematica$ output? foo // bar (* bar[foo] *) Hold[foo // bar] (* bar[foo] *) I'm writing some code ...
3
votes
2answers
220 views

Copy and paste behaviour with Subscript

I tend to use a lot of subscripts in my code, and I am aware that copy and paste of subscripts from Mathematica to MathematicaSE (or any text editor, for that matter) is screwy in the sense that $a_b$ ...
2
votes
1answer
65 views

Why is left NumberPadding always applied in NumberForm?

I would like to display numbers like 9.0001 and 10.0001 in the fixed-width form of xx.xxxx. ...
1
vote
1answer
179 views

Programming- cryptography

I have defined the following function in Mathematica to get a SET OF m SETS (these sets are the codes {p,q,d,e,n} for the ...
7
votes
3answers
200 views

Formatting an equation on a plot

I am trying to label a plot with an equation. The problem is that Mathematica formats things almost well but not exactly. The parenthesis are of the wrong size, and the powers are not high enough. ...
2
votes
0answers
97 views

How do I toggle between the program snippet form of a displayformula and the human readable form of the equation?

I have a DisplayFormulaNumbered cell in my Mathematica notebook. If I use the Cell | Convert To menu item to convert the cell to Standard or Traditional Form, the formula is now rendered as a program ...
5
votes
3answers
1k views

Labeling points on a graph with their coordinates in parentheses

I need to create some graphs in Mathematica with a bunch of labels, such as axes labels, graph labels, etc. In particular, there must be some points that must be labeled with their coordinates. Thanks ...
2
votes
1answer
190 views

Typesetting - entering derivative in traditional form

I am trying to work out how I enter a differential in standard notation? I am familiar with using D, but everything I have tried to enter a differential has failed. ...
12
votes
2answers
232 views

Strange behavior when using Row with packed arrays

Bug fixed in 10.0.0 Today I lost a lot of time with a strange behavior and I narrowed it down to this small piece of code: ...
0
votes
0answers
26 views

Math cell symbols not in italics [duplicate]

If I type $y(x)=ax+b$ in a math cell, y, x, and b are italicized, but a and x are not. How do I make them italicized? I tried adding an \[InvisibleSpace] or a \[VeryThinSpace] in between, and it ...
1
vote
1answer
71 views

formatting an InputField with Dynamic [closed]

I have the following code Style["(" InputField[Dynamic[t], Number, ImageSize -> 30] ")=" PDF[NormalDistribution[μ, σ], t], 16] which doesn't result ...
5
votes
3answers
267 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 ...
7
votes
1answer
153 views

User-defined template; removing repeated text (v 9.0.1)

In Mathematica 9.0.1, I want to write a user-defined template for a function that I wrote: myfunc ...
2
votes
4answers
247 views

How to set magnification of image to 75%

Right click on an output image, choose magnification. There are 25%, 50%, 100% etc. But how can I set to 75%?
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 ...
0
votes
1answer
59 views

How to make the default table alignment “right”

The default table alignment is Center, however I would like to make it Right so that ...
3
votes
4answers
162 views

AccountingForm w/o significant figures

Basically I want to build a chart like something I would do in Excel. It should look like this: Here is the formula I'm using and what I've done so far ...
2
votes
2answers
65 views

Hyperlink shrink the image, how to make the image become original size

I found that Hyperlink[im, "something", ImageSize -> 800] The ImageSize only add some borders of my ...
0
votes
0answers
38 views

How to Align two inline cells

I'm playing with this question: here and here ...
1
vote
0answers
57 views

How can I control the size of exported image in HTML code under certain magnification value?

I've inserted a picture in one cell, however, when I exported the cell as HTML, the size of my image in the html tag was doubled(the image file in HTMLFiles was the same as the original image). I ...
2
votes
1answer
122 views

Embedding hidden information in styled text

I would like to convert a collection of digitized documents to Mathematica notebooks. They are formatted as XML, divided into pages. The XML contains formatting I would like to preserve, but I do not ...
3
votes
2answers
133 views

Assigning an equation as a variable

I am compiling a calculator where many slider parameters are used to define a value, where the defined value may then be reused to define another value. I am unable able to, or at least been ...
4
votes
2answers
114 views

Showing AlgebraicNumber[1/2 (1 + Sqrt[5]), {-3, 2}] in human-readable way

Is there a function to show algebraic numbers in Mathematica more conveniently? I am looking for something similar to MatrixForm for matrices. For example, I would like to view ...
0
votes
1answer
70 views

Using the actual subscript as a variable within thecontext of definitions using the Notation package and Symbolize

I've gotten into the habit of using subscripted variables, invoking the Notation package and Symbolize. Now, I'd like to be able ...
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 ...
3
votes
0answers
41 views

Is it possible to enclose code into collapsible/expandable regions? [duplicate]

In some programming languages (e.g. C#, Visual Basic) there are language constructs that have no effect on the execution of code whatsoever, but exist solely to allow grouping fragments of code into ...
9
votes
2answers
189 views

Pasting monospaced text into Mathematica notebook destroys aligment

I drew the little ASCII-art electronics schema below in vim. When i try to paste it into a Mathematica notebook, with: A) A code cell B) A monospaced font (Courier New) Mathematica insists on ...
0
votes
2answers
210 views

Using a table to format a grid

Ok, I can't wrap my head around this because I don't know Mathematica well enough yet, so I'm asking for help, at least a direction to explore in. I have a Grid: ...
5
votes
2answers
140 views

How to typeset a system of equations with multiple alignment points

I'm aware of how to align a system of equations on the = sign (or other single alignment point), but I'd like to align a system at multiple points so that each variable stays in its own "column" so to ...
2
votes
2answers
197 views

Iteration problem

I am trying to write a simple program - perform f1 as long as t is smaller than 800. t is ...
0
votes
0answers
61 views

Logarithmic scale in BarChart3D

I want to display my data in a logarithmic way in a 3d diagram. I found BarChart3D, which seems to be nearly what i need. I tried: ...
1
vote
2answers
149 views

How to select three points $A$, $B$, $C$ from the following list so that the circle passing $A$, $B$, $C$ has centre $(1,2,3)$?

I have the sphere $$(x-1)^2 + (y-2)^2 + (z-3)^2 = 36.$$ From the sphere, I find some points with integral coordinates. And select three points from this list so that the triangles are not right ...
2
votes
1answer
49 views

Suspend spacing between Repeated and number

The spacing of the first expression includes extra space before the 5. I would like to have the same spacing as the second line. ...
0
votes
1answer
1k views

Enlarge the axes text

Plot[Sin[x^2], {x, 0, 3}, AxesLabel -> {"x value", Sin[x^2]}] In the above code give a graph. In the graph the axes fonts are too small. My problem is that, ...
11
votes
2answers
280 views

Change base font for all graphics objects

How can I change the base font style for all graphics objects, including the ones generated using plotting functions? I would like to change this a single time and have it affect all graphics ...
1
vote
1answer
125 views

Looking for a input template for Limit

I'm using v. 8. I'm looking for a limit input template (analogous to the integral template), but I can't seem to find it in any of the palettes. Can anyone help? Edit: I'm looking for a 2D input ...
2
votes
1answer
248 views

Formatting results of a polynomial long division

I am teaching polynomial long division to my high school students. Not a pleasant topic to have to cover. I went to use Wolfram|Alpha and obviously, internally, they have a really elegant way to ...
1
vote
1answer
66 views

Avoid unnecessary truncation

Is there any way to change the general settings in Mathematica so that when I type e.g. 0.34*60000000 I get the output ...