Linked Questions
32 questions linked to/from Can we use letter with a subscript as a variable in Mathematica?
0
votes
1
answer
941
views
How to implement the for loop to replace text strings or texts?
I wonder define a bunch variables named like $X_1$, $X_2$, $...$, $X_n$. Is there some smart way to declare them instead of by pure typing. One trick I can image is to use the for loop,...
1
vote
1
answer
442
views
Converting the subscript of matrix name to a variable
I want to change indices of matrix name during loop for creating different matrices. For example;
...
0
votes
1
answer
763
views
How to multiply a vector by a scalar?
I'm plotting a simple 2D graph derived from 4 3D vectors:
...
1
vote
1
answer
546
views
Solving a system of equations using subscripted variables
I want to solve this equation:
X(i, j) + C*Y(i, j) = Z(i, j)
Where
...
3
votes
1
answer
252
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 ...
3
votes
3
answers
145
views
Can I put subscripted parameter values into a package?
When defining packages, can I put parameter values alone or along with functions into a package in subscripted form?
...
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 ...
1
vote
1
answer
159
views
Having issue for solving a system with seven equations
I have a system with seven equations and three constrains. I tried to solve them using NSolve, but it takes forever without getting any result. Also, I tried it ...
0
votes
1
answer
173
views
Expectation of two independent random variables
I would like to compute the following function of two independent random variables:
...
2
votes
1
answer
164
views
Evaluating terms in series
I'm trying to evaluate a simple expression:
Subscript[λ, n] = (2 n - 1) π/(2 L);
And then sum it up:
...
1
vote
1
answer
94
views
How to make subscripts from list?
I want to make list of subscripted symbols in functional way. So that given edges list I can get something like the list below/
...
0
votes
1
answer
92
views
Quick simplification of a fraction of 2 trigonometric equations
I would like to simplify a fraction of 2 trigonometric functions
...
0
votes
1
answer
114
views
Problem storing $x_j$ terms in variable x [duplicate]
This works:
Table[Subscript[x, j], {j, 1, 10}]
But this doesn't:
x = Table[Subscript[x, j], {j, 1, 10}]
Giving this ...
0
votes
1
answer
137
views
Using subscripted symbols in functions
Using subscripts would significantly improve the structure of my code. Until now I used the following two lines to implement this.
...
0
votes
0
answers
175
views
>100 GB of memory used by Reduce. Am I doing something wrong?
Newish to Mathematica here. I'm running some code to compute regions of the parameter space where the covariance between innovations is positive or negative. On my Windows PC, it's been running for ...