Questions tagged [subscript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
65 views

Two Subscript/Superscript questions

In mathematica code, I have a table of quantities that involve subscripts and superscripts. I need to put short text titles in the first row of the table. Suppose I have index1="A", index2=&...
matrixbud's user avatar
  • 425
1 vote
2 answers
88 views

How to break a term in its individual factors?

I have some algebraic term that looks like this, Conjugate[Subscript[u, 1, 1]] Conjugate[Subscript[u, 2, 1]] \!\(\*SubsuperscriptBox[\(u\), \(1, 1\), \(2\)]\) $$...
Endeavour 's user avatar
0 votes
0 answers
29 views

How to extract subscripts in mathematica and apply a function on them?

For a bit of context, I am trying to evaluate an integration over Haar randm unitaries. I couldn't find any inbuilt function, so I am trying to implement a simple code for the Wingarten functtion in ...
Endeavour 's user avatar
0 votes
0 answers
63 views

Solving multiple inequalities

I am new to Mathematica and I want to know if there are solutions to the following 4 coupled inequalities. Note that the inequalities are long and cumbersome with many variables with subscripts (I ...
Monty's user avatar
  • 101
0 votes
2 answers
109 views

How to automatically convert sub- super-indices to strings?

Consider the following expression: expr = "\!\(\*SubscriptBox[\(m\), \(t\)]\)" I would like to convert it to the ordinary string e.g. ...
John Taylor's user avatar
  • 4,681
0 votes
0 answers
45 views

how to use subscripted variable such as a_i as the control of Manipulate?

I'd like to define a series of variables called $l_1$,$l_2$, etc., in Mathematica, using the "ctrl+_" shortcut. Moreover, I want to use these variables as the controls of a Manipulate[] ...
larry's user avatar
  • 695
1 vote
1 answer
95 views

How can I define a function with a variable with subscript?

I want to define a function in Mathematica: $$h(\tau_x)=\tau_x$$ $\tau_x$ has no special meaning. To be honest, it's totally OK if I use the function $h(x)=x$ to replace $h(\tau_x)=\tau_x$. It doesn't ...
Xiangyu Cui's user avatar
3 votes
3 answers
243 views

Apply central difference formula to a variable twice

I am working with finite difference methods analytically and I would like to be able to perform operations on subscripted variables. I would like to generate the following expression by applying a ...
Hefaestion's user avatar
1 vote
0 answers
38 views

How to make Mathematica treat Subscript[x, j] as a standalone variable? [duplicate]

When i use Replace[] or /., I find that Mathematica does not treat $x_{j}$(Subscript[x, j]) ...
Aerterliusi's user avatar
1 vote
1 answer
138 views

Is there a builtin command or a workaround to generate a nested sum (of apropriate level) from an expanded expression?

I have the following output from some Mathematica manipulation of nested sums. Does Mathematica have a command or combination of commands that recovers nested sums from the expanded form? $$\begin{...
Neves's user avatar
  • 153
2 votes
1 answer
40 views

Replace Subscripts in FindRoot solution to a boundary-value problem

FindRoot has a nice example to solve a boundary-value problem for a second-order ordinary differential equation using "collocation points" to turn the ODE ...
John Bechhoefer's user avatar
0 votes
0 answers
39 views

One as Subscript and Supersripts

I am trying writing code with a lots of symbols and their products. There is an issue with the appearance of "1" as an index. e.g. Subscript[[Delta], 1 n] Why "1" does not appear ...
SciJewel's user avatar
  • 361
0 votes
1 answer
107 views

How to clear a function with subscript?

How to clear a function like Subscript[f, n_][x_] := x f[x - 1] + n; ClearAll[f] didn't work.
Curious Cat's user avatar
0 votes
0 answers
87 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 ...
wonderich's user avatar
  • 903
1 vote
0 answers
181 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? ...
Soon's user avatar
  • 399
0 votes
0 answers
55 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 ...
m93a's user avatar
  • 101
2 votes
2 answers
96 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 ...
mathlive1's user avatar
0 votes
1 answer
55 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. ...
Antonio Maria Di Mauro's user avatar
3 votes
1 answer
78 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}]] ...
wonderich's user avatar
  • 903
0 votes
1 answer
77 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 < ...
XJ.C's user avatar
  • 123
3 votes
2 answers
248 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?
phycobilly's user avatar
1 vote
3 answers
199 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....
likehust's user avatar
  • 663
2 votes
0 answers
571 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 ...
Anti Earth's user avatar
  • 1,161
0 votes
2 answers
150 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 ...
Soon's user avatar
  • 399
0 votes
1 answer
227 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 ...
Nickpick's user avatar
  • 223
0 votes
1 answer
84 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 ...
matrixbud's user avatar
  • 425
2 votes
0 answers
136 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 ...
Nickpick's user avatar
  • 223
1 vote
3 answers
176 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 ...
Chris's user avatar
  • 983
3 votes
1 answer
229 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 ...
Manuel Oliveira's user avatar
3 votes
2 answers
300 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: ...
Vegeta the Prince of Saiyans's user avatar
0 votes
1 answer
54 views

How to fix the error and do thread to those equation

...
user avatar
1 vote
1 answer
117 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
1 vote
1 answer
129 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
31 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 ...
dzejkob's user avatar
  • 501
3 votes
1 answer
217 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 ...
Sterling's user avatar
  • 543
0 votes
1 answer
266 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 ...
CouchPotato's user avatar
2 votes
1 answer
63 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 *?
Papa's user avatar
  • 25
0 votes
2 answers
73 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. ...
Evil Babka's user avatar
5 votes
1 answer
120 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 ...
Alexei Boulbitch's user avatar
0 votes
0 answers
33 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 ...
user135626's user avatar
0 votes
2 answers
158 views

How do I define a function that accepts a subscripted variable? [duplicate]

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 ...
mathisgood's user avatar
2 votes
1 answer
86 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
458 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...
Petros Theodorou's user avatar
5 votes
1 answer
73 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. ...
Harto Saarinen's user avatar
0 votes
1 answer
58 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[...
Vandermonde's user avatar
0 votes
1 answer
185 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 ...
bruno henrique's user avatar
0 votes
2 answers
182 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 ...
lineage's user avatar
  • 1,114
1 vote
1 answer
148 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 ...
Zorg's user avatar
  • 39
5 votes
2 answers
217 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 ...
Kutsubato's user avatar
  • 129
3 votes
0 answers
73 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 ...
Miguel Angel Alvarez Ballester's user avatar