Defining functions of vectors?



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?

           -s