maxima-bounces at math.utexas.edu wrote on 05/13/2008 08:26:13 AM:
> More concrete: I want to define a function make_fn(n) which should
return a
> function fn(x), where the way in which fn(x) is computed depends on the
> initially provided n.
>
> I tried it as follows:
>
> make_fn(n) := lambda([x],n+x)$
Try using funmake; here is an example:
(%i1) make_fn(n) := funmake('lambda, [[x], n+x])$
(%i2) make_fn(3)(w);
(%o2) w+3
For info on funmake, enter "? funmake" on a command line.
Barton