Defining functions of vectors?



Stavros Macrakis wrote:
> On Tue, Mar 18, 2008 at 9:36 AM, Raymond Toy (RT/EUS)
> <raymond.toy at ericsson.com> wrote:
>>  f(x) := 5.04*x[1]+0.035*x[2]+10*x[3]+3.36*x[5]-0.063*x[4]*x[7];
>>  This doesn't actually do what I want.  f(y) doesn't replace x with y.
>>  f([1,2,3,4,5,6,7]) doesn't actually evaluate the expression at the
>>  given point.
> 
> It works fine in 5.14.0/gcl.  What version are you using?  Have you
> set any global variables?

Hmm.  Now that I've restarted maxima, it works.  (
Maxima cvs with cmucl).  I wonder what I did in the old session to make 
this not work?  Oh well.

Thanks!

Ray