variable evaluation



On Tue, 2007-03-04 at 17:10 -0400, Stavros Macrakis wrote:
> On 4/3/07, Zoho Vignochi <zoho.vignochi at gmail.com> wrote:
> > Yes, when I run my code with n=2 and then check the output I get...
> > (%i4) listarray(a);
> > (%o4)
> > [[-1/48],[(120*a[2,2]+6*K[1]*a[1,1]-K[1])/48],[-(60*a[1,1]-1)/2880]]
> > (%i5) listarray(K);
> > (%o5) [1,[-6*a[1,1]],[-6*a[2,1]]]
> >
> > So here is all the information needed to evaluate each of the terms in K
> > and a. I do not know, and haven't found but searching, a method to
> > substitute the values into the expressions.
> >
> > I am looking for
> > a=[-1/48, -139/512,1/1280]
> > K=[1,-1/8, 417,256]
> 
> Try      ev(listarray(a)) and ev(listarray(K))

Thank you for the suggestion! ev(listarray(a),eval,eval) yields what I
want.

Zoho