Questions tagged [subscript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Collect terms unexpected behaviour with subscripts and different variable names

If I write Collect[x+a+1, x] the output I get is what I expect 1 + a + x constant terms with respect to ...
user avatar
  • 101
0 votes
0 answers
32 views

SubscriptBox Text font in Graphics[Text[Style["..."]]]

In this code in Graphics and Text Style, Graphics[Text[ Style["!(N_b)\n U(1!(*SubscriptBox[()), (V)])"]]] I obtain the $V$ in italic font, but I wanted ...
user avatar
  • 823
1 vote
0 answers
88 views

Using subscripts when defining function

My goal is to use subscripts in arguments when defining function. I tried as below. It is simple addition. But it does not work. It should be 3. What went wrong? ...
user avatar
  • 151
0 votes
0 answers
39 views

How to make assertions for subscripted variables?

I'm trying to write a formula using subscripted variables like x₁, x₂, x₃, ..., so that I can later retrieve their values programmatically. However, I'm struggling ...
user avatar
  • 101
2 votes
2 answers
79 views

Could anyone please help with defining a vector function of tons of variables?

Could anyone please help with effectively defining a vector-valued function of tons of variables so that ...
user avatar
0 votes
1 answer
47 views

Is always possible to define a numerical value using subscript?

In this code I defined some values using subscripts and it is not the first time I did this but strangely the code execution crashes. To follow the code. ...
user avatar
3 votes
1 answer
63 views

Probably easy question: How to make the Text font in the subscript?

In the specific Graphic setting, precisely (somehow \ ( and \ ) are not shown properly below in Stackexchange window) Graphics[Text[Style["\ !\ (1234_L\ )",LineSpacing->{0,12}],{0,3}]] ...
user avatar
  • 823
0 votes
1 answer
58 views

Partial derivative of n-variables product [duplicate]

I am new to Mathematica. I would like to calculate the partial derivative of the product, $\frac{\partial}{\partial x_{j}} y \prod _{i=1}^{n}x_{i}^3=\frac{3}{x_j} y \prod_{i=1}^nx_i^3$, where $1 < ...
user avatar
  • 123
3 votes
2 answers
131 views

How to extract the subscript from a variable?

I simply want to be able to assign the subscript from something like Subscript[x, 1] to a new variable. How should I do this?
user avatar
1 vote
3 answers
133 views

How to replace the number of each element of a matrix with a subscript?

I want to get the matrix as Figure 2. There should be two ways to achieve the result. There is a matrix as Figure 1, and change it to the form of Figure 2. Generating the matrix as Figure 2 directly....
user avatar
  • 663
2 votes
0 answers
172 views

Input subscripts in Wolfram Cloud

I would like to input "rendered" subscripts in Wolfram Cloud, without having to verbosely type Subscript[a, b]. The local notebook shortcut is ...
user avatar
0 votes
2 answers
116 views

Trouble in solving simultaneous equations with subscripts

My goal is to solve equation with subscripts. But the result shows {{}}. Strange enough, If I don't use subscripts, result shows. Is there a limitation in using subscripts? How to fix code below? This ...
user avatar
  • 151
0 votes
1 answer
92 views

Solve::units: Solve was unable to determine the units of quantities that appear in the input

I'd like to solve the following two equations for P. But I'm getting "Solve was unable to determine the units of quantities that appear in the input.". Any suggestions on what could be the ...
user avatar
  • 223
0 votes
1 answer
54 views

Using ReplaceAll to change terms that match a pattern

Suppose I have a list like {a,b [Subscript[e, 1],c [Subscript[e, 1,2]. (1) Sometimes I need to replace the e-subscripted terms, (2) sometimes I need to replace ...
user avatar
  • 411
2 votes
0 answers
104 views

Unable to solve for variables with subscripts [closed]

ΔF = 0.0025; Subscript[R, s] = Quantity[0.8, "SolarRadius"]; P = Quantity[8, "Days"]; When I solve for Rp ...
user avatar
  • 223
1 vote
3 answers
103 views

Variable subscript in AxesLabel [closed]

I am calling $y_{n}=x^{n}$ and I want to plot $ln(y_{n})$ for a number of different integer values of $n$ (I know this is very simple- it's actually a much simpler version of what I'm actually trying ...
user avatar
  • 837
3 votes
1 answer
150 views

Generate C code from symbolic computation in Mathematica

I am doing some tensor multiplication operations and would like to have Mathematica generate C code so that I can use it later. I want to supply two 2nd order tensors(A and B) and get the entries of a ...
user avatar
3 votes
2 answers
154 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: ...
user avatar
0 votes
1 answer
48 views

How to fix the error and do thread to those equation

...
user avatar
1 vote
1 answer
92 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) ...
user avatar
0 votes
1 answer
107 views

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

χ[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: ...
user avatar
0 votes
0 answers
27 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 ...
user avatar
  • 471
3 votes
1 answer
184 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 ...
user avatar
  • 503
0 votes
1 answer
146 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 ...
user avatar
2 votes
1 answer
50 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 *?
user avatar
  • 25
0 votes
2 answers
61 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. ...
user avatar
5 votes
1 answer
115 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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
0 votes
1 answer
88 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 ...
user avatar
2 votes
1 answer
83 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 ...
user avatar
0 votes
2 answers
362 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...
user avatar
5 votes
1 answer
56 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. ...
user avatar
0 votes
1 answer
57 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[...
user avatar
0 votes
1 answer
146 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 ...
user avatar
0 votes
2 answers
131 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 ...
user avatar
  • 912
1 vote
1 answer
135 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 ...
user avatar
  • 19
5 votes
2 answers
185 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 ...
user avatar
  • 129
3 votes
0 answers
63 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 ...
user avatar
0 votes
0 answers
117 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 ...
user avatar
0 votes
1 answer
181 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, ...
user avatar
  • 2,219
2 votes
1 answer
111 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 ...
user avatar
  • 1,274
1 vote
0 answers
70 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: ...
user avatar
2 votes
3 answers
335 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-\...
user avatar
  • 205
3 votes
1 answer
147 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. ...
user avatar
  • 131
0 votes
3 answers
1k 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 ...
user avatar
  • 1,227
2 votes
1 answer
209 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 ...
user avatar
  • 1,227
2 votes
1 answer
257 views

Notation package with Traditional Form

I symbolize subscripted variables with the form TraditionalForm, to enable easy use of TeXForm as suggested here: ...
user avatar
  • 1,227
1 vote
1 answer
129 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 ...
user avatar
  • 1,227
1 vote
0 answers
89 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 ...
user avatar
  • 1,783
1 vote
1 answer
125 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 ...
user avatar
  • 13