Questions tagged [subscript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
2answers
240 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 $...
2
votes
1answer
97 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 ...
11
votes
5answers
594 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\)]\)"}; ...
6
votes
1answer
252 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 ...
4
votes
4answers
2k views

How do I write subscripts in the middle of a string? [duplicate]

As stated in the tile, I want to have a subscript in the middle of a sting, but StringJoin does not allow ...
4
votes
1answer
147 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 ...
4
votes
4answers
1k 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 ...
0
votes
0answers
90 views

Trying to solve a system of equation with a subscripted variable with Reduce

When I run Reduce[expr, vars] in which one of the variables has a subscript, Mathematica gives me an output after some minutes (the system has 10 equations), but if ...
5
votes
1answer
235 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!
2
votes
0answers
93 views

Subscript vs. Brackets [duplicate]

I'm used to using Ctr+_ to create indexes for variables (which evaluates to something like Subscript[a,i,j]), but on this site I ...
1
vote
0answers
138 views

Subscripts in variable names: Bug?

In the following plot, one of the two functions {-par, par} defined by ...
0
votes
1answer
46 views

Error with Subscript in DialogInput

Writing: ...
0
votes
1answer
104 views

Sequential subscripts etc. in a unified notation

I am trying to generate a notation system to handle a variety of things in chemistry-standard notation. One key aspect of this is to be able to define symbols that have multiple subscripts, ...
0
votes
1answer
136 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 ...