Questions tagged [subscript]

116 questions
7
votes
4 answers

How do I write subscripts in the middle of a string?

As stated in the tile, I want to have a subscript in the middle of a sting, but StringJoin does not allow "Test"<>Subscript["test", "test"]<>"test". Any suggestions?
Yituo
  • 1,389
  • 9
  • 15
5
votes
2 answers

How to stop Mathematica from deriving index?

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 implement is derivative in an aesthetic way: This leads to the issue seen above. How…
Kutsubato
  • 129
  • 4
2
votes
1 answer

Making subscripts with variable

How do I make a variable $k_{1x}$ where the $x$ is just a label to denote the magnitude along the x-axis and not an actual defined variable x in the code? Similarly, if I wanted to make $E_x$ or $E_{0x}$ for electric field notations, not only can I…
2
votes
1 answer

How can I append a subscript?

In a symbolic computation I might get a symbol b to be a subscripted variable with n subscripts; for example b = Subscript[a,1,3,4,6]. Then I compute another symbol with just one subscript, for example c = Subscript[a,8]. How do I write code to…
matrixbud
  • 435
  • 2
  • 9
1
vote
0 answers

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 variables with a subscripted explanation like…
Jamie
  • 31
  • 3
1
vote
1 answer

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}=\displaystyle\sum_{r=1}^{p-2}…
Robin_Lyn
  • 355
  • 1
  • 9
0
votes
2 answers

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 code doesn't work. How to fix to use subscript? …
Soon
  • 648
  • 3
  • 8