in Mathematica for some function f[x] I want to Solve[f[x] == a, x] and record the solution as Subscript[x, 1, a], Subscript[x, 2, a], and so on.
what is the neatest way to do this if
- I know how many solutions exists
- I do not know how many solutions exists
One way which should work for both cases is to do something like