Linked Questions

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,...
user avatar
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; ...
tolga08's user avatar
  • 19
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: ...
tribbloid's user avatar
  • 167
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 ...
Thermoguy's user avatar
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 ...
Sterling's user avatar
  • 553
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? ...
novice's user avatar
  • 2,345
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
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 ...
user37495's user avatar
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: ...
user63801's user avatar
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: ...
Sami's user avatar
  • 21
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/ ...
GrozaiL's user avatar
  • 183
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 ...
Bendesarts's user avatar
  • 1,109
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 ...
David's user avatar
  • 15k
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. ...
physicsGuy's user avatar
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 ...
hipHopMetropolisHastings's user avatar

15 30 50 per page