"sum" quotes its arguments -- what's up with that?
Subject: "sum" quotes its arguments -- what's up with that?
From: Stavros Macrakis
Date: Tue, 7 Dec 2004 09:01:36 -0500
I don't have time to write a long answer right now, but this issue has
been discussed at length. The basic problem is that Maxima has no way
of saying that the first argument of 'sum' is evaluated in a scope
where the iteration variable is locally bound without using defmspec.
Consider:
i: 25$
sum(i,i,1,3) => 6 current behavior
sum(i,i,1,3) => 75 with your suggested change