$sum, dosum and simplifcation



On Mon, Feb 22, 2010 at 10:38 PM, Richard Fateman
<fateman at cs.berkeley.edu> wrote:

> I don't recall the resolution of this discussion, but I would just warn
> against making (yet another?) change in the behavior of a function
> based on some particular bug report.

It seems hardly worth the trouble to say it, but anyway,
that's not what happened.

> sum(if i>5 then 0 else 1, ?i, 1, 10)
> comes out 6

No, it doesn't.

> but
> i:10;
>
> sum(if i>5 then 0 else 1, ?i, 1, 10)
>
> This now comes out 0.

No, it doesn't.

> Commercial Macsyma gives 6 in both cases.

That's crazy, but someone else's problem.

> Whatever you are doing now is wrong; it appears that what you are proposing
> is equally wrong, but it is perhaps not clear what the proposal is.

In the larger scheme of things, it is probably better (i.e. more
likely to lead to improved code) to talk about problems in the
code, not in people. But if you're going to slag me, at least do
me the favor of getting the facts straight.

Robert Dodier