6
$\begingroup$

Are there any good alternatives to using subscripts to keep track of and uniquely identify many variables? I know that subscripted variables behave badly.

Thanks!

$\endgroup$
4

1 Answer 1

7
$\begingroup$

An alternative to subscripts as indices...

Instead of:

{Subscript[x, 1], Subscript[x, 2]}

Let's use:

x[1], x[2]

And this can be generalized to:

Subscript[x, i, j] --> x[i,j]

This will uniquely identify any number of variables to any dimension.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.