how to use a subscripted variable in a "depends" statement
Subject: how to use a subscripted variable in a "depends" statement
From: Richard Fateman
Date: Sat, 29 Oct 2011 13:19:51 -0700
The simple solution may be to not use subscripted variables.
instead of s[0], s[1], .... use s0, s1.
you can even define s[n]:=concat(s,n)
............
in addition to Stavros' notes, consider this:
foo(x):= block([a,b], local(a,b), depends(a[x],b[x]))
or variants of it. Are the properties of symbols lexical?
Also consider (assume(a>0), block([a], is (a>0)) )
etc
RJF