Is it possible to use subscripts in Mathematica functions, for example
f[Subscript[x, a] _] := x^2
However this doesn't seem to work, is there a way to allow indexed variables to behave in the same way as non-indexed variables?
Cheers
Is it possible to use subscripts in Mathematica functions, for example
f[Subscript[x, a] _] := x^2
However this doesn't seem to work, is there a way to allow indexed variables to behave in the same way as non-indexed variables?
Cheers
Subscriptsis: don't use them. See here, here, and here. – corey979 Jan 15 '17 at 19:41