problem with recursive functions (erratum)



I wrote:

> f[d]:subst(d,'d,'( lambda([x],2*f[d-1](x)) ))$


This should have been

  f[d]:= subst(d,'d,'( lambda([x],2*f[d-1](x)) ))$

Sorry.

By the way, the normal recursive version (with no use of lexical scoping)
would be

f(d,x) := if d=1 then makelist(i, i, 1, x) else 2*f(d-1,x)$

This is simpler, clearer (to my eye), and probably faster than the f[]
approach.

              -s