Skip to main content

Questions tagged [subscript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
286 views

How to simplify and rearrange a mathematical expression with quantities that have subscripts

I'm trying to simplify and rearrange the mathematical expression $\text{d$\xi $} \left(k_1+k_2\right)+\text{dt} \left(k_1 \left(l_1-x_1\right)\right)+\text{dt} \left(k_2 \left(x_2-l_2\right)\right)$, ...
L. G. Romero's user avatar
1 vote
1 answer
68 views

How to convert symbols like x1 to $x_1$, but handle differentials like dH1 to $dH_1$ in Mathematica?

I need help with a symbol transformation in Mathematica. I want to convert symbols such as x1 to Subscript[x, 1], but I need to handle differentials (as simple ...
L. G. Romero's user avatar
2 votes
0 answers
47 views

LaTeX symbols inside Expectation [duplicate]

I use LaTeX in my Mathematica code (using "^+4"), and was surprised that the first line in the code below evaluates correctly, but the second (essentially identical) line does not: ...
Dejan Evisal's user avatar
6 votes
1 answer
136 views

Work around for subscripts and superscripts in text cells reverting to SuperScript[...]

Seemingly randomly nicely formatted superscripts and subscripts (e.g. to look like $f_1$) in math in text cells will revert to their long form e.g. Subscript[f, 1]. ...
Kvothe's user avatar
  • 4,651
2 votes
1 answer
95 views

Derivatives and subscripts [closed]

Is there a way to declare that subscripted letters are not functions of the letter? By default, this happens: ...
Mariano Suárez-Álvarez's user avatar
5 votes
1 answer
113 views

Converting Unicode Number Subscripts to Standard Mathematica Subscript Notation

I am importing data data={"t*α₁","α₁*α₄"} But unfortunately, all of the subscripts are in Unicode: ...
Luke's user avatar
  • 267
1 vote
0 answers
76 views

Importing equations with subscripts from LaTeX and solving them [closed]

Here is a simple system of equations, copied from LaTeX: ...
florin's user avatar
  • 1,982
1 vote
1 answer
79 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
  • 445
1 vote
2 answers
93 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
32 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
65 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
119 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
  • 5,923
0 votes
0 answers
57 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
  • 735
1 vote
1 answer
144 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
276 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
42 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
139 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
  • 163
2 votes
1 answer
44 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
  • 575
0 votes
1 answer
123 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
107 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
  • 923
1 vote
0 answers
217 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
  • 648
0 votes
0 answers
68 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 ...
csha's user avatar
  • 101
2 votes
2 answers
98 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
58 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
82 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
  • 923
0 votes
1 answer
98 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
311 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
219 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
  • 693
2 votes
0 answers
762 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,261
0 votes
2 answers
158 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
  • 648
0 votes
1 answer
270 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
1 vote
1 answer
152 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
  • 445
2 votes
0 answers
161 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
209 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
  • 1,043
3 votes
1 answer
257 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
351 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
131 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
248 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
  • 553
0 votes
1 answer
321 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
68 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
85 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
163 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
481 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