Online Algebra Calculator
Many of users do not use powerful Maxima computer algebra system for systematic work, but for ad hoc algebraic calculations – equations, functions, matrixes, etc. only. To do this job, it is not useful to download the whole application from a web site.
Function: subvar (<x>, <i>) Evaluates the subscripted expression <x>[<i>].
subvar evaluates its arguments.
arraymake (<x>, [<i>] constructs the expression <x>[<i>], but does not evaluate it.
Examples:
(%i1) x : foo $
(%i2) i : 3 $
(%i3) subvar (x, i);
(%o3) foo
3
(%i4) foo : [aa, bb, cc, dd, ee]$
(%i5) subvar (x, i);
(%o5) cc
(%i6) arraymake (x, [i]);
(%o6) foo
3
(%i7) %;
(%o7) cc There are also some inexact matches for subvar. Try ?? subvar to see them.
(%o1) true (%i2)