Linked Questions

1 vote
0 answers
4k views

How to assign (and retrieve) variables with subscripts? [duplicate]

I like to give subscripts to my variable names when the variables are related. I.e., Subscript[r, i] = 3 3 A problem arises when I later assign ...
jlconlin's user avatar
  • 247
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
4 votes
2 answers
1k views

Recursion problem

I try to make designation a = {Subscript[a,1], Subscript[a,2], Subscript[a,3]} but receive mistake $RecursionLimit::reclim: Recursion depth of 1024 exceeded. ...
Igor Fomenko's user avatar
4 votes
2 answers
2k views

Using Greek letters with subscripts as symbols

I'd like to use Subscript[ϕ, 1] as a function name: Subscript[ϕ, 1][x_] = C1 + C2*x + C3*Exp[α*x] + C4*Exp[-α*x] But as I use ...
Daniel's user avatar
  • 41
3 votes
1 answer
192 views

Simplifying algebraically

Is there a way to derive an simplified expression from other equations. Or create an alternate form such that the main equation takes other equations and manipulates the main function. Here is what I ...
Aeroelasticity's user avatar
2 votes
1 answer
373 views

How to treat Subscript objects as constants when using D

I want to define a constant vector {$k_x , k_y , k_z$}. The problem is that Mathematica gives me D[$k_x$,x]$=k_1$. I want this to be zero, because $k_x$ is a constant. Clearly D[$k_x$,x]$=k_1$ makes ...
Quillo's user avatar
  • 143
2 votes
3 answers
199 views

Replacing constant factors

Goal: I want to multiply all constant factors in an expression by 2. For example, 4 x^2 (4 Subscript[a, 1] + Subscript[a, 2] - 7 Subscript[c, 4]) should be ...
Page not found's user avatar
1 vote
1 answer
166 views

Using both subscripted and non-subscripted variables in an equation

I'm getting started with Mathematica, as I have been using Maple in the past. Is it possible to define two variables $\alpha_1, \alpha_2$ and then still use $\alpha$ as a parameter of a function and, ...
Wasserwaage's user avatar
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
0 votes
0 answers
140 views

Plotting a curve defined implicitly

I have defined the function functiontoplot using the following piece of code: ...
edgardeitor's user avatar
0 votes
1 answer
79 views

Using Subscripted Notation without Introducing new identifier

I would like to use subscripted notation such as $\sigma_x$ as identifiers for use as variables. In this example I am using the Pauli Matrices so that I would use notation such as: $$ \sigma_x = \{\{...
K7PEH's user avatar
  • 619
0 votes
1 answer
83 views

Avoiding For loops to perform an assignment to a variable with indices of user-choice [duplicate]

I am looking for an efficient way to perform the following operation without For loops ...
Saurabh Maiti's user avatar