(%i40) s : product(f(i),i,0,n)$
(%i41) [ev(s,n=3,product), ev(s,product, n=3),ev(s,n=3,nouns),ev(s,nouns,n=3)];
(%o41) [f(0)*f(1)*f(2)*f(3),f(0)*f(1)*f(2)*f(3),f(0)*f(1)*f(2)*f(3),f(0)*f(1)*f(2)*f(3)]
I'd think most uses would expect subst(n=3, product(f(i),i,0,n)) to be
identical to product(f(i),i,0,3) :(
--Barton
-----maxima-bounces at math.utexas.edu wrote: -----
To: Maxima - list <Maxima at math.utexas.edu>
From: Richard Fateman
Sent by: maxima-bounces at math.utexas.edu
Date: 01/06/2012 06:24PM
Subject: evaluating products??
say I create this: ? ?s: ?product(f(i),i,0,n)
and later I want to evaluate it with n=3, to get f(0)*f(1)*f(2)*f(3).
How? ?subst(3,n,s) ?doesn't work. ? ev(s,n=3) doesn't work.
I suspect this failure is a new "feature".
RJF
_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima