Maxima Function
subvarp (expr)
Returns true if expr is a subscripted variable, for example a[i].
true
a[i]