5
$\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$
5
$\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, privacy policy and cookie policy

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