So I have some array called params[]; there are things like a[0] = 2 in it. I want to make all such items real meaning I would call a[0]; and get 2. How to do such thing in maple?
So I have some array called params[]; there are things like a[0] = 2
Share
These are not the only ways to accomplish your goal. But hopefully they’ll guide you.
One ways is to handle each such equation (from
params) individually.You might have all entries of
paramsbeing equations, and wish to accomplish the same task for all entries, at once.Or, you might wish to use uppercase Array instead of the lowercase array (which is deprecated in modern Maple).
Or you might have some entries of
paramsbeing equations, and others being some other type (mere scalar expressions, say). In that case you might first select those which as equations, and only assign using that subset.