Questions tagged [subscript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
90 views

Creating an Array with Subscripts and Superscripts

I would like to figure out how to construct an array using subscripts and superscripts based on the following info: ...
1
vote
1answer
74 views

How to fix the Y-axis and normalize density?

I want to plot a density curve but when I draw the y-axis not getting to 1 (as normalized) ...
0
votes
1answer
62 views

How to do Interpolation to this function after given b this values

\[Chi][b_] := (Z/k)*NIntegrate[Subscript[f, pp1][q]*Subscript[F, pp1][q]*BesselJ[0, q*b]*q, {q, 0, b}]; bList = Table[b, {b, 0, 5.1 , 0.05}] where: Z = 6; k=1....
0
votes
0answers
23 views

Broken sub-/super-/overscripts after reopening file

I'm entering something like $a_1$ by using Ctrl -. After I reopen the file, instead of a nice subscript, every instance of $a_1$ now reads ...
3
votes
1answer
104 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
1answer
60 views

Subscripts use to make expression readable [duplicate]

I am trying to write a function in mathematica which depends on different parameters. For example $$f(x_1, x_2, x_3, x_4, x_5)= 2x_1+\sin(x_2)+x_3*x_4-x_5^{-1}$$ (My actual function has 12 such ...
2
votes
1answer
37 views

Problem with superscript

I would like to know if there is option to make such scrpits like in this picture below. Is option to put letter instead of a *?
0
votes
2answers
54 views

How to subtract the received anomalies from the dataset

We have a dataset data = ResourceData["Sample Data: Boston Homes"] Find anomalous examples in the dataset. ...
5
votes
1answer
104 views

«Hidden rocks» of the algebra of indexed values

Some time ago, our community generally believed that one should avoid operating indexed variables such as Subscript[a,1]. I remember to have several times adviced ...
0
votes
0answers
30 views

TagSet::sym Error using Subscript [duplicate]

I am a beginner to Mathematica and I am trying to get it to solve some equations of a function (vector) $B$ of three components, but first I want it to know that the derivates with respect to one ...
0
votes
1answer
61 views

How do I define a function that accepts a subscripted variable?

How do I define a function with subscripted variable? I want to write the following expression $\qquad f[a_9] =1+ a_7 + a_9$ I wrote ...
2
votes
1answer
61 views

Writing a variable-labelling function that will subscript a specific variable in a derivative or other function?

I have made a function which takes any expression and should replace it with one whose variables are identical, but replaced by those with a chosen subscript (inside the "{}" part goes a set ...
0
votes
2answers
151 views

Summations on Variables with subscripts

One of my equations uses a set of variables which ultimately for a set of certain values gives a list of 8 numbers: c=13.9506 (31 - k) following cc(sub k) = Round[Table[13.950621339931203...
5
votes
1answer
45 views

Plotting with sub and superscripts on the PlotLabels

Bug persists through 12.0. I'm trying to produce a plot with PlotLabels that include sub- and superscripts. However, I haven't been able to do it consistently. ...
0
votes
1answer
48 views

Sets of k expressions, being k a variable

I need to write something like Table[Subscript[A,i] = i, {i,5}] in order to define a set of expressions. All is OK with this, but if I try to left the number of expressions as a variable k... Table[...
0
votes
1answer
118 views

Is there a way to use a subscript as variable? [duplicate]

I'm really new with Mathematica, and I could not find a previously question similar to this one. Is there a way that Mathematica can be made to recognize and treat a subscript letter as variable so ...
0
votes
2answers
77 views

total differential of a subscripted variable

During use of sub-scripted variables, I came across the following issue Dt[Subscript[x,0]] gives Why is mathematica treating x and not x$_0$ as the ...
1
vote
1answer
103 views

Subscript and superscript symbols for chemical calculations

I have some very unhandy, big equations which contain quantities like $n_{AB}(^{13}C)$, now i would like to adapt this notation also in Mathematica so I do not need to think of a new one. Is there a ...
5
votes
2answers
131 views

How to stop Mathematica from deriving index? [duplicate]

If I have two variables $k, k_x$ with $k_x\neq f(k)$, it is obvious that $$\frac{\partial k_x}{\partial k}=0$$ In Mathematica, I need the Subscript[] function to ...
3
votes
0answers
60 views

Different output to Solve command in Mathematica changing a variable for a subscripted variable

I have a system of equations that is solved with the Solve command in Mathematica 10.2, when one of the variables is changed for a subscripted variable the answer is not the same, the difference is ...
0
votes
0answers
97 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 ...
0
votes
1answer
127 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, ...
2
votes
1answer
93 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
68 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
238 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-\...
3
votes
1answer
109 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
568 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
70 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
155 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
68 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
60 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
91 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 ...
6
votes
1answer
323 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
121 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
142 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
37 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
44 views

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

Apologies if this has been asked before. The expression ...
3
votes
1answer
74 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
54 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 ...
1
vote
1answer
106 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
49 views

Error with Subscript in DialogInput

Writing: ...
1
vote
0answers
87 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
38 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
262 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
209 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
151 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
53 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
190 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
103 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: ...