Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [subscript]

The tag has no usage guidance.

2
votes
1answer
57 views

Changing the elements of the list based on subscripts

Say I have a list of lists: {{Subscript[a,1],Subscript[a,1]+Subscript[a,2],Subscript[a,-3]}, {Subscript[a,1],Subscript[a,-2],Subscript[a,-4]}} Now, in the ...
1
vote
0answers
62 views

Connection between a symbol and its subscript form?

I have read all about subscript forms and that they are DownValues of Subscript[]. I still do not understand the following: ...
2
votes
3answers
142 views

How to avoid Replace substituting subscripts?

I have a polynomial in $\rho$ with many parameters (I will omit the polynomial code in the Mathematica expressions below because it is too long): $$ \rho ^3 J (\mu +1) \left[(A \delta \tau _0+B (1-\...
0
votes
1answer
46 views

Using ParametricNDSolve with n subscripted functions

I want to calculate trajectories of an n-pendulum. For the number n=1 it's just a pendulum, for n=2 a double pendulum , for n=3 a triple and so on. The Solver has to solve n equations for the angle. ...
0
votes
3answers
79 views

Subscripted variables with changing subscript

When I want to sum over indexed variables, indices being subscripts, the result works as expected, however, upon loading the Notation package, it doesn't. See below As one might have expected from ...
2
votes
1answer
48 views

Variables with both super-subscripts on the same vertical axis [closed]

When writing out a variable with both a subscript and a superscript, such as: Subscript[Superscript[f, a], b] one has that the "b" letter is "pushed" to the ...
2
votes
1answer
117 views

Notation package with Traditional Form

I symbolize subscripted variables with the form TraditionalForm, to enable easy use of TeXForm as suggested here: ...
1
vote
1answer
40 views

Function definition with sub (super) cripted variables [duplicate]

I like using subscripts a lot. However, it is regrettably not possible to do, for example: myfunction[Subscript[x,1]_] := Subscript[x,1] +1 where instead of the ...
1
vote
0answers
36 views

Typography of Mixed Tensor Index Notation

How can one properly and quickly write a mixed "tensor" such as $\Gamma{}_{1}{}^{2}{}_{3}$? Shortcuts such as esc Gamma esc, Ctrl+^, Ctrl+_ are prefered. I intendd to use this in an inline equation ...
1
vote
1answer
69 views

Problem displaying Killing equations

What I'm trying to do is to compute the Killing equations and then solve them using DSolve to determine their solutions. I have a problem understanding where my Mathematica program doesn't work ...
5
votes
1answer
184 views

How to save/load (export/import) symbolized variables?

I have a large number of variables/functions with subscripts and use definitions with memoization to avoid recomputing them within a kernel session, but I cannot figure out how to export them all for ...
1
vote
1answer
48 views

How to treat Subscript objects as constants when using D

I want to define a constant vector {$k_x , k_y , k_z$}. The problem is that Mathematica gives me D[$k_x$,x]$=k_1$. I want this to be zero, because $k_x$ is a constant. Clearly D[$k_x$,x]$=k_1$ makes ...
1
vote
2answers
99 views

I want to set $x = \{x_1, x_2, \cdots, x_n\}$

I want to get $\{x_1, x_2, \cdots, x_n\}$. I want to use the $x_i$ as a variable. The following code did't work. ...
3
votes
1answer
27 views

Symbolic ticks with subscript - ListPlot

Is it possible to rename ticks with a name like this: "$0.125 \, V_{FS}$"? In the below code I wrote "$0.125 \, V$", I don't know how can I insert the subscript. ...
0
votes
1answer
38 views

Forcing nice positions of summation Σ 's under and overscript in FractionBox

Apologies if this has been asked before. The expression ...
2
votes
1answer
37 views

List all subscripts in an expression

Say we have the following expression: $r_{1,3} r_{1,2}^3 m^2-r_{1}r_{4,2,1}$ (Sorry I had to use TeX, read as Mathematica input notation) I need a function that lists all the subscripts of $r$. ...
2
votes
1answer
44 views

Replacing product of powers of subscripted symbol

I have an expression that involves subscripts, powers and products, for example: $3(m-1)^2 \alpha_{a,b}^c \alpha_{d,e} + n \alpha_{f,g}^h$ (Sorry, I had to use TeX, but read it as mathematica input ...
0
votes
1answer
71 views

Automatic variable naming

I am trying to construct a complicated code in which I need to name a lot of variables and their definitions. For Example: The problem is as follow: Once I insert new variable in between two, I ...
0
votes
1answer
36 views
1
vote
0answers
66 views

How to define a variable with a subscripted part

I have looked around, but found no real answer for this. I generally use Mathematica for thermodynamics and electromechanical equations and for this, to keep a good overview, i got used to defining ...
1
vote
0answers
33 views

Formatting ChartLabels in BarChart. More than one subscript letter appear non-italic

I want to plot a BarChart with quantities some of which are named with one subscript letter and some with two. The quantities with one subscript letter appear ...
5
votes
2answers
209 views

Unexpected interpretation of a variable with subscripts

I am new to Mathematica and encounter the following problem. Define two variables g = 1 and Subscript[g, 1]= 1. If we execute $...
0
votes
1answer
100 views

Writing fractions in Graphics

I want to write a fraction which contains subscript in a graph. But my code doesn't work. ...
0
votes
1answer
114 views

How do I get Mathematica to invert a matrix with subscripts involved? (Subscript usage)

I want Mathematica to invert a matrix in which all variables are symbolic including Subscript. Now I am guessing this has something to do with the method I'm ...
0
votes
0answers
50 views

Displaying subscripted variables in GUIKit

I'm trying to build a custom interface using Mathematica and I want to write something inside a textfield with a subscript, however, when I run the GUI, I see boxes on the places where there should be ...
1
vote
1answer
108 views

How to define the scope of subscript in a iteration?

Newbee to MMA, and completely have no clue about it. I need do a calculation of some iteration, seen in the picture below. $n=3,4,5,..., \begin{cases} L_n=c_n\\ L_{n-1}=c_{n-1}\\ L_{n-p+1}=\...
2
votes
0answers
92 views

ParametricPlot and ParametricPlot3D crash with subscript notation

Bug introduced in 11.0 and persisting through 11.2 In all previous versions of Mathematica, the following works perfectly well: ...
2
votes
0answers
1k views

“neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing” - NDSolver Problem [closed]

I'm currently working on a simulation of n linked pendulums and I'm using the Euler-Lagrange Equations to solve the problem. As I compile this error appears several times: "ReplaceAll: {{}[[1,1]]} is ...
0
votes
1answer
54 views

Using Subscripted Notation without Introducing new identifier

I would like to use subscripted notation such as $\sigma_x$ as identifiers for use as variables. In this example I am using the Pauli Matrices so that I would use notation such as: $$ \sigma_x = \{\{...
1
vote
1answer
66 views

Asymmetry in Solve (probably because of subscripts)

I am trying to solve this equation for $R$ and $R_Y$. The equation seems symmetrical in terms of $R$ and $R_Y$. I don't understand why it solves fine for $R_Y$, but can't for $R$. If I replace $R_Y$ ...
4
votes
3answers
114 views

How to pull out negative signs through subscripted variables while displaying output in traditional form?

I am trying to get an expression to display correctly in TraditionalForm, with the negative sign in front of other symbols: ...
3
votes
2answers
202 views

assign 2 letters in a subscript

Suppose I want to solve an equation for the matrix elements of $\bar{W}$: $$\alpha W_{ba}+\beta W_{bb}=x; \alpha W_{aa}+\beta W_{ab}=y$$ Using the syntax ...
0
votes
1answer
91 views

Why are scripts not allowed as components of vectors?

In Mathematica, I attempted to construct an arbitrary vector $\vec{a}$ using the Subscript: ...
1
vote
2answers
147 views

Compensate for the different values between 0 and 1 in this equation

I want a work program to compensate for the different values between 0 and 1 in this equation and show results ...
0
votes
2answers
1k views

The partial derivative symbol with subscript - what does it mean and how do I type it?

The guide that I am using to study Mathematica tells me to type the following to get I am stuck at the partial derivative symbol because I do not understand what it exactly means with the ...
3
votes
1answer
279 views

How to “clear” the downvalues of a subscripted variable?

I have a function that sets certain subscripts of the symbol aa as in the following example: ...
1
vote
0answers
71 views

$μ_t$ becomes SubscriptBox[\[Mu], t]

I was using variables like $μ_t$ in my local Mathematica notebook. But when I opened that notebook in Mathematica Online everything got converted to something like SubscriptBox[[Mu], t]. How can ...
4
votes
1answer
130 views

Does using subscripted variables decrease the performance of Mathematica?

I tried integrating two equation with the same structure, the first equation fails to evaluate completely - the answer is still in terms of integration. The second integration evaluated fine. The only ...
1
vote
1answer
79 views

How to sort subscripts of symbols in an expression?

For example, I want to change expr1 into expr2. I am pretty sure I can do this using nested loops to find and then modify terms with subscripts, but that is clunky, old school thinking. Is there a ...
1
vote
1answer
173 views

Making subscripts with variable

How do I make a variable $k_{1x}$ where the $x$ is just a label to denote the magnitude along the x-axis and not an actual defined variable x in the code? Similarly, if I wanted to make $E_x$ or $E_{...
1
vote
0answers
108 views

Smart Subscript

I have a question about subscript policy. For some reason I have some variables called Subscript[q, 1], Subscript[q, 2], ...
10
votes
5answers
473 views

Remove subscript from string

I have a list that I am using for the legend of a plot gases = {"Air", "He", "Ar", "\!\(\*SubscriptBox[\(N\), \(2\)]\)", "\!\(\*SubscriptBox[\(CO\), \(2\)]\)"}; ...
2
votes
1answer
66 views

How can I append a subscript? [closed]

In a symbolic computation I might get a symbol b to be a subscripted variable with n subscripts; for example ...
2
votes
1answer
113 views

How to set a symbol indirectly?

I have a symbol, say x, whose calculated value is a 2nd symbol. How can I set the 2nd symbol to a given value? For example, say the value of x is one of the symbols a, b, or c. If it is a, I want to ...
3
votes
2answers
452 views

Mathematica can't differentiate when variable name has subscript component

I am not pasting my input code here since the website modifies my code. Instead I am attaching a screenshot of my notebook. Issue: I enter two separate commands (asking Mathematica to differentiate ...
3
votes
2answers
110 views

How do I convert Subscript[a, 1] Subscript[e, 1] into Subscript[a, 1] Subscript[f, 1]?

I have a series expression like x = a0 + a1 e1 + a2 e2 + a3 e1 e2 and I wish to convert all instances of e1 into f1. The series is subscripted. If there are no subscripts, then the following answer ...
4
votes
4answers
823 views

Subscripted (or superscripted) variables in Mathematica

When I first learned of Mathematica and started to use it, I soon discovered that Mathematica supported subscripted and superscripted variables such as $M_{i j}$. Naively, I first thought that I ...
1
vote
1answer
132 views

Problems with Subsuperscript and Subscript Combination [closed]

I have a 3D figure, not important what it is, and I have the following code for the Z axis of this figure: ...
5
votes
1answer
198 views

An alternative to subscripts?

Are there any good alternatives to using subscripts to keep track of and uniquely identify many variables? I know that subscripted variables behave badly. Thanks!
0
votes
1answer
74 views

Overriding Subscript operator creates its own variables?

I tried to override the Subscript operator to make matrix indexing a bit more "user-friendly" in complex expressions with the following code according to the ...