On Wed, 5 Sep 2007 09:32:38 -0700
"Richard Fateman" <fateman at cs.berkeley.edu> wrote:
> Your suggestion looks good to me. the original question suggests a
> misunderstanding of programming language conventions.
> in %i15, i is a parameter to the function template and logically
> speaking is "bound" and then used in the function body.
>
> The obvious way of making the definition for w[1](x) is to write
> w[1](x):=x
> and your friend might consider if that makes more sense than i:1
> etc. RJF
I'm a relative newbie to Maxima, but can this be viewed as saying that
in %i15 (the w[i](t) := t^i; line), neither i nor t are evaluated on
the left or right, sort of like with a single quote?
In particular, I notice that:
w[''(i)](t) := t^''(i);
does what I think the original writer intended in maybe a more
intuitive way than the define() call?
Of course, I agree that w[1](t) := t^1 is simpler, but maybe the
original question was motivated by something that didn't know i=1 in
advance?
Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://www.math.utexas.edu/pipermail/maxima/attachments/20070906/7789f46f/attachment.pgp