Questions tagged [subscript]
The subscript tag has no usage guidance.
119
questions
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)$,
...
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 ...
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:
...
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]. ...
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:
...
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:
...
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:
...
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=&...
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\)]\)
$$...
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 ...
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 ...
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. ...
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[] ...
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 ...
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 ...
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]) ...
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{...
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 ...
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 ...
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.
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 ...
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?
...
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 ...
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
...
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.
...
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}]]
...
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 < ...
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?
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
...
0
votes
1
answer
54
views
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)
...
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:
...
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 ...
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 ...
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 ...
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 *?
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.
...
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 ...
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 ...
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
...
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 ...
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...