Linked Questions
13 questions linked to/from Displaying index as subscript on output: e.g. C[i] -> C_i with Notation[...] or Interpretation[..]?
18 votes
5 answers
6k views
Preventing Superscript from being interpreted as Power when using Ctrl+^ shortcut?
I have very strong desire to use superscript as the index of the variable. However, it looks like that the Mathematica automatically recognize the superscript as the power and I got message that my ...
19 votes
4 answers
2k views
Returning an unevaluated expression with values substituted in
Let's say I have a function formula[x_List] := (x[[1]] - x[[2]]) + (x[[3]] - x[[4]]); and I want to pass it a variable and get back the unevaluated formula with ...
20 votes
3 answers
4k views
Programming Mathematica in plaintext, i.e. no formatting, non-notebook
I'm new to Mathematica and I've just begun reading Paul Wellin's Programming in Mathematica. The book, like many other books and online tutorials, revolves around using the notebook, with all its ...
16 votes
2 answers
660 views
Pattern to match L, but not L[_]
I have an expression where I want to replace L but not L[_] For example, the following doesn't work and ...
9 votes
2 answers
9k views
Command line execution of Mathematica notebooks and conversion to .m
Sometimes one may want to execute a notebook via the command line (for example to run it remotely). As far as I know it's not possible to run notebooks directly, but ...
11 votes
2 answers
474 views
Why is `D[a[b][c],a[b]]` equal to `1[c]`?
Background: I had the same issue as described here, and I went to extend Mr.Wizard’s code such that a[b][c] would be shown as $a_b^c$. Issue: To my surprise, ...
2 votes
2 answers
459 views
How to automatically put the part of a variable name after the first letter in symbolized subscripts?
So here is what I have thought: Use ToString and StringLength in order to get the number of characters in the variable name. If ...
8 votes
1 answer
425 views
Mma10 mystery: Failure of pure function substitution with Interpretation?
Bug introduced in 10.0.0 and fixed in 10.0.1 I had code to display with subscripts from Displaying index as subscript on output: e.g. C[i] -> C_i with Notation[...] or Interpretation[..]? which is ...
5 votes
2 answers
485 views
Display All Output Numbers in HEX
How might I modify Mathematica such that I can get the following functionality when working with HEX values. The odd lines are input and the even output. Red values should be the HEX values. What ...
4 votes
1 answer
264 views
Copy/paste of Interpretation to Latex fails, but works for InputText
As part of another issue, the following has come up. Create an Interpretaion: Interpretation[Subscript[a, b], a[b]] Select ...
4 votes
1 answer
159 views
How to define an expression which is differently evaluated in calculations and printed
Let's say, we have a list: values = {1.2, 0.04, 0.9}; Is it possible to replace 0.04 by some expression, which displays as <...
3 votes
1 answer
159 views
Convert an expression's symbols of form a$x to a[x]
I want a function that takes expressions of the following form: a$x and converts them to a[x]. In particular, consider the ...
1 vote
0 answers
46 views
How to make Mathematica treat Subscript[x, j] as a standalone variable? [duplicate]
When i use Replace[] or /., I find that Mathematica does not treat $x_{j}$(Subscript[x, j]) ...