Questions tagged [subscript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
2answers
292 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 $...
6
votes
1answer
454 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 ...
2
votes
1answer
193 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 ...
6
votes
1answer
296 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!
3
votes
1answer
465 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: ...
11
votes
5answers
725 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\)]\)"}; ...
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 ...
5
votes
4answers
4k 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
169 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 ...
3
votes
1answer
143 views

Symbolized, Subscripted Variable Doesn't Look Pretty

Background I'm trying to programmatically generate a subscripted variable in a way that makes it appear "pretty". Here is a minimal working example that shows some strange behavior I'm ...
0
votes
0answers
114 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 ...
2
votes
0answers
103 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
145 views

Subscripts in variable names: Bug?

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

Error with Subscript in DialogInput

Writing: ...
0
votes
1answer
166 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
1answer
161 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
468 views

Weird subscript name in output [duplicate]

One of my first times using mathematica, I'm getting a weird Subscript(1,0) output when I try to solve a derivative. What is going on and how can I fix this?